Load fail of GO.db in R
0
0
Entering edit mode
6.7 years ago
T_18 ▴ 50

Dear all,

I am trying to run GOseq from the bioconductor package in R (via the Trinity pipeline). And get the following error:

Error: package or namespace load failed for ‘GO.db’: .onLoad failed in loadNamespace() for 'GO.db', details: call: NULL error: C stack usage 7969536 is too close to the limit

Execution halted

So there seems to be a problem with loading GO.db. Of course I googled but only found solutions in terms of using the latest R, Bioconductor and RSQLite versions. I updated all, but the error remained the same:

version.string [1] "R version 3.4.3 (2017-11-30)"

library(BiocInstaller) Bioconductor version 3.6 (BiocInstaller 1.28.0), ?biocLite for help

RSQLite version = 2.0

Is there a different approach to solve this error?

R RNA-Seq • 2.5k views
ADD COMMENT
0
Entering edit mode

Search for C stack usage is too close to the limit, you will find plenty of answers. Hint: ulimit.

ADD REPLY
0
Entering edit mode

Aha! Thanks.. So no specific R issue here.. Found the following solution: "To improve performance, we can safely set the limit of processes for the super-user root to be unlimited"

So therefor added the following line: ulimit -u unlimited using:

sudo nano /root/.bashrc

But this resulted in the same error, so seems that I made a mistake in adding the line to the file (I just pasted the line at the end of the file).

ADD REPLY
0
Entering edit mode

You don't need to do this as root. root .bashrc settings will have no influence on this, unless you are running Trinity as root, which you shouldn't - let me repeat, you shouldn't run Trinity, nor any other analysis program, as root.

You need to do this as your user. The simplest is just to issue ulimit -u unlimited prior to running Trinity.

ADD REPLY
0
Entering edit mode

Ah, of course.. Thanks. But:

ulimit -u unlimited -bash: ulimit: max user processes: cannot modify limit: Operation not permitted

ADD REPLY
0
Entering edit mode

And did you try:

1) to set a limit higher than your current, but not unlimited?

2) google for the new error message?

ADD REPLY
0
Entering edit mode

C stack usage 7969536 is too close to the limit

This indicates that you're running out of stack space. As the stack size is set by the system and should be sufficient for most needs (unless you changed it), this suggests a bug in the package but there could be other reasons too like libraries incompatibilities on your system. I suggest you report this to the package developers.

ADD REPLY
0
Entering edit mode

In that case would you argue against setting the stack space to unlimited (like in my reply above)?

ADD REPLY

Login before adding your answer.

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