mantispy.pl.map

Contents

mantispy.pl.map#

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

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

Returns:

The axes drawn on, with one point per group and the threshold drawn as a labeled reference line.

Raises:

KeyErroruns["mantispy"] holds no table under key.