View source: R/BASiCS_VarianceDecomp.R
BASiCS_VarianceDecomp | R Documentation |
Function to decompose total variability of gene expression into biological and technical components.
BASiCS_VarianceDecomp(
Chain,
OrderVariable = c("BioVarGlobal", "GeneName", "TechVarGlobal", "ShotNoiseGlobal"),
Plot = TRUE,
main = "Overall variance decomposition",
ylab = "% of variance",
beside = FALSE,
palette = "Set1",
legend = c("Biological", "Technical", "Shot noise"),
names.arg = if (nBatch == 1) "Overall" else c("Overall", paste("Batch",
seq_len(nBatch)))
)
Chain |
an object of class |
OrderVariable |
Ordering variable for output.
Possible values: |
Plot |
If |
main |
Plot title. |
ylab |
y axis label. |
beside |
If |
palette |
Palette to be passed to |
legend |
Labels for variance components. |
names.arg |
X axis labels. |
See vignette
A data.frame
whose first 4 columns correspond to
GeneName
Gene name (as indicated by user)
BioVarGlobal
Percentage of variance explained by a biological component (overall across all cells)
TechVarGlobal
Percentage of variance explained by the technical component (overall across all cells)
ShotNoiseGlobal
Percentage of variance explained by the shot noise component (baseline Poisson noise, overall across all cells)
If more than 1 batch of cells are being analysed, the remaining columns contain the corresponding variance decomposition calculated within each batch.
Catalina A. Vallejos cnvallej@uc.cl
Vallejos, Marioni and Richardson (2015). PLoS Computational Biology.
BASiCS_Chain
# For illustration purposes we load a built-in 'BASiCS_Chain' object
# (obtained using the 'BASiCS_MCMC' function)
data(ChainSC)
VD <- BASiCS_VarianceDecomp(ChainSC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.