Hello all,
I have 16 patient rna samples who belong to 8 patients, taken before and after their treatment.
My samples table is that:
no sample condition replicate reponse
1 1 102_screen screen P1 N
2 2 102_treated treatment P1 N
3 3 105_treated treatment P2 N
4 4 105 screen P2 N
5 5 107_treated treatment P3 N
6 6 107 screen P3 N
7 7 108_treated treatment P4 N
8 8 108 screen P4 N
9 9 110_treated treatment P5 Y
10 10 110 screen P5 Y
11 11 111_treated treatment P6 N
12 12 111 screen P6 N
13 13 115_treated treatment P7 N
14 14 115 screen P7 N
15 15 116_treated treatment P8 N
16 16 116 screen P8 N
One of them responded to the treatment and I would like to check the significance of the gene count difference between the responder and the others, but taking into consideration that the samples are paired.
I am not sure if it is correct to use this design, because I think that it considers all the samples as indipendant.
dds <- DESeqDataSetFromTximport(txi, coldata, ~reponse)
Is there anyone who can help me sort this out please?
Dear Michael,
Thank you very much for your help, that was exactly what I needed to understand how it works! :)
Best
Peny
I might be missunderstanding something. But I thought pennakiza was asking for the difference in gene expression between the group of responders (N=1 in this case) and the group of non-responders. But the interaction term given here would give the difference in treatment effect between responders and non-responders.
In this example, if there were several conditions (instead of just 2), say "before", "during" and "after", how would you specify that you want "before" to be the base case for comparison? It seems like it might be defaulting to alphabetical order, leaving me without "groupY.conditionAfter" and "groupN.conditionAfter" variables to contrast.