SC2Spa.pl.DrawCT2

SC2Spa.pl.DrawCT2(adata, CT: str, coords_name='spatial', title=False, NRD=True, cmap=<matplotlib.colors.ListedColormap object>, s=2, root='transfer2/FM_NRD/', save=None)

Customized Function

Show the proportion of one cell type for the beads that are annotated

The figure will be saved as root + save + ‘_’ + CT + ‘.png’ if save!=None

Parameters

adata

anndata file. Cell type information should be stored in adata.obs[c_name] Fine mapping result should be stored in `adata.obs[‘FM’] if FM==True Coordinate Information should be stored in adata.obsm[coords_name]

CT

The cell type to be drawn. it must be one category in adata.obs[c_name]

s

size of beads in the figure

NRD

True if the NRD (Normalized Reciprocal Distance) result is used

cmap

colormap. See matplotlib

Returns

None