parallelize: Parallelization

parallelizeR Documentation

Parallelization

Description

A convenient wrapper function of BiocParallel providing easy parallelization.

Usage

paraLapply(
  X,
  FUN,
  BPPARAM = NULL,
  cores = 1L,
  type = c("serial", "fork", "sock"),
  verbose = FALSE,
  ...
)

Arguments

X

Any object for which methods length, [, and [[ are implemented (passed to bplapply).

FUN

The function to be applied to each element of X (passed to bplapply).

BPPARAM

An optional BiocParallelParam instance determining the parallel back-end to be used during evaluation, or a list of BiocParallelParam instances, to be applied in sequence for nested calls to BiocParallel functions.

cores

The number of threads to use. The results are invariate to the value of cores.

type

One of "serial", "fork", or "sock". When cores is one, type is always "serial". Both "fork" and "sock" are for multi-threading. "fork" is faster, but only supports linux and macos. "sock" supports linux, macos, and windows.

verbose

Whether to print debug information or not.

...

Additional parameters passed to bplapply.

Value

See lapply.


edward130603/BayesSpace documentation built on Oct. 23, 2024, 7:04 a.m.