jodyphelan / NTM-Profiler

Profiling NTM WGS data
GNU General Public License v3.0
10 stars 2 forks source link

Can't run after update #12

Open pgcudahy opened 2 years ago

pgcudahy commented 2 years ago

Thanks for letting me know about the update Jody, unfortunately all of my runs fail with this error that I cannot decode (the version says 0.2.0, but I confirmed I'm running 0.2.1 but the version string wasn't updated with the latest release):

$ cat N200006_S289.errlog.txt

ntm-profiler error report

I tried to run the kmc command by itself and got the same error

$ kmc  -t1 -sf1 -sp1 -sr1 -k31 @219bda85-28f9-43c3-9f0c-461bc10d96e1.list 219bda85-28f9-43c3-9f0c-461bc10d96e1 219bda85-28f9-43c3-9f0c-461bc10d96e1
*****************
Stage 1: 100%
Stage 2: 100%
Bus error

This is on my university's cluster and not my own machine, so a bit harder to debug, but I'll keep looking into it.

pgcudahy commented 2 years ago

Ah, it's an out of memory issue. My cluster instance had a cap of 8GB of memory and the default for kmc is 12GB. Per kmc's documentation -m<size> - max amount of RAM in GB (from 1 to 1024); default: 12 so adding the argument -m8 made it run fine. kmc needs a minimum of 2GB of memory, but when comparing different runs, it takes about 45 seconds per genome with both 2GB and 8GB, so maybe set the command to -m2. Alternatively you could just warn users to allocate at least 12GB.

jodyphelan commented 2 years ago

Ah thanks for looking into this, I'll add that parameter in and update the release