DESeq2 not shrinking fold changes?
1
0
Entering edit mode
enricoferrero ▴ 660
@enricoferrero-6037
Last seen 2.4 years ago
Switzerland

Hi,

I'm using DESeq2 to analyse some RNA-seq data. I have different treatments (XXX, YYY and ZZZ) at different time points (2h, 4h, 8h), with DMSO used as a control for the treatment. 'se' is my SummarizedExperiment object containing the raw counts.

## create DESeqDataSet
dds <- DESeqDataSet(se, design = ~ treatment + time + treatment:time)
# make sure DMSO is the base level of the treatment factor
dds$treatment <- relevel(dds$treatment, "DMSO")

## differential expression analysis
dds<- DESeq(dds)

## get results
# let's check the effect of treatment XXX
res <- results(dds, contrast=c("treatment", "XXX", "DMSO"))

## MA plot
plotMA(res)

 

Now, this is what my MA plot looks like:

Does this look right? It almost looks like the fold changes have not been shrunken! Is that the case?

Am I doing something wrong?

Thank you.

deseq2 • 2.5k views
ADD COMMENT
3
Entering edit mode
@mikelove
Last seen 5 hours ago
United States

The prior only applies to interaction terms in a model with interaction terms. This behavior is described in ?nbinomWaldTest and in the Methods section of our manuscript (linked to on the first page of the vignette). I will add another note to the vignette section on interactions and to ?DESeq as well.

ADD COMMENT
0
Entering edit mode

Thanks Michael. Why is the prior only applied to the interaction terms?

I very often do designs with interaction terms because I'm interested in, say, condition A in group 1, but I might also be interested in condition A over all groups. Since the prior is not applied to the second example, how reliable are its fold changes?

Thank you. 

ADD REPLY
1
Entering edit mode

It takes a bit of geometric intuition, but for certain settings it was possible to observe that both shrinking the main effect terms and the interaction term resulted in the interaction term growing (despite the prior) to account for the difference between the observed counts and the predicted value using only the main effect terms. This could be demonstrated when the interaction term was truly 0, that the distribution of Wald or likelihood ratio statistic for the estimated interaction effects was too wide or too long tailed. This does not occur in the current implementation.

The unshrunken fold changes are perfectly reliable, if you filter on adjusted p-value. 

ADD REPLY

Login before adding your answer.

Traffic: 485 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6