Support disabling the --clock-filter-iqd parameter for augur refine#884
Merged
huddlej merged 2 commits intonextstrain:masterfrom Mar 22, 2022
Merged
Conversation
Contributor
huddlej
approved these changes
Mar 22, 2022
Contributor
huddlej
left a comment
There was a problem hiding this comment.
Thank you for putting this together, @jgadling, and I'm sorry for the late review!
The Snakemake implementation looks like exactly what we need to toggle the clock filter and @danrlu's screenshots confirm that this works as expected. Thank you also for updating the default value in the docs!
I was originally concerned about using 0 to disable the clock filter instead of a YAML value like null that indicates the lack of a value, but it turns out that augur refine internally treats the clock filter IQD value as false-y when it is 0 and skips the filter, so this implementation would work the same with an augur refine command on the terminal as in the workflow.
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
Support disabling the
--clock-filter-iqdparameter foraugur refine. Since--clock-filter-iqd 0doesn't make sense, we can assume that setting the value to 0 (or even false) should disable it.Related issue(s)
Fixes #852
Related to #
Testing
For a very simple test config:
Release checklist
If this pull request introduces backward incompatible changes, complete the following steps for a new release of the workflow:
docs/src/reference/change_log.mdin this pull request to document these changes and the new version number.If this pull request introduces new features, complete the following steps:
docs/src/reference/change_log.mdin this pull request to document these changes by the date they were added.