View source: R/truncateDgeTable.R
limmaTopTable2dgeTable | R Documentation |
Transform limma::topTable results to a DGEtable
limmaTopTable2dgeTable(limmaTopTable)
limmaTopTable |
topTable returned by limma::topTable |
A data.frame known as DGEtable which has controlled column names
example.sd <- 0.3*sqrt(4/rchisq(100,df=4))
example.y <- matrix(rnorm(100*6,sd=example.sd),100,6)
example.y[1:2,4:6] <- example.y[1:2,4:6] + 2
rownames(example.y) <- paste("Gene",1:100)
example.design <- cbind(Grp1=1,Grp2vs1=c(0,0,0,1,1,1))
example.fit <- limma::lmFit(example.y,example.design)
example.fit <- limma::eBayes(example.fit)
example.tt <- limma::topTable(example.fit, coef=2)
example.dt <- limmaTopTable2dgeTable(example.tt)
head(example.dt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.