cytonormpy.emd_comparison_from_anndata#
- cytonormpy.emd_comparison_from_anndata(adata, file_list, channels, orig_layer, norm_layer, sample_identifier_column='file_name', cell_labels=None, transformer=None)#
This function is a wrapper around emd_from_anndata that directly combines the normalized and unnormalized dataframes.
- Parameters:
adata (
AnnData) – The AnnData objectfile_list (
Union[list[str],str]) – A list of files. Used in conjunction with sample_identifier_column.channels (
Optional[list[str]]) – A list of detectors to analyze.orig_layer (
str) – The layer where the original data are stored.norm_layer (
str) – The layer where the normalized data are stored.sample_identifier_column (
str) – Specifies the column in adata.obs in which the samples are identified.labels (cell) – Specifies the column in adata.obs containing cell labels. The cell labels will be added to the dataframe. If None, MADs will be calculated per file and channel.
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.