phylogenetic: Use augur subsample #334
Draft
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
The augur subsample command is built to replace the pattern of multiple intermediate augur filter calls with simpler Snakemake rules and configuration.
Note that this is a breaking change and the old configuration will no longer work.
Due to limitations of augur subsample, I had to move the "include" file from the top level of config to under a sample. For configs with multiple samples, I chose the sample somewhat arbitrarily. We could easily update augur subsample to accept the --include CLI option, but I'm not sure it's necessary given this easy workaround.
Related issue(s)
nextstrain/augur#635
Checklist
Tested locally with
snakemake --cores 1 --configfile build-configs/ci/config.yamloutput