Hello everyone,
I have questions about how to write design for DESeqDataSetFromMatrix and using "name" and "contrast" argument in results()
.
Here's how my data looks like:
> sample_info
X Genotype Trt
1 Flood_4610_D14 4610 Control
2 Flood_4610_D14 4610 Control
3 Flood_4610_D14 4610 Control
4 Flood_4610_D14 4610 Control
5 Flood_Rondo_D14 Rondo Control
6 Flood_Rondo_D14 Rondo Control
7 Flood_Rondo_D14 Rondo Control
8 Flood_Rondo_D14 Rondo Control
9 Drought_Rondo_D14 Rondo Drought
10 Drought_Rondo_D14 Rondo Drought
11 Drought_Rondo_D14 Rondo Drought
12 Drought_Rondo_D14 Rondo Drought
13 Drought_4610_D14 4610 Drought
14 Drought_4610_D14 4610 Drought
15 Drought_4610_D14 4610 Drought
16 Drought_4610_D14 4610 Drought
The aim of my study is to identify what genes express differently in 4610 compare to Rondo under drought treatment. I wrote "design = ~ Genotype + Trt + Genotype:Trt" in DESeqDataSetFromMatrix()
My question is: How to see the comparison for "Drought_4610" vs "Drought_Rondo" in results()
? (I can only do either Drought vs Control or 4610 vs Rondo. How to consider both factor at the same time?)
Thank you,
I followed A: DESEq2 comparison with mulitple cell types under 2 conditions to create group.
But my
resultsNames(dds)
only has:> resultsNames(dds)
[1] "Intercept" "group_4610Drought_vs_4610Control" "group_RondoControl_vs_4610Control"
[4] "group_RondoDrought_vs_4610Control"
Doesn't have "group_RondoDrought_vs_4610Drought".