Description Usage Arguments Details Examples
Certain functions (like motif scanning) can be parallelized in PWMEnrich. This function registers a number of parallel cores (via core package parallel) to be used in code that can be parallelized. After this function is called, all further PWMEnrich function calls will run in parallel if possible.
1 | registerCoresPWMEnrich(numCores = NA)
|
numCores |
number of cores to use (default to take all cores), or NULL if no parallel execution is to be used |
By default parallel execution is turned off. To turn it off after using it, call this function by passing NULL.
1 2 3 4 5 6 | ## Not run:
registerCoresPWMEnrich(4) # use 4 CPU cores in PWMEnrich
registerCoresPWMEnrich() # use maximal number of CPUs
registerCoresPWMEnrich(NULL) # do not use parallel execution
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.