Description Usage Arguments Value Note Author(s) Examples
use batchMapResults infrastructure to process results in a ciseStore instance
1 2 3 4 | storeMapResults(store, reg2, fun, ...,
ids = NULL, part = NA_character_, more.args = list())
loadAndFilterResult(reg,
id, filter=force, part = NA_character_, missing.ok = FALSE)
|
store |
an instance of |
reg |
instance of BatchJobs Registry class |
reg2 |
an empty instance of the Registry class
(see |
fun |
A function to map over results in |
filter |
a function that accepts and returns a GRanges instance, to be applied just after loading a result from the store |
... |
additional arguments to vectorize over (should be same length as
|
ids |
ids of job results to be mapped; if missing, map all job results |
id |
a single job id |
part |
see |
missing.ok |
see |
more.args |
a list of other arguments to be passed to |
integer vector with job ids. Main purpose is to prepare the registry for submitJobs.
loadAndFilterResult
is not intended to be exported
and may be removed in future versions.
VJ Carey <stvjc@channing.harvard.edu>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
if (require(geuvStore2)) {
require(BatchJobs)
store = makeGeuvStore2()
fd = tempfile()
tempreg = makeRegistry("tempSMR", file.dir=fd)
storeMapResults( store, tempreg, fun=function(job, res, ...) length(res) )
showStatus(tempreg)
submitJobs(tempreg, 1:2)
loadResults(tempreg)
unlink(fd)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.