Hello,
I have 79 samples composed of volunteers who received 5 different treatments. The data resembles the following:
Status | Treatment | |
A02BG | BG | Aq |
A02AG | AG | Aq |
C03BG | BG | Cr |
C03AG | AG | Cr |
I wanted to answer the question if the difference between the BG and AG of a treatment significantly different from that of another treatment. Is there a way to do a paired difference analysis using deseq?
I've used the following to answer a similar question: For each treatment, is there a significant difference of composition between the BG and AG samples?
dd_tb$group = factor(paste0(dd_tb$Treatment, dd_tb$Status)) design(dd_tb) = ~ group aq_res = results(dd_tb, contrast = c("group", "AqAG", "AqBG")) cr_res = results(dd_tb, contrast = c("group", "CrAG", "CrBG"))
But this question compared the status differences per treatment. Are there any suggestions regarding how I can test if there's a difference among the BG and AG (status) differences between treatments?
Yours,
Nina
Thanks!
Also clarifying an earlier question, is there a need to filter out samples to control for the donors? I would think so because the gene expression should be compared between the same individuals. So, if Treatment Aq had 10 donors and Treatment Cr had 20 donors, and they only shared 10 of the same donors, as a filtering parameter should I only include the 10 donors that the two treatments shared when I create the DESeq2 object?
You have a number of options: you can limit to just the samples that are paired and include the pair information in the design (you'll have to read up on the vignette section on this, there are also many support site posts on this topic), or you can use limma's duplicateCorrelation to include all samples, and specify those of which are paired (that is separate from DESeq2 entirely, we don't have this functionality), or you can use DESeq2 but not control for pair. This analysis choice is up to you, or you can consult with a local statistician to assist you further.