Skip to content

Updates parseSample to permit truncated sample values, containing#17

Open
carbocation wants to merge 1 commit into
brentp:masterfrom
carbocation:feature/permit-shorter-sample-filters
Open

Updates parseSample to permit truncated sample values, containing#17
carbocation wants to merge 1 commit into
brentp:masterfrom
carbocation:feature/permit-shorter-sample-filters

Conversation

@carbocation
Copy link
Copy Markdown

Updates parseSample to permit truncated sample values, containing fewer entries than the FORMAT fields. This is permitted by the VCF 4.2 spec. It is present "in the wild" in VCFs that were produced by GATK from gVCFs. Specifically, this fixes #16

fewer entries than the FORMAT fields. This is permitted by the
VCF 4.2 spec. It is present "in the wild" in VCFs that were
produced by GATK from gVCFs.
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 66.968% when pulling d5dc8a6 on carbocation:feature/permit-shorter-sample-filters into 654ed2e on brentp:master.

Copy link
Copy Markdown
Owner

@brentp brentp left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Can you add a test-case (and possibly a test-vcf?)

@carbocation
Copy link
Copy Markdown
Author

The demo VCF given at internationalgenome.org actually has an example of this (where a haplotype quality flag ["HQ"] is only given for phased calls, and one of the calls is not phased). Adding this as a note-to-self since I still haven't put together a test, initially due to lack of public example VCF. This solves that; now I just need to assemble it.

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.

vcfgo stricter than VCF spec in terms of sample filters

3 participants