mantispy.pl.cell_counts

Contents

mantispy.pl.cell_counts#

mantispy.pl.cell_counts(adata, groupby='Metadata_Plate', ax=None, count_key='Metadata_CellCount')#

Distribution of cells per well, split by groupby.

Parameters:
  • adata (AnnData) – Cells, which are counted per well, or profiles, whose count_key is drawn.

  • groupby (str (default: 'Metadata_Plate')) – obs column whose groups become the boxes.

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

  • count_key (str (default: 'Metadata_CellCount')) – obs column holding the cell count of profiles.

Return type:

Axes

Returns:

The axes drawn on.

Raises:

KeyError – Profiles carry no count_key.