From 754cca9fcb40e049670c75caef3357664978dde1 Mon Sep 17 00:00:00 2001 From: Laurent Gil Date: Thu, 27 Sep 2018 09:16:58 +0100 Subject: [PATCH] Fix issue when a custom annotation file doesn't have data on the chromosome of the processed variant --- modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm b/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm index 136c486eb..07c963a81 100644 --- a/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm +++ b/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm @@ -289,7 +289,7 @@ sub annotate_InputBuffer { $parser->next(); } - while($parser->{record} && $parser->get_start <= $vf_end + 1) { + while($parser->{record} && $parser->get_seqname eq $self->get_source_chr_name($chr) && $parser->get_start <= $vf_end + 1) { $self->annotate_VariationFeature($vf); $parser->next(); }