sc_toolbox.tools.correlate_to_signature#
- sc_toolbox.tools.correlate_to_signature(adata, marker, log_fc_threshold=0.7, cell_type='AT2 cells', cell_type_label='cell_type', log_fc_label='logfoldchange', gene_label='gene', use_raw=True)[source]#
Correlations Score (based on cell type signature (logFC)) - alternative to sc.tl.score
- Parameters:
adata – AnnData object containing the data
marker (
DataFrame
) – Pandas DataFrame containing marker geneslog_fc_threshold (
float
) – Log fold change labelcell_type (
str
) – Cell type to calculate the correlation forcell_type_label (
str
) – Label of all cell types in the AnnData objectlog_fc_label (
str
) – Label of fold change in the AnnData objectgene_label (
str
) – Label of genes in the AnnData objectuse_raw (
bool
) – Whether to use adata.raw.X
- Returns:
List of correlations