Skip to content

Commit 6d25a00

Browse files
committed
Add nextstrain run support
Keeping the original behavior where the input files are hard-coded in the workflow and cannot be modified via config parameters.
1 parent 1c7f593 commit 6d25a00

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

Snakefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ rule all:
22
input:
33
auspice_json = "auspice/zika.json",
44

5-
input_fasta = "data/sequences.fasta",
6-
input_metadata = "data/metadata.tsv",
7-
dropped_strains = "config/dropped_strains.txt",
8-
reference = "config/zika_outgroup.gb",
9-
colors = "config/colors.tsv",
10-
lat_longs = "config/lat_longs.tsv",
11-
auspice_config = "config/auspice_config.json"
5+
input_fasta = f"{workflow.basedir}/data/sequences.fasta"
6+
input_metadata = f"{workflow.basedir}/data/metadata.tsv"
7+
dropped_strains = f"{workflow.basedir}/config/dropped_strains.txt"
8+
reference = f"{workflow.basedir}/config/zika_outgroup.gb"
9+
colors = f"{workflow.basedir}/config/colors.tsv"
10+
lat_longs = f"{workflow.basedir}/config/lat_longs.tsv"
11+
auspice_config = f"{workflow.basedir}/config/auspice_config.json"
1212

1313
rule index_sequences:
1414
message:

nextstrain-pathogen.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file's *existence* marks the top level of a Nextstrain pathogen repo,
2+
# which allows `nextstrain build` to be run from any subdirectory of the repo
3+
# regardless of runtime. For more details, see
4+
# <https://github.com/nextstrain/cli/releases/tag/8.2.0>.
5+
#
6+
# This file's *contents* is the "registration metadata" for the pathogen repo,
7+
# used by `nextstrain setup` and `nextstrain run`.
8+
---
9+
compatibility:
10+
nextstrain run: true

0 commit comments

Comments
 (0)