mantispy.pl.moa_enrichment#

mantispy.pl.moa_enrichment(adata, group, key='moa_enrichment', top=10, ax=None)[source]#

Which mechanisms one profile’s neighborhood is enriched for.

Parameters:
adata AnnData

Object holding the table moa_enrichment() wrote.

group str

Which group of that table to draw.

key str (default: 'moa_enrichment')

Name of that table in uns["mantispy"].

top int (default: 10)

How many mechanisms to draw, taken by p-value.

ax Axes | None (default: None)

Axes to draw on, or None for a new figure.

Return type:

Axes | None

Returns:

The axes when the caller passed ax, else None because the plot then owns the figure it created. When returned they hold one bar of -log10 q per mechanism, labeled by how many of the neighbors carried it, and a reference line at q = 0.05.

Raises:

KeyError – There is no such table, or it holds no such group.