From 5f58de4fc95238c7b0486f66f1fb6b021e08c0f3 Mon Sep 17 00:00:00 2001 From: Dinindu Senanayake Date: Mon, 14 Oct 2024 20:06:35 +1300 Subject: [PATCH] add a module load directive based on the hostname --- setup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.sh b/setup.sh index 865f092..9adb71f 100755 --- a/setup.sh +++ b/setup.sh @@ -58,6 +58,15 @@ echo -e "${GREEN}${BOLD}Config files generation complete.${NC}" echo "" +#Load modules +echo -e "${YELLOW}Loading required modules and copying nesi Snakemake profile...${NC}" +if [[ $(hostname) == *eri* ]]; then + module purge && module load snakemake/7.32.3-foss-2023a-Python-3.11.6 R/4.4.1-foss-2023a Graphviz/12.1.2 +elif [[ $(hostname) == *mahuika* ]]; then + module purge >/dev/null 2>&1 && module load snakemake/7.32.3-gimkl-2022a-Python-3.11.3 R/4.3.1-gimkl-2022a +fi + + #Copy snakemake profile 08-snakemake/profiles to ~/.config/snakemake mkdir -p ~/.config/snakemake cp -r 08-snakemake/profiles/nesi ~/.config/snakemake/