Description Usage Arguments Value Examples
View source: R/seuratFunctions.R
seuratPCA Computes PCA on the input sce object and stores the calculated principal components within the sce object
1 | seuratPCA(inSCE, useAssay, reducedDimName = "seuratPCA", nPCs = 20)
|
inSCE |
(sce) object on which to compute PCA |
useAssay |
Assay containing scaled counts to use in PCA. |
reducedDimName |
Name of new reducedDims object containing Seurat PCA. Default |
nPCs |
numeric value of how many components to compute. Default |
Updated SingleCellExperiment
object which now contains the computed principal components
1 2 3 4 5 6 7 8 | data(scExample, package = "singleCellTK")
## Not run:
sce <- seuratNormalizeData(sce, useAssay = "counts")
sce <- seuratFindHVG(sce, useAssay = "counts")
sce <- seuratScaleData(sce, useAssay = "counts")
sce <- seuratPCA(sce, useAssay = "counts")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.