-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
20c4983
commit 7ee73ad
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |