Conversation
The code is already used in WNV¹ and measles². I placed the function at the very bottom because it should be the final configuration-related function to be used by any workflow, at least among functions run at Snakemake startup time. Docstring/README updated to reflect the new scope of config.smk. ¹ https://github.com/nextstrain/WNV/blob/b143897367fcf0f9ddb4151b891a7da192c124eb/phylogenetic/rules/config.smk#L62-L67 ² https://github.com/nextstrain/measles/blob/1a10742c5c04932f87e16e5c83e1e8ca840716cd/phylogenetic/rules/config.smk#L99-L104
This is not necessary since the variable is not assigned a new value within the function, but the same could be said for 'workflow' in resolve_config_path(). Adding for consistency.
This code is already used in measles¹ and is expected to be used by other repos. I placed the functions above resolve_config_path() because, while resolve_config_path() is used directly in Snakemake code, eventually it may be replaced by calls to resolve_filepaths() which uses it as a helper function. ¹ https://github.com/nextstrain/measles/blob/db993ffa3a0ab80bd46d68f5e30ee47023525bb8/phylogenetic/rules/config.smk#L29-L94
This was referenced Sep 30, 2025
joverlee521
approved these changes
Oct 1, 2025
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.
Description of proposed changes
Adds config-related functions that are planned for reuse across across pathogen repos.
Related issue(s)
write_config()is for nextstrain/pathogen-repo-guide#18resolve_filepaths()is for nextstrain/public#23Checklist
If adding a script, add an entry for it in the README.