spateo.plotting.static.contour

Written by @Jinerhal, adapted by @Xiaojieqiu.

Functions

spatial_domains(adata[, bin_size, spatial_key, ...])

Generate an image with contours of each spatial domains.

Module Contents

spateo.plotting.static.contour.spatial_domains(adata: anndata.AnnData, bin_size: int | None = None, spatial_key: str = 'spatial', label_key: str = 'cluster_img_label', plot_size=(3, 3), save_img='spatial_domains.png')[source]

Generate an image with contours of each spatial domains.

Parameters:
adata

The adata object used to create the image.

bin_size

The size of the binning. Default to None.

spatial_key

The key name of the spatial coordinates. Default to “spatial”.

label_key

The key name of the image label values. Default to “cluster_img_label”.

plot_size

figsize for showing the image.

save_img

path to saving image file.