Skip to content

Commit

Permalink
Merge pull request #557 from broadinstitute/dp-nextclade
Browse files Browse the repository at this point in the history
nextclade updates
  • Loading branch information
dpark01 authored Sep 19, 2024
2 parents 55c81a0 + 0fd6c3b commit d6a1237
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
38 changes: 18 additions & 20 deletions pipes/WDL/tasks/tasks_nextstrain.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ task taxid_to_nextclade_dataset_name {
2697049 : 'sars-cov-2',
641809 : 'flu_h1n1pdm_ha',
335341 : 'flu_h3n2_ha',
119210 : 'flu_h3n2_ha',
518987 : 'flu_vic_ha',
208893 : 'rsv_a',
208895 : 'rsv_b',
11234 : 'nextstrain/measles/N450/WHO-2012',
11053 : 'nextstrain/dengue/all',
11060 : 'nextstrain/dengue/all',
11069 : 'nextstrain/dengue/all',
11070 : 'nextstrain/dengue/all',
10244 : 'MPXV',
619591 : 'hMPXV'
}
Expand Down Expand Up @@ -43,13 +49,11 @@ task nextclade_one_sample {
File genome_fasta
File? root_sequence
File? auspice_reference_tree_json
File? qc_config_json
File? pathogen_json
File? gene_annotations_json
File? pcr_primers_csv
File? virus_properties
String? dataset_name
Int disk_size = 50
String docker = "nextstrain/nextclade:2.14.0"
String docker = "nextstrain/nextclade:3.8.2"
}
String basename = basename(genome_fasta, ".fasta")
command <<<
Expand All @@ -67,21 +71,19 @@ task nextclade_one_sample {
DATASET_ARG="--input-dataset ."
python3<<CODE1
import json, os
with open('tag.json', 'rt') as inf:
with open('pathogen.json', 'rt') as inf:
datasetinfo = json.load(inf)
with open('VERSION', 'wt') as outf:
outf.write(os.environ['NEXTCLADE_VERSION'] + "; name=" + datasetinfo['name'] + "; tag=" + datasetinfo['tag'] + "\n")
outf.write(os.environ['NEXTCLADE_VERSION'] + "; name=" + datasetinfo['attributes']['name'] + "; tag=" + datasetinfo['version']['tag'] + "\n")
CODE1
fi
nextclade run \
$DATASET_ARG \
~{"--input-root-seq " + root_sequence} \
~{"--input-ref " + root_sequence} \
~{"--input-tree " + auspice_reference_tree_json} \
~{"--input-qc-config " + qc_config_json} \
~{"--input-gene-map " + gene_annotations_json} \
~{"--input-pcr-primers " + pcr_primers_csv} \
~{"--input-virus-properties " + virus_properties} \
~{"--input-annotation " + gene_annotations_json} \
~{"--input-pathogen-json " + pathogen_json} \
--output-all=. \
--output-basename "~{basename}" \
--output-json "~{basename}".nextclade.json \
Expand Down Expand Up @@ -136,15 +138,13 @@ task nextclade_many_samples {
Array[File]+ genome_fastas
File? root_sequence
File? auspice_reference_tree_json
File? qc_config_json
File? pathogen_json
File? gene_annotations_json
File? pcr_primers_csv
File? virus_properties
String? dataset_name
String basename
File? genome_ids_setdefault_blank
Int disk_size = 150
String docker = "nextstrain/nextclade:2.14.0"
String docker = "nextstrain/nextclade:3.8.2"
}
command <<<
set -e
Expand All @@ -170,12 +170,10 @@ task nextclade_many_samples {
nextclade run \
$DATASET_ARG \
~{"--input-root-seq " + root_sequence} \
~{"--input-ref " + root_sequence} \
~{"--input-tree " + auspice_reference_tree_json} \
~{"--input-qc-config " + qc_config_json} \
~{"--input-gene-map " + gene_annotations_json} \
~{"--input-pcr-primers " + pcr_primers_csv} \
~{"--input-virus-properties " + virus_properties} \
~{"--input-annotation " + gene_annotations_json} \
~{"--input-pathogen-json " + pathogen_json} \
--output-all=. \
--output-basename "~{basename}" \
--output-json "~{basename}".nextclade.json \
Expand Down
4 changes: 2 additions & 2 deletions pipes/WDL/tasks/tasks_sarscov2.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ task pangolin_one_sample {
Float? max_ambig
String? analysis_mode
Boolean update_dbs_now=false
String docker = "quay.io/staphb/pangolin:4.3.1-pdata-1.23.1"
String docker = "quay.io/staphb/pangolin:4.3.1-pdata-1.29"
}
String basename = basename(genome_fasta, ".fasta")
Int disk_size = 50
Expand Down Expand Up @@ -93,7 +93,7 @@ task pangolin_many_samples {
String? analysis_mode
Boolean update_dbs_now=false
String basename
String docker = "quay.io/staphb/pangolin:4.3.1-pdata-1.23.1"
String docker = "quay.io/staphb/pangolin:4.3.1-pdata-1.29"
}
Int disk_size = 100
command <<<
Expand Down
4 changes: 2 additions & 2 deletions requirements-modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ broadinstitute/beast-beagle-cuda=1.10.5pre
broadinstitute/ncbi-tools=2.10.7.10
nextstrain/base=build-20240318T173028Z
andersenlabapps/ivar=1.3.1
quay.io/staphb/pangolin=4.3.1-pdata-1.23.1
nextstrain/nextclade=2.14.0
quay.io/staphb/pangolin=4.3.1-pdata-1.29
nextstrain/nextclade=3.8.2

0 comments on commit d6a1237

Please sign in to comment.