mantispy.pl.feature_groups

Contents

mantispy.pl.feature_groups#

mantispy.pl.feature_groups(adata, key=None, ax=None)#

How many features each group contributes, split by channel.

Pass key="selected" after feature selection to see which families survived.

Parameters:
  • adata (AnnData) – Object to draw.

  • key (str | None (default: None)) – Restrict to features flagged by this boolean var column. None, or a column the object does not hold, uses every feature.

  • ax (Axes | None (default: None)) – Axes to draw into.

Return type:

Axes

Returns:

The axes drawn on, with one stacked bar per feature group and one segment per channel.

Raises:

KeyErrorvar has no feature_group column, or no channel column.