mantispy.pl.feature_signature#
- mantispy.pl.feature_signature(adata, groupby=None, top=40, cluster=True, cmap='RdBu_r', figsize=None, ax=None)[source]#
Heatmap of perturbations by feature families.
- Parameters:
adata (
AnnData) – The output offeature_signature().groupby (
str|None(default:None)) –obscolumn to average rows within, instead of showing one row per perturbation."Metadata_MOA", for example, gives one row per mechanism.top (
int|None(default:40)) – Show only this many rows, those with the largest absolute value.Noneshows all of them. Ignored whengroupbyis given.cluster (
bool(default:True)) – Order rows and columns by hierarchical clustering, so families that move together are adjacent. Otherwise the object’s order is kept.cmap (
str(default:'RdBu_r')) – Diverging colormap, centered on zero so decreases and increases read equally.figsize (
tuple[float,float] |None(default:None)) – Standard matplotlib arguments.ax (
Axes|None(default:None)) – Standard matplotlib arguments.
- Return type:
- Returns:
The axes.