Paired Test - Design Matrix and Contrast Matrix Voom and Limma
2
0
Entering edit mode
rfbrhm • 0
@rfbrhm-14523
Last seen 6.4 years ago

After going crazy on Bioconductor and edgeR guide, I thought to run it by you.

I am trying to analyze a data set. It is 7 cell-lines each cell line has a control and a treatment. So it's paired. I am interested in + and - differences only.

Cell A +
Cell B +
Cell C +
Cell D +
Cell E +
Cell F +
Cell G +
Cell A -
Cell B -
Cell C -
Cell D -
Cell E -
Cell F -
Cell G -

I was wondering what would be the correct way of doing the design matrix with model.matrix and subsequently the contrast matrix.

limma voom paired samples • 2.2k views
ADD COMMENT
3
Entering edit mode
Aaron Lun ★ 28k
@alun
Last seen 17 hours ago
The city by the bay
cell.line <- rep(LETTERS[1:7], 2)
treatment <- rep(c("Treat", "Con"), each=7)
design <- model.matrix(~cell.line + treatment)
# ... after voom and lmFit()...
topTable(fit, coef=ncol(design))

... assuming that the treatment effect is the same in all cell types.

ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 6 hours ago
WEHI, Melbourne, Australia

No need to go crazy. Just follow Aaron's answer or else Section 9.4.1 of the User's Guide.

ADD COMMENT

Login before adding your answer.

Traffic: 709 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6