View source: R/Seurat.Utils.Visualization.R
BackupReduction | R Documentation |
This function is mostly used internally.It stores a backup of specified
dimensionality reduction data (e.g., UMAP, tSNE, PCA)
within the Seurat object, from obj@reductions$umap
to the @misc$reductions.backup
slot. This
allows to store 2D and 3D UMAP visualizations in parallel and easily switch between them via
the RecallReduction
function.
BackupReduction(obj = combined.obj, dim = 2, reduction = "umap")
obj |
Seurat object containing dimensionality reduction data; Default: |
dim |
Number of dimensions to include in the backup; Default: 2. |
reduction |
Type of dimensionality reduction to backup ('umap', 'tsne', 'pca'); Default: 'umap'. |
## Not run:
if (interactive()) {
obj <- BackupReduction(obj = obj, dim = 2, reduction = "umap")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.