mantispy.pl.map

Contents

mantispy.pl.map#

mantispy.pl.map(adata, key='map', label_top=10, ax=None)[source]#

Mean average precision against significance, with the strongest groups labeled.

The dashed line is the significance threshold the run used, so a point above it and to the right is a perturbation that is both strong and reproducible.

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

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

  • label_top (int (default: 10)) – How many of the strongest groups to label, taken by mean average precision.

  • 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. When returned they hold one point per group and the threshold drawn as a labeled reference line.

Raises:

KeyError – uns["mantispy"] holds no table under key.