North america build & proximal subsampling example - #124
Merged
Conversation
victorlin
reviewed
Jun 15, 2026
joverlee521
reviewed
Jun 17, 2026
joverlee521
left a comment
Contributor
There was a problem hiding this comment.
Did a first pass, will need to wrap my head around the config changes a little bit more...
jameshadfield
force-pushed
the
proximal-subsampling
branch
2 times, most recently
from
June 19, 2026 00:09
b1e8944 to
b9aa577
Compare
victorlin
reviewed
Jun 24, 2026
victorlin
reviewed
Jun 29, 2026
victorlin
reviewed
Jun 29, 2026
victorlin
reviewed
Jun 29, 2026
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 6, 2026 18:31
5e361c8 to
c8eacb4
Compare
6 tasks
joverlee521
approved these changes
Jul 10, 2026
joverlee521
left a comment
Contributor
There was a problem hiding this comment.
Workflow changes look reasonable to me, left a non-blocking comment on potential direction for custom analyses set up.
joverlee521
reviewed
Jul 10, 2026
joverlee521
reviewed
Jul 10, 2026
joverlee521
reviewed
Jul 14, 2026
jameshadfield
commented
Jul 20, 2026
jameshadfield
left a comment
Member
Author
There was a problem hiding this comment.
Thanks for taking over here @victorlin - it's looking great. I just updated the outbreak example's README. Apart from a rebase to clean up the commits I think this is good to go.
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 20, 2026 20:24
a5b0d12 to
e4acc59
Compare
We already exported the relevant metadata to show the data use terms in Auspice
Removes the snakemake-hardcoded conditional rule selection and introduces a new wildcard 'gene_or_genome' which operates above (i.e. before) the build wildcard specific rules take over. This will allow more genome-based builds (i.e. a north-america 2025/26 build) which can use the same genome QC & alignment
to be defined in the config.yaml without needing to update a hardcoded list in config.smk Note: The intended error message (removed by this commit) was not working as expected - the helpful text wasn't being printed. I didn't track down why not.
Add some basic error / completeness checking
The parameters for the build were first implemented on branch trvrb/usa-analysis. Note that we don't run this (yet) as part of our automated builds Adding a third build prompted two config structure changes: 1. Supplying the actual command line strings to `augur refine` rather than using conditional helper functions 2. augur traits is now opt-in at the config level rather than hardcoded per-build conditionals in the snakefiles
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 20, 2026 20:35
e4acc59 to
128edc3
Compare
This is to be paired with a blog-post / tutorial This was added as a new target within the canonical workflow, but subsequent commits will change this style as it needs PPX restricted data to be useful. The format of config.export has been updated to allow build-specific options
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 20, 2026 20:36
128edc3 to
95f2c63
Compare
Member
|
Rebased, and in the process dropped 10315c9...bb30612 in favor of nextstrain/shared#78. |
victorlin
force-pushed
the
proximal-subsampling
branch
2 times, most recently
from
July 20, 2026 23:13
87a0191 to
fdb8ef9
Compare
victorlin
reviewed
Jul 21, 2026
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 22, 2026 00:10
a6b4b12 to
25d03d6
Compare
2 tasks
victorlin
reviewed
Jul 23, 2026
Into a separate config so we can (i) keep the canonical config cleaner and (ii) we can keep PPX restricted data -- which is important for this example -- out of the canonical config.
Shorter name for the same idea, already used prior to "changed 'gene' wildcard to 'build'" (46baf70).
It's good practice to set constraints for all wildcards used in the workflow. Move the helper function to config() so it is available early in the workflow, and update it to take just a build name instead of a wildcards variable.
Use slashes to organize builds by values in different parts. This is common practice in multi-build Nextstrain workflows. The implementation is flexible for use in other Nextstrain workflows. 'gene' is parsed out of the build name where needed, instead of maintaining a separate 'build_to_gene' mapping. A new 'build_with_underscores' wildcard and 'copy_export' rule are introduced to handle the name pattern expected for Auspice datasets. Paths for files read and written by the workflow have been updated to use slashes in build names as directories.
The example data isn't enough for the narrow filters used by 'genome/north-america'.
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 23, 2026 19:41
25d03d6 to
1ac7e75
Compare
victorlin
force-pushed
the
proximal-subsampling
branch
from
July 23, 2026 19:48
1ac7e75 to
c6c403c
Compare
2 tasks
joverlee521
added a commit
that referenced
this pull request
Jul 24, 2026
Follow up to <#124 (comment)> In the future, we can consider adding tests for other workflows and move these tests to a generalized reusable workflow in nextstrain/.github.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tasks
Review threads
buildwildcardOriginal description
See commit messages
This generalises the workflow and makes it much easier to add new builds
The config changes are not backwards compatible
I won't merge this until the blog / tutorial / docs have been written, but 👀 would be great!