job_loop | R Documentation |
This function builds a bash script that loops over a set of variables with pre-specified values to create an internal bash script that then gets submitted as a SGE job.
job_loop(
loops,
name,
create_shell = FALSE,
queue = "shared",
memory = "10G",
cores = 1L,
email = "e",
logdir = "logs",
filesize = "100G",
task_num = NULL,
tc = 20
)
loops |
A named |
name |
A |
create_shell |
A |
queue |
A |
memory |
The amount of memory per core to request in SGE syntax. You
can check how much a current job is utilizing using the |
cores |
The number of cores to request. Note that the total memory
your job will request is |
email |
The email reporting option for the email. For more information check https://jhpce.jhu.edu/knowledge-base/how-to/#Email. |
logdir |
The directory for the SGE log files relative to the current working directory. |
filesize |
The maximum file size in SGE format. |
task_num |
The number of tasks for your job, which will make it into an
array job. If |
tc |
If |
A character vector with the script contents. If create_shell
was
specified then it also creates the actual script in the current
working directory.
Leonardo Collado-Torres
job_loop(
loops = list(region = c("DLPFC", "HIPPO"), feature = c("gene", "exon", "tx", "jxn")),
name = "bsp2_test"
)
job_loop(
loops = list(region = c("DLPFC", "HIPPO"), feature = c("gene", "exon", "tx", "jxn")),
cores = 5,
task_num = 10,
name = "bsp2_test_array"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.