Skip to content

Commit 68e84e3

Browse files
authored
Merge pull request #392 from broadinstitute/pangolin
add update_dbs_now option to pangolin tasks
2 parents 1a48702 + f89dc7a commit 68e84e3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pipes/WDL/tasks/tasks_sarscov2.wdl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ task pangolin_one_sample {
99
Int? min_length
1010
Float? max_ambig
1111
Boolean inference_usher=true
12+
Boolean update_dbs_now=false
1213
String docker = "quay.io/staphb/pangolin:3.1.16-pangolearn-2021-11-09"
1314
}
1415
String basename = basename(genome_fasta, ".fasta")
1516
command <<<
17+
set -ex
18+
19+
if [ -n "~{true='UPDATE' false='' update_dbs_now}" ]; then
20+
pangolin --update
21+
fi
1622
date | tee DATE
1723
conda list -n pangolin | grep "usher" | awk -F ' +' '{print$1, $2}' | tee VERSION_PANGO_USHER
18-
set -ex
1924
pangolin -v | tee VERSION_PANGOLIN
2025
pangolin -pv | tee VERSION_PANGOLEARN
2126
pangolin --all-versions | tr '\n' ';' | cut -f -5 -d ';' | tee VERSION_PANGOLIN_ALL
@@ -81,13 +86,18 @@ task pangolin_many_samples {
8186
Int? min_length
8287
Float? max_ambig
8388
Boolean inference_usher=true
89+
Boolean update_dbs_now=false
8490
String basename
8591
String docker = "quay.io/staphb/pangolin:3.1.16-pangolearn-2021-11-09"
8692
}
8793
command <<<
94+
set -ex
95+
96+
if [ -n "~{true='UPDATE' false='' update_dbs_now}" ]; then
97+
pangolin --update
98+
fi
8899
date | tee DATE
89100
conda list -n pangolin | grep "usher" | awk -F ' +' '{print$1, $2}' | tee VERSION_PANGO_USHER
90-
set -ex
91101
pangolin -v | tee VERSION_PANGOLIN
92102
pangolin -pv | tee VERSION_PANGOLEARN
93103
pangolin --all-versions | tr '\n' ';' | cut -f -5 -d ';' | tee VERSION_PANGOLIN_ALL

0 commit comments

Comments
 (0)