enqueue_pipeline.sh 743 Bytes
Newer Older
Chris Jewell's avatar
Chris Jewell committed
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
#!/bin/bash

# Enqueues COVID-19 pipelines

CASES_FILE="data/Anonymised Combined Line List 20201002.csv"
DATE_LOW="2020-07-19"
DATE_HIGH="2020-09-28"

TEMPLATE_CONFIG=template_config.yaml



# Job submisison
switch-gpu

for PILLAR in both 1
do
    for CASE_DATE_TYPE in specimen report
    do	
	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