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
Nonefor a new figure.
- adata
- Return type:
- Returns:
The axes when the caller passed
ax, elseNonebecause the plot then owns the figure it created. When returned they hold 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.