spamosaic.utils.get_umap
- spamosaic.utils.get_umap(ad, use_reps=[])[source]
Compute UMAP embeddings for specified representations and store them in
.obsm.- Parameters:
ad (AnnData) – Input object.
use_reps (list of str, default=[]) – Keys in
.obsmto compute UMAP for (e.g.,['X_pca']).
- Returns:
The same object with additional
.obsm[f'{rep}_umap']for eachrep.- Return type:
AnnData