I am trying to use DESeq2 to compare the effect of a treatment between males and females. I have paired samples, and my colData looks as such:
sample | condition | sex | nested |
sample1 | pre | M | 1 |
sample1 | post | M | 1 |
sample2 | pre | M | 2 |
sample2 | post | M | 2 |
sample70 | pre | F | 1 |
sample 70 | post | F | 1 |
... | ... | ... | ... |
my design is therefore: ~ sex + sex:nested + sex:condition
However, I've also read that the sample should be treated as a random variable and be included in the design matrix. This would mean that my colData looks like:
samples | condition | sex | nested | patient |
sample1 | pre | M | 1 | 1 |
sample1 | post | M | 1 | 1 |
sample2 | pre | M | 2 | 2 |
sample2 | post | M | 2 | 2 |
sample70 | pre | F | 1 | 70 |
sample70 | post | F | 1 | 70 |
... | ... | ... | ... | ... |
and my design would be ~ patient + sex + sex:nested + sex:condition
Is this necessary, or have I been misinterpreting what I'm reading? Should I stick with the first or second design? Any and all help is much appreciated.
Thanks,
Greg
Great, thank you!