scSemiProfiler.utils.celltype_proportion¶
-
scSemiProfiler.utils.celltype_proportion(adata, totaltypes)[source]¶ Compute the cell type proportion in a dataset
- Parameters
adata (
anndata._core.anndata.AnnData) – The dataset to investigatetotaltypes (
typing.Union[numpy.array,list]) – The total cell types to consider
- Return type
numpy.array- Returns
prop – Cell type proportion
Example
>>> real_prop = celltype_proportion(real_rep,totaltypes)