reset_ncores_for_windows: Reset n_cores for Windows

Description Usage Arguments Value

View source: R/utils.R

Description

We use parallel::mclapply for multicore geneset enrichment testing, but this function supports more than one core if the OS is not Windows. If the OS is windows, the number of cores (mc.cores) must be set to 1.

Usage

1

Arguments

n_cores

An integer passed to broadenrich(), chipenrich(), or polyenrich() indicating the number of cores to use for enrichment testing.

Value

Either the original n_cores if the OS is not Windows, or 1 if the OS is Windows.


chipenrich documentation built on Nov. 8, 2020, 8:11 p.m.