parallel-methods: parallel additional methods

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Functions defined in the easyRNASeq package that enhance the parallel package.

Usage

1
2
## S4 method for signature 'list,'function''
parallelize(obj = list(), fun = NULL, nnodes = 1, ...)

Arguments

obj

the object which processing has to be parallelizes

fun

the function to be applied in parallel

nnodes

the number of nodes to use

...

additional arguments passed to the function fun

Details

The parallelize function ease the use of the parallel package. If the number of nodes provided by the user is 1, then a simple 'lapply' is used, otherwise a cluster object is created and the object dispatched for parallelization.

Value

the result of the clusterApply function.

Author(s)

Nicolas Delhomme

See Also

clusterApply makePSOCKcluster and stopCluster in makeCluster

Examples

1
parallelize(list(a<-c(1,2),b<-c(2,1)),sum,nnodes=1)

easyRNASeq documentation built on April 30, 2020, 2 a.m.