-
Notifications
You must be signed in to change notification settings - Fork 1
/
clustersubmit.sh
34 lines (28 loc) · 1.48 KB
/
clustersubmit.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
32
33
34
#!/bin/bash
# The number of CPUs (cores) used by your task.
#SBATCH --cpus-per-task=1
# The amount of RAM used by your task.
#SBATCH --mem=15G
# Set a maximum runtime in hours:minutes:seconds. Not required by esrum
##SBATCH --time=50:00:00:00
#SBATCH --job-name snakemake_workflow
#SBATCH --output=snakemake_output/%x.o
#SBATCH --error=snakemake_output/%x.e
## TOADD
# --keep-going
# REMOVE
# --conda-base-path ~/bxc755/miniconda3 --use-conda
# module load snakemake/7.30.1
# Just added use-conda.. and base path remove if not works and run scapp alone
module load snakemake/7.30.1
snakemake --nolock --use-conda -p --rerun-triggers mtime --snakefile snakefile.py \
--jobs 8 --max-jobs-per-second 5 --max-status-checks-per-second 5 --latency-wait 60 --keep-incomplete \
--rerun-incomplete \
--cluster "sbatch --output=snakemake_output/{rule}.%j.o --error=snakemake_output/{rule}.%j.e --time={resources.walltime} --job-name {rule} --cpus-per-task {threads} --mem {resources.mem_gb}G "
&>snakemake_output/snakemake.oe
# -R align_contigs --rerun-incomplete \
#
# snakemake --nolock -p --rerun-triggers mtime --snakefile snakefile.py --rerun-incomplete \
# --jobs 10 --max-jobs-per-second 5 --max-status-checks-per-second 5 --latency-wait 60 --keep-incomplete \
# --cluster "sbatch --output=snakemake_output/{rule}.%j.o --error=snakemake_output/{rule}.%j.e --time={resources.walltime} --job-name {rule} --cpus-per-task {threads} --mem {resources.mem_gb}G "
# &>snakemake_output/snakemake_vamb.oe