DESeq2 question: contrast to reflect treatment effect corrected by baseline
1
0
Entering edit mode
Jenny Xu ▴ 10
@jenny-xu-23402
Last seen 4.0 years ago

I am interested in answering such questions about fold change and significance of contrast of contrast: (drug at visit2 vs. drug at visit1) vs. (placebo at visit2 vs. placebo at visit1). I have played with interaction term but not sure that’s exactly what I want? Below is how currently I formulate and any advice would be much appreciated. Thank you.

formula = ~visit + treatment + visit:treatment

to get the results reflecting (drug at visit2 vs. drug at visit1) vs. (placebo at visit2 vs. placebo at visit1):

contrast = list(c(maintreatmenteffect, drugatvisit_2))

deseq2 • 448 views
ADD COMMENT
1
Entering edit mode
Kevin Blighe ★ 4.0k
@kevin
Last seen 5 weeks ago
Republic of Ireland

If you have set visit1 and placebo as your reference levels, then the following contrasts could be used:

the treatment effect for visit 1

 results(dds, contrast = c('treatment', 'drug', 'placebo'))

the treatment effect for visit 2

 results(dds, list(c('treatment_drug_vs_placebo', 'visit2.treatmentdrug')))

the interaction term

This answers the question: "is the effect of treatment different across visits?"

 results(dds, name = 'visit2.treatmentdrug')

You can decide which is more appropriate to take.

There are a lot of useful examples here:

Kevin

ADD COMMENT
1
Entering edit mode

Yeah your visit 2 solution is what I am using currently, thanks for reassuring.

ADD REPLY

Login before adding your answer.

Traffic: 667 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