brentp / somalier

fast sample-swap and relatedness checks on BAMs/CRAMs/VCFs/GVCFs... "like damn that is one smart wine guy"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limit number of threads used

fgvieira opened this issue · comments

Dear all,

is it possible to limit the number of threads somalieruses?
Right now it seems to use all available cpus.

thanks,

hi, do you mean somalier ancestry?

Yes, I've only noticed it on somalier ancestry, but was not sure if there was a general option that also affected other analyses.

ok. should only be in ancestry. I will have a look. Next release might be a few weeks off.

hi, you can do this now with export OMP_NUM_THREADS=8 somalier ancestry .... I'll document this or make it a parameter for next release.

Hi,
I know this is an old issue, but I just saw somalier relate also uses many cores. I haven't test the solution above yet, but just wanted to note it also happens in the relate sub-command.