A set of wrapper functions for multicore processing, using the
1 2 3 4 5 6
integer specifying how many cores to request.
character vector (or list of character vectors), usually SampleIDs, that
need to be turned into a list of all pairs from
logical, are symmetric pairs needed. This is for cases where the function to be
called is sensitive to the order of its 2 arguments (i.e.
the usual arguments passed on to the respective 'apply' function
These are simple wrappers around the
multicore routines, to facilitate
parcelling computations that involve entire chromosomes or samples out to
multicore.setup, the number of cores actually available. The function
tries to load package
multicore, and if successful, sets the number of
cores to be used. This value can be subsequently returned by
multicore.samplePairs, a list of vectors (each of length 2), suitable for
a call to
multicore.lapply for a function expecting a vector of length 2 as its
multicore.lapply, the same type result as their
primitive functions, after being gathered from the separate cores.
All multicore functions turn off prescheduling (
we assume the processing time of each piece is highly variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.