Skip to content

[query] Set QUAL to missing when it's "."#14697

Merged
hail-ci-robot merged 3 commits into
hail-is:mainfrom
chrisvittal:vcf/missing-qual
Sep 20, 2024
Merged

[query] Set QUAL to missing when it's "."#14697
hail-ci-robot merged 3 commits into
hail-is:mainfrom
chrisvittal:vcf/missing-qual

Conversation

@chrisvittal

Copy link
Copy Markdown
Collaborator

When we switched from using htsjdk to do most of our VCF parsing to using our own parser, we kept the behavior of setting missing QUAL to a sentinel value. This isn't necessary (or correct) for hail to do. The type of QUAL is optional float64 and we should preserve the missing value.

Technically speaking this represents a backwards compatibility change. However, I think this is a bug in my attempt in the past to keep bug-for-bug compatibility with htsjdk rather than parsing the value into what people would expect.

When we switched from using htsjdk to do most of our VCF parsing to
using our own parser, we kept the behavior of setting missing QUAL to
a sentinel value. This isn't necessary (or correct) for hail to do. The
type of QUAL is optional float64 and we should preserve the missing
value.

Technically speaking this represents a backwards compatibility change.
However, I think this is a bug in my attempt in the past to keep
bug-for-bug compatibility with htsjdk rather than parsing the value into
what people would expect.

@patrick-schultz patrick-schultz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Clearly the right behavior.

@ehigham ehigham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

clearly.

@hail-ci-robot hail-ci-robot merged commit 13a9aee into hail-is:main Sep 20, 2024
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.

4 participants