From 84f94d92c4c2d39a7ddf2095cf48dc3c30e4a8dd Mon Sep 17 00:00:00 2001 From: Marc Trunjer Kusk Nielsen Date: Fri, 10 Sep 2021 15:10:19 +0200 Subject: [PATCH] Update computerome.config Added a way to use `--project` to provide project information to the scheduler. Inspired by the uppmax config --- conf/computerome.config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/computerome.config b/conf/computerome.config index c789b48..97ee866 100644 --- a/conf/computerome.config +++ b/conf/computerome.config @@ -3,17 +3,19 @@ params { config_profile_description = 'Computerome 2.0 cluster profile provided by nf-core/configs.' config_profile_contact = 'Marc Trunjer Kusk Nielsen (@marcmtk)' config_profile_url = 'https://www.computerome.dk/' + project = null } singularity { enabled = true autoMounts = true - cacheDir = './scratch' + cacheDir = { "/home/projects/$params.project/scratch" } } process { - beforeScript = 'module load tools singularity/3.8.0' + beforeScript = { "module load tools singularity/3.8.0; export _JAVA_OPTIONS=-Djava.io.tmpdir=/home/projects/$params.project/scratch" } executor = 'pbs' + clusterOptions = { "-A $params.project -W group_list=$params.project" } } params {