mantispy.pl.plate

Contents

mantispy.pl.plate#

mantispy.pl.plate(adata, color, plate=None, agg='median', ax=None, cmap='viridis', **kwargs)[source]#

Well-grid heatmap of color, one panel per plate.

Parameters:
  • adata (AnnData) – Object to draw. Works at cell or well resolution; several rows landing in the same well are combined with agg.

  • color (str) – A feature name or an obs column.

  • plate (str | None (default: None)) – Draw only this plate. By default every plate gets a panel.

  • agg (str (default: 'median')) – How to combine rows sharing a well: median, mean, max or min.

  • ax (Axes | None (default: None)) – Axes to draw into. Only valid together with plate.

  • cmap (str (default: 'viridis')) – Matplotlib colormap.

  • kwargs – Passed to imshow().

Returns:

A single Axes, or an array of them for several plates.