Skip to content

Commit

Permalink
Update Singularity version to Singularity/3.5.2-GCC-5.4.0-2.26, as pr…
Browse files Browse the repository at this point in the history
…evious (Singularity/2.6.1-GCC-5.4.0-2.26) was erroring out on ```singularity: "docker://ewels/multiqc:dev"```

Also improved syntax message in ./install.sh
  • Loading branch information
rusalkaguy committed Mar 18, 2020
1 parent 3252f90 commit 8ebbe1d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ fi

if [ "$1" == "" ]; then
echo "SYNTAX: $0 target_dir"
echo ""
echo "example:"
latestver=$(cd modulefiles/snakemakeslurm/; ls -1 | tail -1)
echo "mkdir ../snakemakeslurm-${latestver}"
echo "$0 ../snakemakeslurm-${latestver}"
exit 1
fi

Expand Down
41 changes: 41 additions & 0 deletions modulefiles/snakemakeslurm/5.9.1-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#%Module1.0#####################################################################
##
## snakemakeslurm
##
## https://github.com/rusalkaguy/snakemake-slurm-module
##
################################################################################
set components [ file split [ module-info name ] ]
set prog [ lindex $components 0 ]
set snakemake-version [ lindex [ split [ lindex $components 1 ] - ] 0 ]
set script_version [ lindex [ split [ lindex $components 1 ] - ] 1 ]
set version ${snakemake-version}-${script_version}
set modroot /share/apps/ngs-ccts/${prog}/${prog}-${version}
set url https://github.com/rusalkaguy/snakemake-slurm-module

proc ModulesHelp { } {
global version modroot
puts stderr "\tsnakemakeslurm - have snakemake submit jobs via slurm to cheaha"
puts stderr "\n\tComponents $components\n"
puts stderr "\n\tVersion $version\n"
puts stderr "\n\tmodroot $modroot\n"
}
module-whatis "Loads snakemakeslurm environment with Anaconda and Singularity support."

# load required modules
# UAB-HPC old module naming convention
# #module load rc/snakemake/${snakemake-version}
module load snakemake/${snakemake-version}-foss-2018b-Python-3.6.6
# snakemake 4.8.0 doesn't work with Anaconda3/5.3.0
# snakemake 5.2.4 DOES work with Anaconda3/5.3.1 -
module load Anaconda3/5.3.1
module load Singularity/3.5.2-GCC-5.4.0-2.26
# only one version at a time
#conflict multiqc

#
#
# Make the directories available
prepend-path PATH $modroot/
#prepend-path MANPATH $modroot/share/man
#prepend-path PYTHONPATH odroot/lib/python2.7/site-packages

0 comments on commit 8ebbe1d

Please sign in to comment.