
Last chance! 50% off unlimited learning
Sale ends in
Set information for specified stored dimensional reduction analysis
SetDimReduction(object, reduction.type, slot, new.data)
Seurat object
Type of dimensional reduction to set
Specific information to set (must be one of the following: "cell.embeddings", "gene.loadings", "gene.loadings.full", "sdev", "key", "misc")
New data to set
Seurat object with updated slot
# NOT RUN {
pbmc_small
# Simulate adding a new dimensional reduction
new.cell.embeddings <- GetCellEmbeddings(object = pbmc_small, reduction.type = "pca")
new.gene.loadings <- GetGeneLoadings(object = pbmc_small, reduction.type = "pca")
SetDimReduction(
object = pbmc_small,
reduction.type = "new.pca",
slot = "cell.embeddings",
new.data = new.cell.embeddings
)
SetDimReduction(
object = pbmc_small,
reduction.type = "new.pca",
slot = "gene.loadings",
new.data = new.gene.loadings
)
# }
Run the code above in your browser using DataLab