Hello,
I have been reading lots of posts about DESeq2 and time course/repeated measures experiment but I still cannot find the answer to my question. The fact that measures are repeated on the same set of samples is rarely mentionned but it seems crucial to me. My design is similar to the one in the table below : (3 Groups) x (3 Time points) x (more than 2 subjects per Group):
Subject | Time | Group |
1 | W2 | Control |
1 | W3 | Control |
1 | W4 | Control |
2 | W2 | Control |
2 | W3 | Control |
2 | W4 | Control |
3 | W2 | Treat_1 |
3 | W3 | Treat_1 |
3 | W4 | Treat_1 |
4 | W2 | Treat_1 |
4 | W3 | Treat_1 |
4 | W4 | Treat_1 |
5 | W2 | Treat_2 |
5 | W3 | Treat_2 |
5 | W4 | Treat_2 |
6 | W2 | Treat_2 |
6 | W3 | Treat_2 |
6 | W4 | Treat_2 |
I would like to identify the differentially expressed genes at (at least) 1 time point between any pairs of Group while taking the intra-subject variability into account. Is it correct to use the code below?
dds <- DESeqDataSet(data, ~ Subject + Time + Group + Group:Time)
ddsLRT <- DESeq(dds, test="LRT", reduced = ~ Subject + Time + Group)
resLRT <- results(ddsLRT)
If I understood correctly, I will get a unique p-value per gene for the signifiance of the global test (differentially expressed at (at least) 1 time point between at least one pair of Group while taking the intra-subject variability into account).
Would it then be correct to perfom kind of post-hoc test using
res <- results(dds)
and changing the contrasts to get all desired comparisons?
I hope that I am being clear, don't hesitate to ask otherwise as it is my first post here.
Best regards,
Marion.