-
Notifications
You must be signed in to change notification settings - Fork 19
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
Allow "Source" and "Version" in INFO header #106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super @maehler - sorry this got stuck, we need to discuss the maintenance on this repo. 😊
@@ -56,6 +56,8 @@ def __init__(self): | |||
Number=(?P<number>-?\d+|\.|[AGR]), | |||
Type=(?P<type>Integer|Float|Flag|Character|String), | |||
Description="(?P<desc>[^"]*)" | |||
(?:,Source="(?P<source>[^"]+)")? | |||
(?:,Version="(?P<version>[^"]+)")? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 💯
@@ -12,6 +12,41 @@ def test_parse_info(): | |||
## THEN assert it is added to the parser | |||
assert 'MQ' in head.info_dict | |||
|
|||
def test_parse_info_with_source(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏅
No worries, I honestly had forgotten about this. Great to see that things are moving forward! |
* Allow source and version in INFO header * Bump version --------- Co-authored-by: Daniel Nilsson <[email protected]>
This PR adds | fixes:
The fields "Source" and "Version" are optional in the INFO header lines according to the VCF specification (v4.2 and above), but the validation does not take this into account. This PR allows for these optional fields.
Review:
This version is a: