syspremed / exploBATCH

A package for discovering and correcting for batch effect using an approach in Nyamundanda et al (2017).
4 stars 1 forks source link

Selection of number of cores to run #6

Open aerowild opened 4 years ago

aerowild commented 4 years ago

Hi, By default, expBATCH() seem to be using all the cores. Is there any way to limit the number of cores to use.

This as such is quite a useful option. However, I want to use this option because I want to select as many PCs as possible during the batch removal so that I can retain most of the data. However, if all the cores of my servers are used, it quickly runs out of memory beyond 9-10 PCs. I am suspecting the use of many cores is causing the use of huge amount of memory and if I can limit the number of cores (it is ok if it takes longer to run), this problem can be solved.

Any help would be appreciated, thanks.