mantispy.pl.plate_effects#

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

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 | None

Returns:

The axes array when the caller passed axes, else None because the plot then owns the figure it created. When returned it has 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:

KeyError – feature is not one of var_names, or obs has no Metadata_Plate or Metadata_Well column.