Description Usage Arguments Value Examples
View source: R/set_arrayjob2.R
Farm is a computer cluster running slurm system. Note, bigmem mem=8000/cpu, hi/med/low mem=25000/cpu, serial mem=1500/cpu.
1 2 3 | set_farm_job(slurmsh = "largedata/GenSel/CL_test.sh",
shcode = "sh largedata/myscript.sh", wd = NULL, jobid = "myjob",
email = NULL, runinfo = c(TRUE, "bigmemh", "1", "2G", "8:00:00"))
|
slurmsh |
Relative or absolute path and file name of your shell code, i.e. largedata/GenSel/CL_test.sh. |
shcode |
The commands inside your sh file. |
wd |
Working directory, default=NULL. It will use your current directory. |
jobid |
The job name show up in your sq NAME column. |
email |
Your email address that farm will email to once the job was done/failed. |
runinfo |
Parameters control the array job partition. c(TRUE, "bigmemh", "1", "2G", "8:00:00") A vector of c(TRUE, "bigmemh", "1"): 1) run or not, 2) -p partition name, 3) –ntasks. |
a shell file.
1 2 3 4 5 6 | cmd <- paste0("snpconvert -a largedata/teo_updated/teo_raw_biallelic.hmp.txt",
" -i largedata/teo_updated/TeoCurated_20160308_AGPv2_flt_maf005m2.txt -s 12",
" -o largedata/teo_updated/teo_raw_biallelic_recoded_20160303_AGPv2.txt")
set_farm_job(slurmsh = "largedata/scripts/run_snpconvert.sh",
shcode = cmd, wd = NULL, jobid = "snpconvert", email=NULL, runinfo=c(TRUE, "bigmemh", "1"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.