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
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'
>>> )