Skip to content

Commit

Permalink
Merge pull request #77 from nesi/dini-dev
Browse files Browse the repository at this point in the history
add a module load directive based on the hostname
  • Loading branch information
DininduSenanayake authored Oct 14, 2024
2 parents e71c113 + 5f58de4 commit 080c946
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 080c946

Please sign in to comment.