Dear All:
I am not sure if anyone has asked similar questions before, however, my reading of the limma package documents and internet discussions have not been fruitful, essentially
If I have an Affymetrix dataset, with 3 categories: A, B, C
what I did was:
f<-factor(disease, levels=c("A", "B", "C"))
design <- model.matrix(~0 + f)
colnames(design) <- c("A", "B", "C")
contrast.matrix<-makeContrasts(c.vs.a=C-A, b.vs.a=B-A, c.vs.b=C-B, levels=design)
fit2<-contrasts.fit(fit, contrast.matrix)
fit2.eBayes<-eBayes(fit2)
Let me know if I am doing the right thing here...I understand I can either use write.fit or topTable after that...
however, it seems the exact final format of result just evades me......
what I need, is for group C compared to group A, with the following information for all genes:
gene_id, average_groupC, average_groupA, fold_change, P value, adjusted_pvalue
The same goes for C vs B, B vs A comparison... I really could not care less about coefficient......guess I am not a statistician :) -- do let me know what coefficient means when I compare two groups...
--not sure if this capacity is already built in... or that I can extract bits, pieces of info and combine them, however, I do not see such thing in either topTable or write.fit output... the AveExpr is for across all data which to me is useless...
This format of result is very handy when I need to submit it to IPA or GeneGO analysis...... and I believe it is should be the default output for the package for convenience of the many biologists
Thanks!
hi, James:
Thanks! this addressed my questions!