mantispy.pl.cytotoxicity

Contents

mantispy.pl.cytotoxicity#

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

Distance from the controls against viability, with the suspect groups marked.

Groups in the upper left are far from the controls and have lost most of their cells. The dashed line is the minimum viability the run used.

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

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

  • label_top (int (default: 8)) – How many of the most distant suspect groups to label.

  • 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 – uns["mantispy"] holds no table under key.