Hi All,
I have performed an RNA-Seq wherein I want to look for differential expression based on two variables: Condition (high and low) and Treatment (A and B) as well as their interaction. At the same time, I have to adjust for covariates such as 'Batch' and 'Gender'. To do this, I have specified the design as following:
design <- ~Batch + Gender + Condition + Treatment + Condition:Treatment
resultsNames(dds)
[1] "Intercept" "Batch_2_vs_1" "Batch_3_vs_1" "Gender_2_vs_1" "Condition_high_vs_low"
[6] "Treatment_B_vs_A" "Conditionhigh.TreatmentB"
Can anyone suggest, if this is the right design? If so, what contrast will give me 'Batch' and 'Gender' adjusted results.
Thanks in advance.
Sumit
Hi Devon, Thanks for your response. I now feel more confident about my approach. Based on the above design, I am analysing my result as follows:
For Condition 'low' and for Treatment 'A' are my reference levels. Do you agree with this interpretation?
Personally, I think it's more readable to do these particular contrasts by making a Condition_Treatment column, and using that.
We would normally interpret these as follows:
name="Treatment_B_vs_A"
instead.name="Conditionhigh.TreatmentB"
)name="Condiction_high_vs_low"
In general with a 2x2 design you're interested in the 2 "main effects" (Treatment and Condition here) and the interaction between them (i.e., any unexpected change you get when they're combined). For most people I suspect it's simpler to use the coefficient names that
resultsNames()
returns.Devon, Thanks again for your time and effort. I did not mention it earlier but I have also done
(name="Conditionhigh.TreatmentB")
. In the context of our study design, Yes the 'interaction' is important but the other results are also equally important. I just need to find the best possible explanation for the interaction results.Hi,
I will advice you to use the makeContrasts function. You will find more details by following these links
R documentation about limma::makeContrasts
edgeR user guide check specific experimental design chapter. It is the same way with DESeq2 method
For the conditionnal tests design, it would be easier to create a new column in metadata before to perform the test. This methode is also explain in edgeR user guide.
A good exercise can be to use Likelihood Ratio test in DESeq2 method. This will force you to deepen a little into the concept of design because it is necessary to create full and reduce design in this case.
And you can check your results with edgeR, which should be similar (correlated p values)
Thanks Thomas. I guess, you mean the Likelihood Ratio test in DESeq2 and not the Log Ratio test. Will definitely have a look and try to implement your suggestions as well.
Yes, I was tired sorry. I will correct my message thank you !