Skip to content

Commit

Permalink
Merge pull request #185 from nextstrain/run-nextclade-on-all-genes
Browse files Browse the repository at this point in the history
Run Nextclade on all 8 genes for H1 and H3
  • Loading branch information
huddlej authored Oct 23, 2024
2 parents 37eec83 + 582236f commit c5ae153
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions profiles/nextclade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ s3_dst: "s3://nextstrain-data-private/files/workflows/seasonal-flu"
segments:
- ha
- na
- pb2
- pb1
- pa
- np
- mp
- ns

builds:
h1n1pdm:
Expand All @@ -15,3 +21,6 @@ builds:
lineage: h3n2
vic:
lineage: vic
segments:
- ha
- na
4 changes: 2 additions & 2 deletions profiles/nextclade/run-nextclade.smk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rule upload_all_nextclade_files:
"data/upload/s3/{filetype}_{lineage}_{segment}.done".format(filetype=filetype, lineage=build["lineage"], segment=segment)
for filetype in ("alignment", "nextclade")
for build in config["builds"].values()
for segment in config["segments"]
for segment in build.get("segments", config["segments"])
]

rule get_nextclade_dataset_for_lineage_and_segment:
Expand All @@ -13,7 +13,7 @@ rule get_nextclade_dataset_for_lineage_and_segment:
shell:
"""
nextclade3 dataset get \
-n flu_{wildcards.lineage}_{wildcards.segment} \
-n 'nextstrain/flu/{wildcards.lineage}/{wildcards.segment}' \
--output-dir {output.nextclade_dir}
"""

Expand Down

0 comments on commit c5ae153

Please sign in to comment.