mantispy.pl.moa_enrichment#
- mantispy.pl.moa_enrichment(adata, group, key='moa_enrichment', top=10, ax=None)#
Which mechanisms one profile’s neighborhood is enriched for.
- Parameters:
adata (
AnnData) – Object holding the tablemoa_enrichment()wrote.group (
str) – Which group of that table to draw.key (
str(default:'moa_enrichment')) – Name of that table inuns["mantispy"].top (
int(default:10)) – How many mechanisms to draw, taken by p-value.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, with one bar of
-log10q per mechanism, labeled by how many of the neighbors carried it, and a reference line atq = 0.05.- Raises:
KeyError – There is no such table, or it holds no such group.