DESeq2 experimental design for paired multifactor test
1
0
Entering edit mode
@gregorylstone-12225
Last seen 6.2 years ago

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

deseq2 multiple factor design paired samples • 1.4k views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 6 days ago
United States

DESeq2 only supports fixed effects not random, so it's really the first design vs using some other approach entirely. Sometimes you hear people say that certain kind of terms must be fit as random vs fixed, but really here what is important is that the differences across samples are modeled, and therefore you perform inference on the fold change of post vs pre within sample. So according to my view, the first design is sufficient.

ADD COMMENT
0
Entering edit mode

Great, thank you!

ADD REPLY

Login before adding your answer.

Traffic: 449 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6