countsRemoveSV | R Documentation |
Apply SVA to transformed count data and return the transformed matrix removing the effect of surrogate variables
countsRemoveSV(
counts,
designMatrix,
transformFunc = function(counts, designMatrix) voom(counts, designMatrix)$E
)
counts |
A matrix of counts |
designMatrix |
Design matrix |
transformFunc |
A function to transform the count data |
The 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(countsRemoveSV(exCounts, designMatrix=exDesign))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.