voomLimma | R Documentation |
Perform the voom+limma procedure
voomLimma(
dgeList,
design,
contrasts,
normalize.method = "none",
block = NULL,
correlation = NULL,
weights = NULL,
plot = FALSE,
...
)
dgeList |
A DGEList object, it should be ideally already filtered |
design |
The design matrix |
contrasts |
The contrast matrix |
normalize.method |
Character string, passed to |
block |
Blocking factor, passed to |
correlation |
Correlation between duplicates, passed to |
weights |
Weights, passed to |
plot |
Logical, whether the variance-mean relationship should be ploted |
... |
Passed to |
MArrayLM
object returned by eBayes
, with voom object in the voom
element of the list
y <- matrix(rnbinom(10000,mu=5,size=2),ncol=4)
d <- edgeR::DGEList(counts=y, group=rep(1:2,each=2))
d <- edgeR::calcNormFactors(d)
design <- model.matrix(~gl(2,2))
colnames(design) <- c("baseline", "treatment")
contrasts <- limma::makeContrasts("treatment", levels=design)
dvl <- voomLimma(d, design=design, contrasts=contrasts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.