voomRemoveSV | R Documentation |
Apply SVA to voom-transformed count data, and return the voom expression matrix with surrogate variables' effect removed
voomRemoveSV(counts, designMatrix)
counts |
A matrix of counts |
designMatrix |
Design matrix |
The voom expression matrix, with SV effects removed
exCounts <- matrix(rpois(12000, 10), nrow=2000, ncol=6)
exCounts[1:100, 2:3] <- exCounts[1:100,2:3]+20
exDesign <- model.matrix(~gl(2,3))
head(voomRemoveSV(exCounts, designMatrix=exDesign))
## compare the results without SV removal, note the values in the
## second and third column are much larger than the rest
head(voom(exCounts, exDesign)$E)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.