params { outdir = "output/" publish_dir_mode = "copy" enable_conda = false singularity_pull_docker_container = false } if ("$PROFILE" == "singularity") { singularity.enabled = true singularity.autoMounts = true singularity.runOptions = '-B /tmp/' } else if ("$PROFILE" == "conda") { params.enable_conda = true } else { docker.enabled = true docker.runOptions = '-u \$(id -u):\$(id -g)' }