cdanielmachado / carveme

CarveMe: genome-scale metabolic model reconstruction
Other
147 stars 50 forks source link

Parallelization #59

Closed tonyjhlam closed 4 years ago

tonyjhlam commented 4 years ago

Is there a way to restrict parallelization to n number of cores, rather than utilize all available cores.

cdanielmachado commented 4 years ago

I did not create an argument to change the number of cores, I can include this suggestion in the next release.

For the moment you can easily fix this by changing the "carve" script in line 394, just replace p = Pool() with p = Pool(n) where n is the number of cores you want to use.