mantispy.pl.subpopulation_hits#
- mantispy.pl.subpopulation_hits(adata, key='subpopulation_hits', top=30, ax=None)#
Cluster by group heatmap of significance, so an effect in one cell state stands out.
- Parameters:
adata (
AnnData) – Object holding the tablesubpopulation_hits()wrote.key (
str(default:'subpopulation_hits')) – Name of that table inuns["mantispy"].top (
int(default:30)) – How many groups to draw, taken by their most significant cluster.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, holding
-log10q per cluster and group, the drawn groups sorted by name, with a colorbar beside them.- Raises:
KeyError –
uns["mantispy"]holds no table underkey.ValueError – That table is empty, which is what happens when no cluster held both controls and another group.