SOAPy_st.pl.show_box_plot

SOAPy_st.pl.show_box_plot(adata: AnnData, cluster_key: str, score_key: str, title: str | None = None, figsize: Tuple[float, float] | None = None, dpi: int = 100, ax: Axes | None = None, show: bool = True, save: str | PathLike | None = None, **kwargs: Any) Axes | None

Boxplot of gene expression for each cluster is shown

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.

cluster_key

cluster keyword in adata.obs.index.

score_key

Gene name in adata.var_names.

showbool

Show the plot, do not return axis.

saveUnion[str, PathLike]

The path where the image is stored.

kwargs

Other params of ax.plot().

Returns