Hi, I am stuck in differential gene expression analysis (more than two condition) with Deseq2, here is the colData table:
Sample.Type env condition
WT cold cold.3
WT cold cold.3
WT cold cold.6
WT cold cold.6
WT cont cont.3
WT cont cont.3
WT cont cont.6
WT cont cont.6
WT salt salt.3
WT salt salt.3
WT salt salt.6
WT salt salt.6
mutant cold cold.3
mutant cold cold.3
mutant cold cold.6
mutant cold cold.6
mutant cont cont.3
mutant cont cont.3
mutant cont cont.6
mutant cont cont.6
mutant salt salt.3
mutant salt salt.3
mutant salt salt.6
mutant salt salt.6
Please note that every sample.type has three conditions in env column (salt, cold, and control) and every one of them also has two conditions, for example salt has (salt.3 and salt.6), as I need to get the differential expressed genes in salt environment (between WT and mutant), so I had changed colData table to be able to manipulate the contrast of Deseq2:
Sample.Type env condition
WT cold cold.3
WT cold cold.3
WT cold cold.6
WT cold cold.6
WT cont cont.3
WT cont cont.3
WT cont cont.6
WT cont cont.6
WT WT.salt salt.3
WT WT.salt salt.3
WT WT.salt salt.6
WT WT.salt salt.6
mutant cold cold.3
mutant cold cold.3
mutant cold cold.6
mutant cold cold.6
mutant cont cont.3
mutant cont cont.3
mutant cont cont.6
mutant cont cont.6
mutant mutant.salt salt.3
mutant mutant.salt salt.3
mutant mutant.salt salt.6
mutant mutant.salt salt.6
dds = DESeqDataSetFromMatrix( countData = countData , colData = colData , design = ~Sample.Type + env)
dds.run = DESeq(dds)
res=results(dds.run)
res=results(dds.run, contrast = c("env", "mutant.salt", "WT.salt"))
Q1: Is that the right analysis to get DEGs in salt environment (between WT and mutant)? If not, How?
Q2: what is the right way to get DEGs in salt environment but in this case between salt.3 and salt.6 in WT only?
I really appreciate your help!
Thanks in advance
Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.Thank you!