View source: R/Seurat.Utils.Visualization.R
AutoNumber.by.UMAP | R Documentation |
Automatically renumbers clusters based on their position along a specified dimension in a UMAP (or tSNE or PCA) plot, potentially enhancing interpretability by ordering clusters.
AutoNumber.by.UMAP(
obj = combined.obj,
reduction = "umap",
dim = 1,
swap = FALSE,
ident = GetClusteringRuns(obj = obj)[1],
plot = TRUE,
obj.version = obj@version
)
obj |
Seurat object containing clustering and UMAP (or other dimensional reduction) data;
Default: |
reduction |
Dimension reduction technique used for cluster positioning ('umap', 'tsne', or 'pca'); Default: 'umap'. |
dim |
Dimension along which to order clusters (1 for the first dimension, typically horizontal); Default: 1. |
swap |
If TRUE, reverses the ordering direction; Default: |
ident |
Clustering resolution identifier used to fetch cluster labels from |
plot |
If TRUE, plots the UMAP with new cluster names; Default: |
## Not run:
combined.obj <- AutoNumber.by.UMAP(
obj = combined.obj, dim = 1, reduction = "umap",
ident = "integrated_snn_res.0.5"
)
DimPlot.ClusterNames(combined.obj, ident = GetClusteringRuns(combined.obj)[1])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.