cozygene / glint

22 stars 8 forks source link

ewas --logreg creates threads = number of cpus #9

Closed krferrier closed 3 years ago

krferrier commented 3 years ago

I was attempting to use GLINT to run a logistic regression EWAS (python glint.py --ewas --logreg), but when I do the parent GLINT process creates child threads, where n_threads = nproc available. I work on a shared workstation without queueing, so I'd like to limit the number of threads used by GLINT, but there's no option to specify the number of threads for GLINT to use.

A workaround solution for this is to add OMP_NUM_THREADS= int at the beginning of the GLINT command, where 'int' is the number of threads you want to use. For example:

OMP_NUM_THREADS=5 python glint.py --datafile cleaned_final.glint --ewas --logreg --pheno menopause --covar --out menopause_ewas