Skip to content

[query] Warn in export_vcf if info field names are invalid in VCF v4.3#9766

Merged
danking merged 1 commit into
hail-is:mainfrom
nawatts:export-vcf-invalid-info-fields
Dec 7, 2020
Merged

[query] Warn in export_vcf if info field names are invalid in VCF v4.3#9766
danking merged 1 commit into
hail-is:mainfrom
nawatts:export-vcf-invalid-info-fields

Conversation

@nawatts

@nawatts nawatts commented Dec 1, 2020

Copy link
Copy Markdown
Contributor

gnomAD v3.1 VCFs have many fields containing "-" ("AC-non_neuro-nfe-XX", etc). Someone pointed out that those are invalid in VCF v4.3. Item 8 of section 1.6.1 of the specification says:

INFO keys must match the regular expression ^([A-Za-z ][0-9A-Za-z .]*|1000G)$, please note that “1000G”
is allowed as a special legacy value.

VCFs created by hl.export_vcf are marked as v4.2. However, it may still be useful to warn about these fields as it seems some tools expect the v4.3 pattern (samtools/bcftools#1335).

@nawatts nawatts changed the title Warn in export_vcf if info field names are invalid in VCF v4.3 [query] Warn in export_vcf if info field names are invalid in VCF v4.3 Dec 1, 2020
@danking danking merged commit 9d133c0 into hail-is:main Dec 7, 2020
@nawatts nawatts deleted the export-vcf-invalid-info-fields branch December 7, 2020 16:19
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.

3 participants