Skip to content

Support nextstrain run (with augur subsample)#105

Closed
victorlin wants to merge 1 commit intomainfrom
victorlin/nextstrain-run-with-augur-subsample
Closed

Support nextstrain run (with augur subsample)#105
victorlin wants to merge 1 commit intomainfrom
victorlin/nextstrain-run-with-augur-subsample

Conversation

@victorlin
Copy link
Copy Markdown
Member

@victorlin victorlin commented Sep 18, 2025

Description of proposed changes

The nextstrain run command allows users to run the workflows in this repository without cloning or forking it.

Related issue(s)

Based on similar work in other repos (zika, mumps) with some new ideas.

See #106 for a version of this PR without using augur subsample.

Checklist

@victorlin victorlin self-assigned this Sep 18, 2025
@victorlin victorlin force-pushed the victorlin/nextstrain-run-with-augur-subsample branch from ad08def to 397db1d Compare September 18, 2025 23:48
@victorlin victorlin force-pushed the victorlin/nextstrain-run-with-augur-subsample branch from 93c9459 to e717ecc Compare September 22, 2025 18:42
Base automatically changed from victorlin/use-augur-subsample to main September 22, 2025 21:44
@victorlin victorlin force-pushed the victorlin/nextstrain-run-with-augur-subsample branch from e717ecc to 30d58cf Compare September 23, 2025 16:32
@victorlin victorlin changed the base branch from main to victorlin/shared-vendored September 23, 2025 16:33
@victorlin victorlin force-pushed the victorlin/shared-vendored branch from 9fefd9d to e24c6f4 Compare September 23, 2025 19:00
Base automatically changed from victorlin/shared-vendored to main September 23, 2025 19:00
Update all workflows to support nextstrain run. Instead of applying
resolve_config_path() in individual rules, resolve them all at once at
the start of the workflow. This is the only way I can think of to have
nextstrain run compatibility with augur subsample. It also has a nice
side effect of consolidating code changes to a single function instead
of all rules that take file paths from config.

🚧: update the Nextclade workflow?

Testing commands:

    mkdir -p ~/.nextstrain/pathogens/wnv
    ln -sv ~/repos/nextstrain/wnv ~/.nextstrain/pathogens/wnv/local=NRXWGYLM
    nextstrain run wnv@local phylogenetic ./tmp

References:
- nextstrain/mumps@6343dd8...0866a88
- nextstrain/zika@5041a36...e4f084d
@victorlin victorlin force-pushed the victorlin/nextstrain-run-with-augur-subsample branch from 30d58cf to c9b8390 Compare September 23, 2025 19:03
Comment thread phylogenetic/rules/config.smk
@victorlin
Copy link
Copy Markdown
Member Author

nextstrain/measles#74 has an updated version of the filepath resolving function (resolve_config_paths()resolve_filepaths()) but I'll wait for nextstrain/measles#75 and maybe nextstrain/measles#76 to get sorted out before updating this PR.

@victorlin
Copy link
Copy Markdown
Member Author

Supporting nextstrain run will be much easier after #116 and nextstrain/shared#68. I'll close this PR and open a new one after those are merged.

@victorlin victorlin closed this Jan 30, 2026
@victorlin victorlin deleted the victorlin/nextstrain-run-with-augur-subsample branch January 30, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants