bioalpha.singlecell.plotting.rank_genes_groups_volcano
- bioalpha.singlecell.plotting.rank_genes_groups_volcano(adata: AnnData, group: str | None = None, n_genes: int | None = None, gene_symbols: str | None = None, min_logfoldchange: float | None = None, key: str = 'rank_genes_groups', min_fdr: int = 0.05, show: bool | None = None, save: Path | None = None, **kwds)
Plot ranking of genes using volcano plot.
- Parameters:
adata (
AnnData
) – The annotated data matrix of shapen_obs
xn_vars
. Rows correspond to cells and columns to genes.group (Optional[
str
]) – The groups for which to show the gene ranking. Ifgroup
isNone
, set it toadata.uns[key]['names']
.n_genes (Optional[
int
], default =None
) – Number of genes to show.gene_symbols (Optional[
str
], default =None
) – Column name inadata.var
that store the symbols of gene.min_logfoldchange (Optional[
float
], default =None
) – Value to filter genes in groups if their logfoldchange is less than themin_logfoldchange
.key (
str
, default ="rank_genes_groups"
) – Key used to plot the ranking results that stored inadata.uns
.min_fdr (
int
, default =0.05
) – Value to filter genes in groups if theirfdr
is less than themin_fdr
.show (Optional[
bool
], default =None
) – Show the plot, do not return axis.save (Optional[
Path
], default =None
) – If a path is passed, save the figure as a html, otherwise save file with name"{key}_volcano.html"
.kwds (
dict
) – Keyword arguments passed toplotly.express.scatter
.