Hi, everyone.
In my experiment, I have 5 objects (A,B,C,D,E) with drug treatment (Pre and Post). Therefore total samples include A-pre, A-post, B-pre, B-post, C-pre, C-post, D-pre, D-post, E-pre, E-post
Fist aim is comparing pre-treatment and post-treament, it should be 5 samples vs 5 samples
Second aim is comparing pre-treatment and post-treament in each indidual object, it should be A-pre vs A-post; B-pre vs B-post, C-pre vs C-post, D-pre vs D-post, E-pre vs E-post
I am confused about how to make design matrix and contrast matrix.
Design <- model.matrix(~0+treat_status+object) ??
Contrast <- make.contrast() ???
Thanks
Bests,
Shawn
Just to add to Gavin's answer; it seems that you only have one sample per object/treatment combination. In that case, there will not be any residual degrees of freedom in your design matrix if you include a log-fold change term for each object. This precludes a DE analysis with limma, because there is no way to estimate the sample variance. It is not possible to get significance statistics for individual objects, only the log-fold changes. Thus, you might as well just compute the pre/post differences in log-expression values directly for each object, which is the best you can do for your second aim.