Skip to content
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

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

maehler
Copy link
Contributor

@maehler maehler commented Jun 2, 2022

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:

  • Code approved by
  • Tests executed by
  • "Merge and deploy" approved by

This version is a:

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

Copy link
Collaborator

@dnil dnil left a 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>[^"]+)")?
Copy link
Collaborator

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():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏅

@dnil dnil merged commit fca33bd into Clinical-Genomics:master Oct 24, 2024
2 checks passed
@maehler
Copy link
Contributor Author

maehler commented Oct 24, 2024

Super @maehler - sorry this got stuck, we need to discuss the maintenance on this repo. 😊

No worries, I honestly had forgotten about this. Great to see that things are moving forward!

dnil added a commit that referenced this pull request Oct 24, 2024
* Allow source and version in INFO header

* Bump version

---------

Co-authored-by: Daniel Nilsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants