scSemiProfiler_dev.utils.enrichment_comparison¶
-
scSemiProfiler_dev.utils.enrichment_comparison(name, gtdata, semisdata, celltype_key, selectedtype)[source]¶ Compare the enrichment analysis results using the real-profiled and semi-profiled datasets.
- Parameters
name (
str) – Project namegtdata (
anndata._core.anndata.AnnData) – Real-profiled (ground truth) datasemisdata (
anndata._core.anndata.AnnData) – Semi-profiled datasetcelltype_key (
str) – The key in anndata.AnnData.obs for storing the cell type informationselectedtype (
str) – The selected cell type to analyze
Example
>>> enrichment_comparison(name, gtdata, semisdata, celltype_key = 'celltypes', selectedtype = 'CD4')
- Return type