SACGF / variantgrid

VariantGrid public repo
Other
23 stars 2 forks source link

VEP VCF metadata version check #413

Closed davmlaw closed 3 years ago

davmlaw commented 3 years ago

When importing a VEP annotation VCF, we should read the file's meta data and verify that the VEP version is as we expect (or die loudly)

davmlaw commented 3 years ago

Not user testable - needs access to backend system, and caused by deployment error.

Tested w/unit test annotation.tests.test_annotation_vcf.TestAnnotationVCF.test_version_mismatch

Edited VCF by hand, modified then re-imported annotation run:

VEPVersionMismatchError(msg) annotation.vep_annotation.VEPVersionMismatchError: Annotation/VCF out of sync! Version 'v11. (18 June 2020) VEP: 100/RefSeq/GRCh38' and VCF '/home/dlawrence/localwork/variantgrid/data/annotation_dump/dump_1273.vep_annotated_GRCh38.vcf.gz' differ, KEY: 'vep' annotation: '100', vcf: '101'