Dear Community,
I have problably a relatively simple question, but I am quite new to DESeq2 and unfortunately couldn't find an answer to my question. I have the following dataset:
- Sample /Genotype / Injury / Condition
- 1 / WT / NO / WT_NO
- 2 / WT / YES / WT_YES
- 3 / KO / NO / KO_NO
- 4 / KO / YES. / KO_YES
- List item
...
I followed the guidelines for DESeq2 and could create a dds file
dds <- DESeqDataSetFromMatrix(countData = rawCountTable,
colData = sampleInfo,
design = ~ Condition)
and then could extract the groups I would like to compare with
KO_YES_vs_KO_NO <- results(dds2, contrast=c("Condition", "KO_YES", "KO_NO") , independentFiltering=TRUE, alpha=0.05, pAdjustMethod="BH", parallel=TRUE)
However, the last comparison I would like to do is between the injury groups so WT_YES to KO_YES. For this I need a baseline correction (WT_NO and KO_NO). I am not sure how to add it into the DESeq command and unfortunately couldn't find anything to address this issue. I hope someone can help!
Thank you for any advice!
Thank you Michael for your response! I managed to use ratio of ratios and updated my code like the following
If I run then
I receive the options:
I am not sure which of these to combine for my results command
( I want to. compare ratios of KO Injury (normalized to KO Ctrl) to WT injury (normalized to WT Ctrl).
Thank you!
It is just the interaction term that is the ratio of ratios. Use
results(..., name="")
. But first read over the vignette note on factor levels (you have KO as the reference and WT as the effect, which is backwards).Great thank you!
I have updated the levels now I get as a result from resultsNames(dds)
and then I simply run:
...and "res" represents then the fold changes and p values for normalized KO injury / normalized WT injury?
Thank you!
hi, no this is really off you are testing the intercept not the interaction, I'd recommend working with a statistician by the way. I can't provide statistical consultation here, due to limits on my time, I have to focus on software related issues only.