R/parallel_utilities.R

Defines functions .get_instance_biocparallel

.get_instance_biocparallel <- function(workers = 1){
    OS_type <- tolower(Sys.info()["sysname"])
    if(OS_type %in% c("linux", "osx", "darwin")){
        return(MulticoreParam(workers=workers))
    }else if(OS_type %in% c("windows")){
        return(SnowParam(workers=workers))
    }
}

Try the HiCBricks package in your browser

Any scripts or data that you put into this service are public.

HiCBricks documentation built on Nov. 8, 2020, 7:45 p.m.