View source: R/ScpModel-Utils.R
addReducedDims | R Documentation |
The function will add the component results computed
by scpComponentAnalysis()
to a SingleCellExperiment
's
reducedDims
slot, to all using the many scater
functions,
such as scater::plotReducedDim()
, scater::plotTSNE()
, ...
addReducedDims(sce, x)
sce |
An instance of class SingleCellExperiment. |
x |
A |
A SingleCellExperiment
with updated reducedDims
.
Laurent Gatto and Christophe Vanderaa
library("scater")
data("leduc_minimal")
pcs <- scpComponentAnalysis(
leduc_minimal, method = "ASCA",
effects = "SampleType")$bySample
reducedDims(leduc_minimal)
leduc_minimal <- addReducedDims(leduc_minimal, pcs)
reducedDims(leduc_minimal)
plotReducedDim(leduc_minimal, dimred = "ASCA_SampleType",
colour_by = "SampleType")
leduc_minimal <- runTSNE(leduc_minimal, dimred = "ASCA_SampleType")
plotTSNE(leduc_minimal, colour_by = "SampleType")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.