updateContrastMatrixWithSV | R Documentation |
Update a contrast matrix given a surrogate variable matrix
updateContrastMatrixWithSV(contrastMatrix, svMatrix)
contrastMatrix |
A contrast matrix |
svMatrix |
A surrogate-variable matrix, for instance returned by sva |
An updated matrix, with surrogate matrix variables appended to the rows
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))
colnames(exDesign) <- c("Baseline", "Treatment")
exContrast <- limma::makeContrasts("Treatment"="Treatment", levels=exDesign)
exVoomSvaRes <- voomSVA(exCounts, exDesign)
updateContrastMatrixWithSV(exContrast, exVoomSvaRes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.