2020-08-07 05:06:45 -04:00
|
|
|
params {
|
2020-08-07 10:05:25 -04:00
|
|
|
outdir = "output/"
|
|
|
|
publish_dir_mode = "copy"
|
2020-10-15 05:47:15 -04:00
|
|
|
enable_conda = false
|
2021-02-02 19:14:39 -05:00
|
|
|
singularity_pull_docker_container = true
|
2020-08-07 05:06:45 -04:00
|
|
|
}
|
|
|
|
|
2021-02-02 18:32:21 -05:00
|
|
|
if ("$PROFILE" == "singularity") {
|
2021-02-02 12:55:41 -05:00
|
|
|
singularity.enabled = true
|
|
|
|
singularity.autoMounts = true
|
2021-02-02 18:25:58 -05:00
|
|
|
singularity.runOptions = '-B /tmp/'
|
2021-02-02 12:55:41 -05:00
|
|
|
} else if ("$PROFILE" == "conda") {
|
|
|
|
params.enable_conda = true
|
2021-02-02 18:32:21 -05:00
|
|
|
} else {
|
|
|
|
docker.enabled = true
|
|
|
|
docker.runOptions = '-u \$(id -u):\$(id -g)'
|
2020-08-07 05:06:45 -04:00
|
|
|
}
|