scSemiProfiler.utils.rrho¶
-
scSemiProfiler.utils.rrho(name, gtdata, semisdata, celltype_key, celltype, save=None)[source]¶ Use RRHO graph to compare the positive and negative markers found using real-profiled and semi-profiled datasets.
- Parameters
name – Project name
gtdata (
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 informationcelltype (
str) – The selected cell type to analyzesave – Path within the ‘figures’ folder to save the plot
- Return type
typing.Tuple[numpy.array,numpy.array,numpy.array,numpy.array]- Returns
rrho_matrix1 – Values for the first quadrant
rrho_matrix2 – Values for the second quadrant
rrho_matrix3 – Values for the third quadrant
rrho_matrix4 – Values for the forth quadrant
Example
>>> _ = rrho(gtdata=gtdata,semisdata=semisdata,celltype_key='celltypes',celltype='CD4')