Skip to content

Commit

Permalink
Use Slurm Workload Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomson committed Oct 24, 2022
1 parent 8c9a529 commit 4577cd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The snakemake workflow will fail upon error. Once an issue is resolved, it can b
- Snakemake
- shiver 1.5.8 (and associated prerequisites) *

The pipeline has been tested on a Linux environment using an SGE cluster.
The pipeline has been tested on a Linux environment using a Slurm Workload Manager.

The project relies on a Kraken 2 database, which is not yet part of this repo so this solution is not currently (standalone) portable.

Expand Down Expand Up @@ -83,7 +83,7 @@ module load python/2.7.11

1. Execute the Snakemake workflow.

A script has been provided to submit the job to an SGE cluster: `./snakemake/submit.sh`
A script has been provided to submit the job to a Slurm Workload Manager: `./snakemake/submit.sh`

Further information about executing Snakemake can be found in the documentation (https://snakemake.readthedocs.io/en/stable/).

Expand Down
2 changes: 1 addition & 1 deletion snakemake/submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ check_file_exists() {

run() {
"$(which snakemake)" \
--cluster "$(which qsub) -cwd -P {params.project} -q {params.queues} -pe shmem {params.cores} -o /dev/null -j y -v PATH={params.conda_bin}:$PATH -S /bin/bash" \
--cluster "$(which sbatch) -A {params.project} -p {params.queues} --cpus-per-task={params.cores} -o /dev/null" \
--jobs 50 \
--jn "{rulename}_${PLATE_ID}.{jobid}.sh" \
--use-conda \
Expand Down

0 comments on commit 4577cd2

Please sign in to comment.