-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_AOC_HPC.sh
47 lines (37 loc) · 1.16 KB
/
run_AOC_HPC.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
#!/bin/bash
set -euo pipefail
# Downloading hyphy-analyses.
FOLDER="hyphy-analyses"
URL="https://github.com/veg/hyphy-analyses.git"
if [ ! -d "$FOLDER" ] ; then
git clone "$URL" "$FOLDER"
fi
# Set up logs directory
LOGS="logs"
if [ ! -d "$LOGS" ] ; then
mkdir -p $LOGS
fi
printf "# Running AOC Snakemake pipeline \n"
# Initial phase, quality control, alignment, recombination-detection.
# Run Selection Analyses on recombination-free files
snakemake \
-s Snakefile \
--cluster-config cluster.json \
--cluster "qsub -V -l nodes={cluster.nodes}:ppn={cluster.ppn} -q {cluster.name} -l walltime={cluster.walltime} -e logs -o logs" \
--jobs 4 all \
--rerun-incomplete \
--keep-going \
--reason \
--latency-wait 300
# Run Selection Analyses on recombination-free files
snakemake \
-s Snakefile_Recombinants \
--cluster-config cluster.json \
--cluster "qsub -V -l nodes={cluster.nodes}:ppn={cluster.ppn} -q {cluster.name} -l walltime={cluster.walltime} -e logs -o logs" \
--jobs 4 all \
--rerun-incomplete \
--keep-going \
--reason \
--latency-wait 300
exit 0
# End of file