scSemiProfiler.utils.compare_adata_umaps¶
-
scSemiProfiler.utils.compare_adata_umaps(semidata, gtdata, name='testexample', celltype_key='celltypes', save=None)[source]¶ Compare the real-profiled and semi-profiled datasets by plotting them in a same UMAP
- Parameters
semidata (
anndata._core.anndata.AnnData) – Semi-profiled datasetgtdata (
anndata._core.anndata.AnnData) – Real-profiled datasetname (
str) – Project namecelltype_key (
str) – The key in .obs specifying the cell type informationsave – Path within the ‘figures’ folder to save the plot
- Return type
typing.Tuple[anndata._core.anndata.AnnData,anndata._core.anndata.AnnData,anndata._core.anndata.AnnData]- Returns
combdata – Combined dataset, with real-profiled cells in the front
gtdata – Real-profiled dataset
semidata – Semi-profiled dataset
Example
>>> combdata, gtdata, semidata = compare_adata_umaps( >>> inferred_rep, # inferred representatives from the last round >>> real_rep, # real-profiled representatives from the current round >>> name = name, # project name >>> celltype_key = 'celltypes' >>> )