cytonormpy._dataset.DataProviderAnnData#
- class cytonormpy._dataset.DataProviderAnnData(adata, layer, metadata, channels=None, transformer=None)#
Class to handle the data providing for anndata objects. 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[, ...])Parses the expression data stored in the anndata object by the sample identifier.
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.