cytonormpy.emd_from_fcs#
- cytonormpy.emd_from_fcs(input_directory, files, channels=None, cell_labels=None, truncate_max_range=False, origin=None, transformer=None)#
Function to evaluate the EMD on a given list of FCS-files.
- Parameters:
input_directory (
PathLike) – Path specifying the input directory in which the .fcs files are stored. If left None, the current working directory is assumed.files (
Union[list[str],str]) – A list of files ending with .fcs.channels (
Optional[list[str]]) – A list of detectors to analyze.labels (cell) – A dictionary of shape {file_name: [cell_label, cell_label, …]}. The cell labels will be added to the dataframe. If None, MADs will be calculated per file and channel.
truncate_max_range (
bool) – If True, FCS data will be truncated to the range specified in the PnR values of the file.origin (
Optional[str]) – Annotates the files with their origin, e.g. ‘unnormalized’ or ‘normalized’.transformer (
Optional[Transformer]) – An instance of the cytonormpy transformers.
- Return type:
A
pandas.DataFramecontaining the MAD values per file or per file and cell_label.