[BioC] how to design matrix by edgeR
wang peter
wng.peter at gmail.com
Mon May 21 04:54:41 CEST 2012
Dear Gordon,
thank you very much. i want to find genes are DE at
each time vs 0h, adjusting for control differences?
i know i should do such work:
treatment=factor(c(rep('treated',24),rep('control',11)))
time=factor( c('oh','oh','oh','6h','6h','6h','6h','12h',
'12h','12h','12h','18h','18h','18h','18h','24h','24h','24h','36h','36h','36h','48h','48h','48h','oh',
'oh','oh','6h','12h','18h','24h','36h','48h'))
but i donot understand how to design the matrix?
design <- model.matrix(~treatment+tissue)?
design <- model.matrix(~treatment*tissue)
do you have some reference to tell me how to use the model.matrix function
thank you very much
--
shan gao
Room 231(Dr.Fei lab)
Boyce Thompson Institute
Cornell University
Tower Road, Ithaca, NY 14853-1801
Office phone: 1-607-254-1267(day)
Official email:sg839 at cornell.edu
Facebook:http://www.facebook.com/profile.php?id=100001986532253
More information about the Bioconductor
mailing list