fit.edger | R Documentation |
Wrapper script that fits an edgeR model and does linear contrast tests.
fit.edger(data, MM, CM, ...)
data |
a DGEList object |
MM |
a model matrix |
CM |
a contrast matrix if NULL no contrasts will be fit |
... |
additional parameters passed to glmLRT |
a DGELRT object
Florian Klinglmueller
## setting up some random data data <- matrix(rpois(600,200),ncol=6) dge <- DGEList(counts=data) dge <- estimateDisp(dge) ## a design matrix design <- data.frame('Treatment' = factor(rep(0:1,each=3))) mm <- model.matrix(~0+Treatment,design) ## a contrast matrix colnames(mm) <- c('control','treatment') cm <- makeContrasts('control-treatment',levels=mm) ## fit and test out <- fit.edger(dge,mm,cm) myTopTags(out,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.