mantispy.pl.sets_heatmap#
- mantispy.pl.sets_heatmap(adata, groupby, score_key='score_ulm', top=30, ax=None)#
Mean enrichment score per group per feature set.
- Parameters:
adata (
AnnData) – Objectenrich()has scored, holding the per-row scores inobsm.groupby (
str) –obscolumn whose groups become the rows.score_key (
str(default:'score_ulm')) –obsmkey holding those scores, named after the method that wrote them.top (
int(default:30)) – How many feature sets to draw, taken by their largest absolute mean score.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, holding groups against feature sets, the sets it kept sorted by name, on a diverging scale.
- Raises:
KeyError –
obsmholds nothing underscore_key.