diff --git a/dot_envvar.tmpl b/dot_envvar.tmpl index ecb93c7..40b802b 100644 --- a/dot_envvar.tmpl +++ b/dot_envvar.tmpl @@ -41,9 +41,19 @@ fi # Set the Nextflow enviroment caches export NXF_HOME="$HOME/.nextflow" -export NXF_CONDA_CACHEDIR="$NXF_HOME/conda" -export NXF_SINGULARITY_CACHEDIR="$NXF_HOME/singularity" -export NXF_CHARLIECLOUD_CACHEDIR="$NXF_HOME/charlie" +{{ if (eq .cluster "scinet") }} +NXF_CACHE=/90daydata/shared/$USER/.nextflow +{{ else }} +NXF_CACHE=$NXF_HOME +{{ end }} +export NXF_CONDA_CACHEDIR="$NXF_CACHE/conda" +export NXF_SINGULARITY_CACHEDIR="$NXF_CACHE/singularity" +export NXF_CHARLIECLOUD_CACHEDIR="$NXF_CACHE/charlie" + +{{ if (eq .cluster "scinet") }} +# Set the Singularity image cache +NXF_CACHE=/90daydata/share/$USER/.singularity +{{ end }} # Give Julia full CPU access export JULIA_NUM_THREADS=$(nproc)