cytonormpy._dataset.DataProviderFCS#
- class cytonormpy._dataset.DataProviderFCS(input_directory, metadata, truncate_max_range=False, channels=None, transformer=None)#
Class to handle the data providing for FCS files. This class will prepare a dataframe where the data are annotated with the metadata and the relevant channel data will be transformed.
Attributes
Methods
annotate_metadata(data, file_name)annotate_metadata_old(data, file_name)Annotates metadata (sample identifier, batch value and reference value) to the expression data.
inverse_transform_data(data)Inverse transforms the data according to the transformer added upon instantiation.
parse_raw_data(file_name)prep_dataframe(file_name)Prepares the dataframe by annotating metadata, selecting the relevant channels and transforming.
select_channels(data)Subsets the channels in a dataframe.
subsample_df(df, n)transform_data(data)Transforms the data according to the transformer added upon instantiation.