mantispy.pl.effect_sizes

Contents

mantispy.pl.effect_sizes#

mantispy.pl.effect_sizes(adata, group, key='effect', top=30, ax=None)[source]#

The largest effects for one group, colored by feature family.

Parameters:
  • adata (AnnData) – Object holding the table effect_size() wrote.

  • group (str) – Which group of that table to draw.

  • key (str (default: 'effect')) – Name of that table in uns["mantispy"].

  • top (int (default: 30)) – How many features to draw, taken by absolute effect.

  • ax (Axes | None (default: None)) – Axes to draw on, or None for a new figure.

Return type:

Axes | None

Returns:

The axes when the caller passed ax, else None because the plot then owns the figure it created.

Raises:

KeyError – There is no such table, or it holds no such group.