-
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.
Issue #5: detect when slurm kills jobs because they exceeded resource…
… allocations add --cluster-status $0/slurm-status.py Modified slurm-status.py to use argv[4] instead of argv[1] as they had in https://github.com/Snakemake-Profiles/slurm Add slurm-status.py to the install script, and have snakemakeslurm check for it. Issue a warning if it's missing.
- Loading branch information
1 parent
911fa12
commit 20c4983
Showing
4 changed files
with
66 additions
and
1 deletion.
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
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,43 @@ | ||
#%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." | ||
|
||
# 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} | ||
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 - | ||
# update Anaconda3 to 2020.02 to work with RNA-Seq pipeline | ||
module load Anaconda3/2020.02 | ||
# 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 |
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
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