came.utils.plot.adata_embed_with_values¶
- came.utils.plot.adata_embed_with_values(adata: AnnData, values: Series | Mapping, embed_key='UMAP', fp=None, figsize_save=None, **kwargs)¶
This function can also be used to visualize the average expressions of some cell types on gene embedding, in which case, each observation in adata represents a genes.
- Parameters:
adata – the
AnnData
objectvalues (Mapping, pd.DataFrame or pd.Series) – where the keys will be the title of subplots and the values should be of the length equal to adata.shape[0]
embed_key – the type of the embeddings, e.g., “UMAP” or “TSNE”
fp (Path or str) – path to save figure
figsize_save ((int, int)) – the figure size of the saved plot.
- Return type:
fig, axs