diff --git a/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm b/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm index bb5972e12..1c2e061a9 100644 --- a/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm +++ b/modules/Bio/EnsEMBL/VEP/Parser/VCF.pm @@ -459,6 +459,10 @@ sub create_StructuralVariationFeatures { $parser->get_info, $parser->get_IDs, ); + # VEP accepts VCF input with the first 5 fields: fill the remaining mandatory fields to avoid warnings + $record->[5] ||= '.'; + $record->[6] ||= '.'; + $record->[7] ||= '.'; ## get structural variant type from ALT or (deprecated) SVTYPE tag my $alt = join("/", @$alts);