Skip to content

Commit

Permalink
Merge branch 'postreleasefix/92' into release/92
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Gil committed Mar 29, 2018
2 parents 23a5b4c + 2441aa6 commit 85ae43b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ sub annotate_InputBuffer {
foreach my $chr(keys %by_chr) {
foreach my $vf(@{$by_chr{$chr}}) {
my ($vf_start, $vf_end) = ($vf->{start}, $vf->{end});
$parser->seek($self->get_source_chr_name($chr), $vf_start - 1, $vf_end + 1);
$parser->next();
if ($parser->seek($self->get_source_chr_name($chr), $vf_start - 1, $vf_end + 1)) {
$parser->next();
}

while($parser->{record} && $parser->get_start <= $vf_end + 1) {
$self->annotate_VariationFeature($vf);
Expand Down Expand Up @@ -416,4 +417,4 @@ sub _record_overlaps_VF {
}
}

1;
1;

0 comments on commit 85ae43b

Please sign in to comment.