scanpy.pl.rank_genes_groups_stacked_violin

scanpy.pl.rank_genes_groups_stacked_violin(adata, groups=None, n_genes=10, groupby=None, key=None, show=None, save=None, **kwds)
../_images/scanpy.pl.rank_genes_groups_stacked_violin.png

Plot ranking of genes using stacked_violin plot (see scanpy.api.pl.stacked_violin)

Parameters
adata : AnnData

Annotated data matrix.

groups : str or list of str

The groups for which to show the gene ranking.

n_genes : int, optional (default: 10)

Number of genes to show.

groupby : str or None, optional (default: None)

The key of the observation grouping to consider. By default, the groupby is chosen from the rank genes groups parameter but other groupby options can be used. It is expected that groupby is a categorical. If groupby is not a categorical observation, it would be subdivided into num_categories (see scanpy.api.pl.stacked_violin).

key : str

Key used to store the ranking results in adata.uns.

show

Show the plot, do not return axis.

save

If True or a str, save the figure. A string is appended to the default filename. Infer the filetype if ending on {‘.pdf’, ‘.png’, ‘.svg’}.

ax

A matplotlib axes object. Only works if plotting a single component.

**kwds : keyword arguments

Are passed to scanpy.api.pl.stacked_violin.