mantispy.pl.plate_effects

Contents

mantispy.pl.plate_effects#

mantispy.pl.plate_effects(adata, feature=None, axes=None)#

Row and column medians per plate, for spotting plate position artifacts.

Parameters:
  • adata (AnnData) – Object to draw, at any resolution.

  • feature (str | None (default: None)) – A single feature, or None for the mean across features.

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

Return type:

ndarray

Returns:

The axes array, one row per plate, with the row marginal on the left and the column marginal on the right, each with the plate median drawn as a reference line.

Raises:

KeyErrorfeature is not one of var_names, or obs has no Metadata_Plate or Metadata_Well column.