mcveanlab / mccortex

De novo genome assembly and multisample variant calling
https://github.com/mcveanlab/mccortex/wiki
MIT License
113 stars 25 forks source link

Pjoin memory allocation error #62

Closed carlyprior closed 6 years ago

carlyprior commented 7 years ago

When attempting to merge link files with the pjoin command I receive a 'Fatal Error: Out of memory'. I have tried to allocate as much as 522G using the -m (--memory) flag to no avail. It appears that, for the instance shown below, I am only being allocated 28.9M which is utilized before any merging can be done. This error has occurred regardless of the number of input files. Attached is the error file which contains my script:

mccortex-pjoin-errorfile.txt

iqbal-lab commented 6 years ago

Carly has pinged me about this. I'll email to ask for more info on input data. @noporpoise do you have any reaction, seen before?

noporpoise commented 6 years ago

Apologies for the delay @carlyprior.

It looks like you need to specify the number of kmers you expect with e.g. -n 10M for 10 million kmers. McCortex uses the memory limit (-m) as a max, and tries to use less when possible. Sorry this isn't the most convenient setup.

carlyprior commented 6 years ago

No worries @noporpoise. -n fixed my issue. Thanks for the advice!