jtamames / SqueezeMeta

A complete pipeline for metagenomic analysis
GNU General Public License v3.0
346 stars 81 forks source link

Stopping in STEP4 -> 04.rundiamond.pl #845

Closed Biotrinf closed 3 weeks ago

Biotrinf commented 1 month ago

Hi, I have faced the "Stopping in STEP4 -> 04.rundiamond.pl Program finished abnormally" error.

I could not understand the problem. I have already checked the syslog file, but there is no extraordinary situation. I have attached the file as well. Is there a problem with installing the database on Windows and running squeezeMeta via WSL2? Also, I have 32 GB RAM and enough hard drive space. syslog.zip

Is there any way to continue from the program is killed?

fpusan commented 1 month ago

SqueezeMeta runs in WSL2, but you should have your databases in the WSL2 partition (rather than the windows partition), see #695.

Still, it should work with the database in the windows partition (just become very slow at times). DIAMOND dying is usually due to lack of memory. What's the output in /home/bioinf/mku/temp/diamond.nr.log?

Also even if you have 32Gb RAM it may not all be available to WSL2 (e.g. https://superuser.com/questions/1707758/wsl-2-does-not-have-all-memory-available-to-it). In fact, SqueezeMeta seems to be only seeing 15 Gb of free RAM. Are you running other things in parallel.

Anyways I would edit the home/bioinf/mku/SqueezeMeta_conf.pl file and change the value of $blocksize to 0.5 (so that DIAMOND uses less memory) and then restart the run SqueezeMeta.pl --restart -p mku, hopefully that will fix it. You can also add the parameter -b 0.5 when starting runs in the future to control this.

Biotrinf commented 4 weeks ago

First of all thanks for your support.

I have changed all the folder locations into the WSL2 partition. However, the problem was not terminated.

Then, I changed the WSL2 RAM setting so the WSL2 could use the 24GB capacity of the RAM (before, it could not use more than 16GB half of the current capacity). Finally, the program worked, and the problem was solved.

fpusan commented 3 weeks ago

Glad to hear. Closing!