svacor | R Documentation |
A wrapper around SVA-based correction, providing a corrected assay. If this is RNAseq data or similar, use a count assay assay with 'useVST=TRUE'; otherwise (e.g. proteomics) a log-normalized assay is recommended.
svacor( SE, form, form0 = ~1, assayName = NULL, regressOutNull = TRUE, useVST = TRUE, n.sv = NULL, ... )
SE |
An object of class 'SummarizedExperiment'. |
form |
The formula of the differential expression model |
form0 |
An optional formula for the null model |
assayName |
The name (or index) of the assay to use. |
regressOutNull |
Logical; whether to regress out the variables of 'form0'. |
useVST |
Logical; whether to use DESeq2's variance-stabilizing transformation; (for count data!) |
n.sv |
The number of surrogate variables (if omitted, |
... |
Any other argument passed to the |
Returns the 'SummarizedExperiment' with a 'corrrected' assay and the surrogate variables in 'colData'.
data("SE", package="SEtools") SE <- svacor(SE, ~Condition)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.