| bpmapply {BiocParallel} | R Documentation |
bpmapply applies FUN to first elements of ...,
the second elements and so on. Any type of object in ... is
allowed, provided length, [, and [[ methods are
available. The return value is a list of length equal to the
length of all objects provided, as with mapply.
bpmapply(FUN, ..., MoreArgs=NULL, SIMPLIFY=TRUE, USE.NAMES=TRUE,
BPRESUME=getOption("BiocParallel.BPRESUME", FALSE),
BPPARAM=bpparam())
## S4 method for signature 'ANY,ANY'
bpmapply(FUN, ..., MoreArgs=NULL, SIMPLIFY=TRUE, USE.NAMES=TRUE,
BPRESUME=getOption("BiocParallel.BPRESUME", FALSE),
BPPARAM=bpparam())
## S4 method for signature 'ANY,missing'
bpmapply(FUN, ..., MoreArgs=NULL, SIMPLIFY=TRUE, USE.NAMES=TRUE,
BPRESUME=getOption("BiocParallel.BPRESUME", FALSE),
BPPARAM=bpparam())
## S4 method for signature 'ANY,BiocParallelParam'
bpmapply(FUN, ..., MoreArgs=NULL, SIMPLIFY=TRUE, USE.NAMES=TRUE,
BPRESUME=getOption("BiocParallel.BPRESUME", FALSE),
BPPARAM=bpparam())
FUN |
The |
... |
Objects for which methods |
MoreArgs |
List of additional arguments to |
SIMPLIFY |
If |
USE.NAMES |
If |
BPRESUME |
Flag to determine if a previous partially successful run
should be resumed. See |
BPPARAM |
An optional |
See showMethods{bplapply} for additional methods, e.g.,
method?bplapply("MulticoreParam").
See lapply.
Michel Lang . Original code as attributed in
mclapply.
bpvec for parallel, vectorized
calculations.
BiocParallelParam for possible values of BPPARAM.
showMethods("bpmapply")
## ten tasks (1:10) so ten calls to FUN default registered parallel
## back-end. Compare with bpvec.
result <- bpmapply(function(greet, who) {
paste(Sys.getpid(), greet, who)
}, c("morning", "night"), c("sun", "moon"))
cat(paste(result, collapse="\n"), "\n")