Changed logic for cores identification
Related JIRA issue: GDR-1615
Why was it changed?
The previous logic failed because of the setting -1 cores on GRAN. In the documentation we can found, that usage of BiocParallel::multicoreWorkers() is equivalent for parallel::detectCores()-2 and it by default does not allow for negative values.
Checklist for sustainable code base
[ ] I added tests for any code changed/added
[ ] I added documentation for any code changed/added
[ ] I made sure naming of any new functions is self-explanatory and consistent
Description
What changed?
Changed logic for cores identification Related JIRA issue: GDR-1615
Why was it changed?
The previous logic failed because of the setting
-1
cores on GRAN. In the documentation we can found, that usage ofBiocParallel::multicoreWorkers()
is equivalent forparallel::detectCores()-2
and it by default does not allow for negative values.Checklist for sustainable code base
Logistic checklist
Screenshots (optional)