SOAPy_st.pl.show_moran_scatterplot

SOAPy_st.pl.show_moran_scatterplot(adata: AnnData, palette: Sequence[str] | ListedColormap | None = None, figsize: Tuple[float, float] | None = None, dpi: float | None = None, title: str | None = None, ax: Axes | None = None, show: bool = True, save: str | PathLike | None = None, **kwargs) Axes | None

Show a Moran scatter plot. Highlight the hotspots of the domain_from_local_moran.

Parameters

adataanndata.AnnData

An AnnData object containing spatial omics data and spatial information.

figsizeTuple[float, float], optional

(Width, height) of the figure.

dpifloat, optional

The resolution of the figure.

titlestr, optional

The title of shown figure.

axAxes

A matplotlib axes object.

showbool

Show the plot, do not return axis.

saveUnion[str, PathLike], optional

The path where the image is stored.

paletteUnion[Sequence[str], Cycler], optional

(hotspot_color, other_color). Displays the Moran index color for hot and non-hot areas, inputing a list of two RGB colors.

**kwargs

Other params of ax.scatter()

Returns

If show==False, return Axes.