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