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 namedsignaturewith the signature scores.- Parameters:
- adata AnnData
AnnData object. Signature scores are read from
obs[signature]if present, otherwise fromobsm['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 wheregroup == 1are labeled"Selection"and all others"Remainder".