merfin icon indicating copy to clipboard operation
merfin copied to clipboard

merfin doesnt respect -threads option

Open bredeson opened this issue 3 years ago • 4 comments

Hi!

FYI, I'm running merfin -dump -threads 8 at the moment, and it is currently running the meryl count step on the genome sequence fasta with 16 threads. Is this a bug?

Best, Jessen

bredeson avatar Jul 27 '21 03:07 bredeson

Ah, and the -hist function does this as well.

bredeson avatar Jul 27 '21 16:07 bredeson

@brianwalenz could you take a look?

arangrhie avatar Jul 28 '21 18:07 arangrhie

It looks like the threads parameter doesn't propagate to the meryl subprocess. A quick workaround is to set environment variable OMP_NUM_THREADS to what you want.

The code has been updated to fix this, too.

brianwalenz avatar Jul 28 '21 23:07 brianwalenz

Also with -polish as well.

Thanks for the tip!

bredeson avatar Jul 31 '21 06:07 bredeson