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

  • semisdata (anndata._core.anndata.AnnData) – Semi-profiled dataset

  • celltype_key (str) – The key in anndata.AnnData.obs for storing the cell type information

  • celltype (str) – The selected cell type to analyze

  • save – 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')