-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrundist.sh
executable file
·50 lines (40 loc) · 1.29 KB
/
rundist.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
set -euo pipefail
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
#module load miniconda/4.12.0
module load miniconda/23.5.2
#module load rustybam/0.1.29
snakefile=$DIR/assembly_eval.smk
waitTime=10
retry=1
logDir=log
mkdir -p $logDir
#
# run snakemake
#
snakemake -p \
-s $snakefile \
--drmaa " -P eichlerlab \
-l h_rt={resources.hrs}:00:00 \
-shell y \
-l mfree={resources.mem}G \
-l heavy_io={resources.heavy_io} \
-pe serial {threads} \
-w n \
-V -cwd \
-S /bin/bash" \
--default-resources "heavy_io=0" \
--drmaa-log-dir $logDir \
--latency-wait $waitTime \
--use-singularity \
--singularity-args "--bind /net:/net" \
--restart-times $retry \
--ri \
-kp \
--jobs $@