Skip to content

Commit

Permalink
fix: enable staged input files for phylogenetic github action
Browse files Browse the repository at this point in the history
  • Loading branch information
j23414 committed May 19, 2024
1 parent 7fa4e2a commit 0b02617
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions phylogenetic/config/config_dengue.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Sequences must be FASTA and metadata must be TSV
# Both files must be zstd compressed
# Both files must have a {serotype} expandable field to be replaced by all, denv1-denv4
sequences_url: "https://data.nextstrain.org/files/workflows/dengue/sequences_{serotype}.fasta.zst"
metadata_url: "https://data.nextstrain.org/files/workflows/dengue/metadata_{serotype}.tsv.zst"

strain_id_field: "genbank_accession"
display_strain_field: "strain"

Expand Down
4 changes: 2 additions & 2 deletions phylogenetic/rules/prepare_sequences.smk
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ rule download:
metadata = "data/metadata_{serotype}.tsv.zst"

params:
sequences_url = "https://data.nextstrain.org/files/workflows/dengue/sequences_{serotype}.fasta.zst",
metadata_url = "https://data.nextstrain.org/files/workflows/dengue/metadata_{serotype}.tsv.zst"
sequences_url = config["sequences_url"],
metadata_url = config["metadata_url"],
shell:
"""
curl -fsSL --compressed {params.sequences_url:q} --output {output.sequences}
Expand Down

0 comments on commit 0b02617

Please sign in to comment.