atlas.pl.plot_embedding#
- atlas.pl.plot_embedding(mudata, embedding_key='X_umap', observation='pseudotime', save=None, cmap='Blues', **kwargs)#
Plot a low-dimensional embedding of cells colored by a given observation.
This function creates a scatter plot of cells in a specified embedding space (e.g. UMAP, PCA) using values from
mudata.obsfor coloring.- Parameters:
mudata (
MuData) – MuData object containing cell-level metadata in.obsand embeddings in.obsm.embedding_key (
str(default:'X_umap')) – Key inmudata.obsmspecifying the embedding to use for visualization (e.g."X_umap","X_pca").observation (
str(default:'pseudotime')) – Column name inmudata.obsused to color the cells.save (
bool|str|None(default:None)) – IfTrue, save the figure using scvelo defaults. If a string, specifies the filename. IfNone, the plot is not saved.cmap (
str(default:'Blues')) – Colormap used for continuous observations. Ignored for categorical variables.**kwargs – Additional keyword arguments passed to
scvelo.pl.scatter().
- Return type:
- Returns:
None Displays (and optionally saves) the embedding plot.
- Warns:
UserWarning – If
observationis not found inmudata.obs.UserWarning – If
embedding_keyis not found inmudata.obsm.