Hi,
I was using BiocParallel with BatchJobsParam and kept getting an error described here ( https://github.com/tudo-r/BatchJobs/issues/58 ). To avoid that error, I needed to pass the parameter job.delay from the function submitJobs (defined in BatchJobs), but I could not find a way pass this parameter to submitJobs when creating my BatchJobsParam object. By looking at the code, the only parameter that is passed to submitJobs from BatchJobsParam is 'resources':
submit.pars <- Filter(not_null, list(resources=resources))
So, what I end up doing was to manually modify my BatchJobsParam object:
cf <- makeClusterFunctionsLSF("/home/reyes/lsf.tmpl")
bjp <- BatchJobsParam( nCores,
conffile="/g/huber/users/reyes/CLL/org/BatchJobs_config.R",
cluster.functions=cf,resources = list("queue" = "medium_priority", "memory"="8000", "cpus"="1" ))
bjp$submit.pars$job.delay <- function(n,i) runif(1,1,3)
This works, but I think it would be nicer to have full control of the submitJobs parameters when creating the BatchJobsParam object, as well as to have documentation of how to do this in `?BatchJobsParam`
Alejandro