View source: R/Seurat.Utils.Visualization.R
SetupReductionsNtoKdimensions | R Documentation |
Function to calculate N-to-K dimensional umaps (default = 2:3); and back them up to
slots obj@misc$reductions.backup
from @reductions$umap
SetupReductionsNtoKdimensions(
obj = combined.obj,
nPCs = p$n.PC,
dimensions = 3:2,
reduction_input = "pca",
reduction_output = "umap",
...
)
obj |
A Seurat object. Default: combined.obj |
nPCs |
A numeric value representing the number of principal components to use. Default: p$n.PC |
dimensions |
A numeric vector specifying the dimensions to use for the dimensionality reductions. Default: 3:2 |
reduction_input |
The type of dimensionality reduction to use as input. Can be "pca", or some correction results, like harmony pca. Default: 'pca' |
reduction_output |
Te type of dimensionality reduction to perform. Can be "umap", "tsne", "pca", or some correctionn results, like harmony pca. Default: 'umap' |
... |
Additional arguments to pass to the dimensionality reduction function. |
The input Seurat object with computed dimensionality reductions and backups of these reductions.
## Not run:
if (interactive()) {
combined.obj <- SetupReductionsNtoKdimensions(obj = combined.obj, nPCs = 10, dimensions = 2:3, reduction = "umap")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.