Skip to content

Commit

Permalink
Issue #5, #6: carry over fixes to most recent version of snakemake
Browse files Browse the repository at this point in the history
Also start loading dvctools first, to avoid GCC conflicts caused when it's loaded 2nd.
  • Loading branch information
rusalkaguy committed May 12, 2020
1 parent 20c4983 commit 7ee73ad
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions modulefiles/snakemakeslurm/5.9.1-4
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#%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
#

# make sure to load dvctools first; if loaded second, it loads an older GCC.
module load dvctools
# UAB-HPC old module naming convention
# #module load rc/snakemake/${snakemake-version}
# load Singularity (GCC-based) first - else it will mess up Snakemake's python path
module load Singularity/3.5.2-GCC-5.4.0-2.26
module load Anaconda3/2020.02
module load snakemake/${snakemake-version}-foss-2018b-Python-3.6.6
# 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 7ee73ad

Please sign in to comment.