RecallReduction: Recall Dimensionality Reduction from backup slot

View source: R/Seurat.Utils.Visualization.R

RecallReductionR Documentation

Recall Dimensionality Reduction from backup slot

Description

Restores dimensionality reduction data (e.g., UMAP, tSNE, PCA) from a backup stored within obj@misc$reductions.backup to the active obj@reductions slot.

Usage

RecallReduction(obj = combined.obj, dim = 2, reduction = "umap")

Arguments

obj

Seurat object from which the backup will be restored; Default: combined.obj.

dim

Number of dimensions of the reduction data to restore; Default: 2.

reduction

Type of dimensionality reduction to be restored ('umap', 'tsne', 'pca'); Default: 'umap'.

Examples

## Not run: 
if (interactive()) {
  combined.obj <- RecallReduction(obj = combined.obj, dim = 2, reduction = "umap")
  qUMAP()
  combined.obj <- RecallReduction(obj = combined.obj, dim = 3, reduction = "umap")
  qUMAP()
}

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.