STutils.pl.nhood_heatmap#
- STutils.pl.nhood_heatmap(adata, coord_type='generic', library_key='batch', radius=30, cluster_key='region', ax=None, figsize=(6, 5), cmap='YlGn', save=True)#
Plot neighborhood heatmap.
- Args:
adata: anndata object coord_type: Type of coordinate system, defaults to “generic” library_key: batch info, defaults to “batch” radius: Compute the graph based on neighborhood radius, defaults to 30 cluster_key: region or cell cluster key, defaults to “region” ax: mpl axes, defaults to None figsize: fig size, defaults to (6, 5) cmap: colormap, defaults to “YlGn” save: save or not, defaults to True
- Return type:
- Returns:
Axes: mpl axes