reset_ncores_for_windows {chipenrich}R Documentation

Reset n_cores for Windows

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

reset_ncores_for_windows(n_cores)

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.


[Package chipenrich version 2.16.0 Index]