DESeq2 error while using apeglm - optimHess
1
4
Entering edit mode
20 months ago
vatsay ▴ 40

I am trying to generate the lfcshrinkage using apeglm and it gives me the following error:

>  resApeglm <- lfcShrink(dds, coef=2, type="apeglm")

Error in optimHess(par = init, fn = nbinomFn, gr = nbinomGr, x = x, y = y,  : 
  non-finite value supplied by optim

Assuming that the dispersion is causing issues with the lfcshrinkage estimation, I have used ashr and that worked fine. But want to understand why the optimization step failed when I used apeglm ?

optimHess Apeglm DESeq2 • 2.7k views
ADD COMMENT
1
Entering edit mode

Please get used to provide command lines/code and if possible a MRE.

ADD REPLY
1
Entering edit mode

I got the same issue. Please let me know if you get solved it.

ADD REPLY
0
Entering edit mode

While understandable in its motivation, posts like this do not help. The issue at hand is still not reproducible. Please provide anything to debug. We neither know what data you're running, nor the full code or even the DESeq2 and Bioconductor versions. Providing a representative dataset would help, so does code and sessionInfo, for example via a reprex.

ADD REPLY
0
Entering edit mode

I have the exact same problem. I was using DESeq2 1.24.0 with R 4.0.2 before and everything worked fine. Recently I updated to R4.3.0 and DESeq2 1.40.1 and get the same error with data and code which was working fine before. The error seems to be not specific for apeglm as there are reports for other packages as well. In addition, the error pops up only after some time during the LFC shrinkage using apeglm but not ashr.

ADD REPLY
2
Entering edit mode
19 months ago
ATpoint 85k

Please follow https://support.bioconductor.org/p/9151819/ for the response of the DESeq2 author. I posted a reproducible example there.

Edit: Solved in apeglm. Either get the current version via devtools::install_github("azhu513/apeglm") or wait until the fix is pushed to Bioc release.

ADD COMMENT
0
Entering edit mode

Thanks ATpoint, I'll work on it and reply to that Bioc post once I've figured out what's going on.

https://github.com/mikelove/DESeq2/issues/74

ADD REPLY

Login before adding your answer.

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