-
Notifications
You must be signed in to change notification settings - Fork 2
/
qsub-submit.sh
32 lines (26 loc) · 875 Bytes
/
qsub-submit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
#$ -S /bin/bash
#$ -q bioinfo.q
#$ -V
#$ -cwd
#$ -N submit-jobs
#$ -pe shared 1
set -e
# Activate the main conda environment
source activate qiime2-2020.6
# Generate the rule graph on the commadline
# Rule graph
# snakemake -s Snakefile --rulegraph | dot -Tpng > rulegraph.png
# Directed Acyclic Graph (DAG)
# snakemake -s Snakefile --dag | dot -Tpng > dag.png
# Run snmakemake on the cluster
# --jobs 100 # submit a maximum 100 jobs
# --latency-wait 60 # wait for 60 seconds before declaring that a job has failed
snakemake \
--keep-going \
--restart-times 3 \
--rerun-incomplete \
--cluster-config config/config.yaml \
--cluster 'qsub -q bioinfo.q -S /bin/bash -cwd -V -N {rule}.{wildcards} -e logs/{rule}/{rule}.{wildcards}.e -o logs/{rule}/{rule}.{wildcards}.o -pe shared {threads}' \
--jobs 10 \
--latency-wait 60