-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[augur ancestral] arg parsing improvements #1344
Merged
Merged
Conversation
This file contains 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
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1344 +/- ##
==========================================
+ Coverage 65.80% 65.94% +0.14%
==========================================
Files 68 68
Lines 7153 7156 +3
Branches 1756 1758 +2
==========================================
+ Hits 4707 4719 +12
+ Misses 2182 2173 -9
Partials 264 264 ☔ View full report in Codecov by Sentry. |
jameshadfield
force-pushed
the
james/ancestral-arg-improvements
branch
2 times, most recently
from
December 4, 2023 21:00
9566edd
to
a529731
Compare
victorlin
requested changes
Dec 6, 2023
Check that provided arguments are compatible. Where possible we use argparse built-ins, but they don't cover everything we want to check. This checking isn't intended to replace conditional checks in the code which check for arg existence (as demonstrated by the additional conditional added here), however by checking for invalid combinations up-front we can exit quickly.
This is consistent with augur's general behaviour of "request a file for it to be produced". Moreover, the previous code would ~always result in the VCF input file being overwritten. This is potentially a backwards compatible change. The number of users expected to be affected is minimal (perhaps zero). Closes #1343.
This is the preferred method rather than printing to STDERR and exiting
For VCF alignments, `--vcf-reference` becomes the 'ref' variable and for FASTA alignments, `--root-sequence` becomes the 'ref' variable. If both was provided then (previously) one was silently ignored, but they are now mutually exclusive. The argument help messages are also improved.
jameshadfield
force-pushed
the
james/ancestral-arg-improvements
branch
from
December 7, 2023 00:24
a529731
to
5b0545f
Compare
victorlin
approved these changes
Dec 7, 2023
2 tasks
jameshadfield
added a commit
that referenced
this pull request
Dec 11, 2023
The move to "Creating files in the initial working directory" is motivated by <#1344 (comment)> and <#1176>. Additionally, I remove the pushd commands which were confusing (there were multiple!) and use variables to refer to common directories to improve readability.
2 tasks
jameshadfield
added a commit
that referenced
this pull request
Dec 19, 2023
The move to "Creating files in the initial working directory" is motivated by <#1344 (comment)> and <#1176>. Additionally, I remove the pushd commands which were confusing (there were multiple!) and use variables to refer to common directories to improve readability.
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.
ThreeFour small commits - see messages in each for details.This PR is potentially a backwards incompatible change, and the changelog has been updated accordingly.
Closes #1343