Description Usage Arguments Details Value Author(s) Examples
BatchCCEDA
creates a number of plots to determine the number of PCs
to use for PCA/clustering and whether or not cell cycle scores and batch
effects should be addressed. Runs and plots an ElbowPlot to determine PCs
for later use. Runs and plots PCA for cell cycle genes to show their impact.
1 2 | BatchCCEDA(scrna, outdir = ".", npcs = 50, vars = NULL,
skip.sct = NULL)
|
scrna |
Seurat object. |
outdir |
Path to output directory for plots. |
npcs |
Number of PCs to use for PCA and ElbowPlot. |
vars |
Character vector indicating |
skip.sct |
Boolean indicating whether to skip |
Supplying vars
will plot a PCA from the variable genes for each
variable. It will also calculate and create a density plot of the variance
explained by each variable across all genes using
plotExplanatoryVariables
.
A Seurat object with a PCA for cell cycle genes stored
with reduction.name = "cc"
.
Jared Andrews
1 2 3 4 5 6 7 8 9 10 11 12 | library(Seurat)
## Not run:
pbmc_small <- RunQC(pbmc_small)
pbmc_small <- NormScoreCC(pbmc_small)
# Skip SCT normalization - should only be done if object has been integrated.
pbmc_small <- BatchCCEDA(pbmc_small, skip.sct = TRUE)
# Can explore other variables as well.
pbmc_small <- BatchCCEDA(pbmc_small, skip.sct = TRUE, vars = "group")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.