HoloNet.plotting.plot_cell_type_proportion#

HoloNet.plotting.plot_cell_type_proportion(adata, plot_cell_type, continuous_cell_type_slot='predicted_cell_type', fname=None, **kwargs)#

Plot the proportion of one cell-type in each spot.

Parameters
adata AnnData

Annotated data matrix.

plot_cell_type str

The name of cell type for plotting.

continuous_cell_type_slot str (default: 'predicted_cell_type')

The slot name of continuous cell-type information in in adata.obsm.

fname str | Path | NoneUnion[str, Path, None] (default: None)

The output file name. If None, not save the figure. Note that not add path name, sc.pl.spatial will add ‘show’ before the file name.

kwargs

Other paremeters in ‘feature_plot’ function.