scviva.pl.vision.plot_selection_histplot#

scviva.pl.vision.plot_selection_histplot(adata, signature, group)[source]#

Plot histogram of signature scores for selection vs remainder.

Note that this function modifies adata.obs: it writes a 'selected' column and, if not already present, a column named signature with the signature scores.

Parameters:
adata AnnData

AnnData object. Signature scores are read from obs[signature] if present, otherwise from obsm['vision_signatures'][signature].

signature str

Name of the signature whose score distribution is plotted.

group array-like

Per-cell indicator of length n_obs; cells where group == 1 are labeled "Selection" and all others "Remainder".