setCepoBPPARAM: Setting parallel params based on operating platform

setCepoBPPARAMR Documentation

Setting parallel params based on operating platform

Description

Setting parallel params based on operating platform

Usage

setCepoBPPARAM(workers = 1L, ...)

Arguments

workers

Number of cores to use. Default to 1, which invokes BiocParallel::SerialParam. For workers greater than 1, see the workers argument in BiocParallel::MulticoreParam and BiocParallel::SnowParam.

...

Additional arguments passed to BiocParallel::MulticoreParam and BiocParallel::SnowParam.

Value

Parameters for parallel computing depending on OS

Examples

# system.time(BiocParallel::bplapply(1:3, FUN = function(i){Sys.sleep(i)}, 
# BPPARAM = setCepoBPPARAM(workers = 1)))
# system.time(BiocParallel::bplapply(1:3, FUN = function(i){Sys.sleep(i)}, 
# BPPARAM = setCepoBPPARAM(workers = 3)))

PYangLab/Cepo documentation built on June 29, 2024, 7:16 p.m.