bioinfologics / w2rap

WGS (Wheat) Robust Assembly Pipeline
22 stars 8 forks source link

memory limits #5

Closed MichelMoser closed 6 years ago

MichelMoser commented 6 years ago

Hi,

I repeatedly get memory overflow errors when setting -m option. As it is a "soft" memory limit, as written in the options, is there an absolute way to limit memory requirements of w2rap? I use a node of 256 Gb RAM and set -m 200

Thank you, Michel

jonwright99 commented 6 years ago

Hi Michel,

There's no hard limit option. We usually set the soft limit to ~80% of the hard limit but this doesn't ensure that the memory requirements don't break the hard limit. If you know which step is failing there are options you can use to reduce the memory usage in specific steps such as using disk batches for step 2 which stores kmer counts on disk rather than in memory. Alternatively, you can subsample reads to reduce memory requirements. What size genome are you trying to assemble and what read coverage are you using?

Best wishes, Jon

MichelMoser commented 6 years ago

Hi Jon, Yes, its step 2 which is failing. I will try to use disk batches. The genome is in the 1.5 Gb range and coverage about 50x. Thanks, Michel

jonwright99 commented 6 years ago

-d 8 or -d 16 on step 2 should do it

MichelMoser commented 6 years ago

thanks, it passed step 2