[query][rfc-0008] permit more INFO and FORMAT array-fields with missing elements #13465
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.
CHANGELOG: Fixed #13346. Previously, when parsing VCFs, Hail failed on INFO or FORMAT fields with missing elements because the meaning of "." could be ambiguous. Hail now resovles the ambiguity, when possible, using the number of alleles. If the meaning is still ambiguous after considering the number of alleles, Hail uses a new
hl.import_vcf
parameter to resolve the ambiguity. See thehl.import_vcf
docs for details.See hail-is/hail-rfcs#8 for details on the problem and the solution.
I assessed the effect of removing the
array_elements_required=True
fast path by evaluating the following code against this PR's tip commitcd06c248e4
and0.2.120
(f00f916faf
). I ran it three times per commit and report each individual time as well as the average.cd06c248e4
(this PR)f00f916faf
(0.2.120
)This is what I expected. For a VCF with no ambiguity and few instances of ".", we've added a very minor amount of new work.
Note that I had to specifically override the Number setting for certain FORMAT and INFO fields because they were set to
.
in the benchmarked VCF. If this error appears in a 1KG VCF, it must be fairly common.