- spac.visualization.heatmap(adata, column, layer=None, **kwargs)[source]
Plot the heatmap of the mean feature of cells that belong to a column.
- Parameters:
adata (anndata.AnnData) – The AnnData object.
column (str) – Name of member of adata.obs to plot the histogram.
layer (str, default None) – The name of the adata layer to use to calculate the mean feature.
**kwargs – Parameters passed to seaborn heatmap function.
- Returns:
pandas.DataFrame – A dataframe tha has the labels as indexes the mean feature for every marker.
matplotlib.figure.Figure – The figure of the heatmap.
matplotlib.axes._subplots.AxesSubplot – The AsxesSubplot of the heatmap.