mantispy.pl.outliers

Contents

mantispy.pl.outliers#

mantispy.pl.outliers(adata, key='qc_outlier', groupby='Metadata_Plate', axes=None)#

Outlier score distribution, and the flagged fraction per groupby group.

Parameters:
  • adata (AnnData) – Object outliers() has run on.

  • key (str (default: 'qc_outlier')) – obs column holding the flag, whose score is read from key + "_score".

  • groupby (str (default: 'Metadata_Plate')) – obs column whose groups become the bars, e.g. "Metadata_Well" on a single plate.

  • axes (ndarray | None (default: None)) – A pair of axes to draw into, or None for a new figure.

Returns:

the score histogram split into kept and flagged, and the flagged fraction per group.

Return type:

ndarray

Raises:

KeyErrorobs has no key column.