coef for limma differential expression analysis
1
0
Entering edit mode
Dave • 0
@dave-12281
Last seen 7.8 years ago

ArrayExpress dataset of 5 individuals 2 different tissues: "V" and "A". I want to compare the gene differential expression of "V" and "A" as paired sample for each individual. 

I have used this code so far. 

library(ArrayExpress)
library(limma)
rawdata=ArrayExpress("E-blablabla")
eset<-rma(rawdata)
Patients<-factor(rep(1:5,2))
Tissues<-factor(c(rep("V",5),rep("A",5)))
design<-model.matrix(~Patients+Tissues)
fit<-lmFit(eset,design)
fit<-eBayes(fit)

According to limma User's Guide i should continue with

topTable(fit,coef=??)

What should coef be? I do not understand their example in the User's Guide (coef="TreatT"). 

If I type

colnames(design)

I get

[1] "(Intercept)" "Patients2"   "Patients3"  
[4] "Patients4"   "Patients5"   "TissuesV

Coefficient should correspond to what exacly?

Also, how do I write to file for easier interpretation?

Thanks

limma DE • 1.3k views
ADD COMMENT
0
Entering edit mode
svlachavas ▴ 830
@svlachavas-7225
Last seen 13 months ago
Germany/Heidelberg/German Cancer Resear…

Dear Dave,

if i understand well from your design,

you would like to conduct a paired moderated t-test. Your design above, essentially represents an additive model, with your main coefficient of interest would be the last, that is  the coef="TissuesV"

which represents the average log2 fold change of tissue V versus tissue A in all patients (as the level V of the Tissues factor variable is the second level). Most probably, the other coefficients from 'Patients2" to "Patients5", represent the log2 fold change between patient1 and every other patient present. 

Best,

Efstathios

ADD COMMENT
0
Entering edit mode

Thanks for the help!

ADD REPLY

Login before adding your answer.

Traffic: 550 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