Skip to content

Commit

Permalink
fix for VFs that dont have a proper slice from pileup input
Browse files Browse the repository at this point in the history
  • Loading branch information
William McLaren committed Dec 16, 2014
1 parent 1b2af67 commit 8531c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/Variation/Utils/VEP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ sub convert_to_vcf {
# default to N in case we can't get it
my $prev_base = 'N';

if(defined($vf->slice)) {
if(defined($vf->slice) && UNIVERSAL::isa($vf->slice,'can')) {
my $slice = $vf->slice->sub_Slice($vf->start - 1, $vf->start - 1);
$prev_base = $slice->seq if defined($slice);
}
Expand Down

0 comments on commit 8531c21

Please sign in to comment.