-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add slurm script templates to package
and use them with importlib
- Loading branch information
1 parent
c3324fc
commit edc8735
Showing
8 changed files
with
134 additions
and
9 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
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,14 @@ | ||
#!/usr/bin/env bash | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --mem=1g | ||
#SBATCH --time=1-00:00:00 | ||
#SBATCH --parsable | ||
#SBATCH -J "{PIPELINE}" | ||
#SBATCH --mail-type=BEGIN,END,FAIL | ||
#SBATCH --output "log/slurm_%j.log" | ||
#SBATCH --output "log/slurm_%j.log" | ||
|
||
module load ccbrpipeliner nextflow | ||
NXF_SINGULARITY_CACHEDIR=/data/CCBR_Pipeliner/SIFS | ||
|
||
{RUN_COMMAND} |
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,15 @@ | ||
#!/usr/bin/env bash | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --mem=1g | ||
#SBATCH --time=1-00:00:00 | ||
#SBATCH --parsable | ||
#SBATCH -J "{PIPELINE}" | ||
#SBATCH --mail-type=BEGIN,END,FAIL | ||
#SBATCH --output "log/slurm_%j.log" | ||
#SBATCH --output "log/slurm_%j.log" | ||
|
||
module load nextflow | ||
NXF_SINGULARITY_CACHEDIR=/mnt/projects/CCBR-Pipelines/SIFs | ||
# TODO add shared tools to the path | ||
|
||
{RUN_COMMAND} |
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,13 @@ | ||
#!/usr/bin/env bash | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --mem=1g | ||
#SBATCH --time=1-00:00:00 | ||
#SBATCH --parsable | ||
#SBATCH -J "{PIPELINE}" | ||
#SBATCH --mail-type=BEGIN,END,FAIL | ||
#SBATCH --output "log/slurm_%j.log" | ||
#SBATCH --output "log/slurm_%j.log" | ||
|
||
module load ccbrpipeliner snakemake/7 singularity | ||
|
||
{RUN_COMMAND} |
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,14 @@ | ||
#!/usr/bin/env bash | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --mem=1g | ||
#SBATCH --time=1-00:00:00 | ||
#SBATCH --parsable | ||
#SBATCH -J "{PIPELINE}" | ||
#SBATCH --mail-type=BEGIN,END,FAIL | ||
#SBATCH --output "log/slurm_%j.log" | ||
#SBATCH --output "log/slurm_%j.log" | ||
|
||
module load ccbrpipeliner snakemake/7 singularity | ||
# TODO add shared Tools to the path | ||
|
||
{RUN_COMMAND} |
Empty file.
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,11 @@ | ||
from ccbr_tools.pkg_util import read_template | ||
|
||
|
||
def test_read_template(): | ||
template_str = read_template("slurm_nxf_biowulf.sh") | ||
assert all( | ||
[ | ||
template_str.startswith("#!/usr/bin/env bash"), | ||
template_str.endswith("{RUN_COMMAND}"), | ||
] | ||
) |