enqueue_pipeline.sh 741 Bytes
Newer Older
Chris Jewell's avatar
Chris Jewell committed
1
2
3
4
#!/bin/bash

# Enqueues COVID-19 pipelines

Chris Jewell's avatar
Chris Jewell committed
5
6
7
CASES_FILE="data/Anonymised Combined Line List 20201123.csv"
DATE_LOW="2020-08-28"
DATE_HIGH="2020-11-20"
Chris Jewell's avatar
Chris Jewell committed
8
9
10
11
12
13
14

TEMPLATE_CONFIG=template_config.yaml


# Job submisison
switch-gpu

Chris Jewell's avatar
Chris Jewell committed
15
for PILLAR in both 1
Chris Jewell's avatar
Chris Jewell committed
16
17
do
    for CASE_DATE_TYPE in specimen report
Chris Jewell's avatar
Chris Jewell committed
18
    do
Chris Jewell's avatar
Chris Jewell committed
19
20
21
22
23
24
25
26
27
28
29
30
	RESULTS_DIR=$global_scratch/covid19/${DATE_HIGH}_${PILLAR}_${CASE_DATE_TYPE}
	JOB_NAME="covid_${DATE_HIGH}_${PILLAR}_${CASE_DATE_TYPE}"	
	qsub -N $JOB_NAME covid_pipeline.sge \
	     --reported-cases "$CASES_FILE" \
	     --case-date-type $CASE_DATE_TYPE \
	     --pillar $PILLAR \
	     --inference-period $DATE_LOW $DATE_HIGH \
	     --results-dir "$RESULTS_DIR" \
	     --output "$RESULTS_DIR/config.yaml" \
	     $TEMPLATE_CONFIG
    done
done