How are the shrunk result data used in DESeq2?
1
0
Entering edit mode
thkapell ▴ 10
@tkapell-14647
Last seen 22 months ago
Helmholtz Center Munich, Germany

I am a bit confused with the "lfcshrink" function in DESeq2. I would assume that one would want to use the shrunk result table in subsequent DE gene analysis, but the DESeq2 manual suggests that lfc shrinkage is only used for data visualisation. Could someone clarify how "results" and "lfcshrink" are differentially used in the pipeline?

deseq2 lfcshrink • 6.0k views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 1 day ago
United States

There was a similar question on another post recently:

C: DESeq2 and shrinkage of log2 fold changes

Let me know if you have further questions.

ADD COMMENT
0
Entering edit mode

Thanks for the reply. I now understand why I should use lfcShrink, but wonder whether one can pass all the results arguments in this function as well, e.g. cooksCutoff, independentFiltering, altHypothesis, filterFun. Does lfcShrink run results internally or should I have to run results first and then apply lfcShrink?

ADD REPLY
0
Entering edit mode

If you have specific arguments for results() it's better to use this paradigm below. The "..." in lfcShrink() are passed to external shrinkage methods, not to results(), so you can just run results() with those arguments and pass the `res` object to lfcShrink to add the posterior mode and SD.

res <- results(dds)
res <- lfcShrink(dds, coef=2, res=res) # e.g. for a two group analysis
ADD REPLY

Login before adding your answer.

Traffic: 533 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