From d9f5c07f22f8ec2cb9209db39f629757b97af1b7 Mon Sep 17 00:00:00 2001 From: William McLaren Date: Tue, 22 Aug 2017 12:56:07 +0100 Subject: [PATCH] fix for old fasta method delegation --- modules/Bio/EnsEMBL/Variation/Utils/FastaSequence.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Variation/Utils/FastaSequence.pm b/modules/Bio/EnsEMBL/Variation/Utils/FastaSequence.pm index 5b31a378e0..8f5be6f1f8 100644 --- a/modules/Bio/EnsEMBL/Variation/Utils/FastaSequence.pm +++ b/modules/Bio/EnsEMBL/Variation/Utils/FastaSequence.pm @@ -395,7 +395,7 @@ sub _new_slice_seq { if(!($fa_length && $fa_length > 0) && $self->can('_fasta_old_db_seq')) { print STDERR "USING DATABASE\n" if $DEBUG; return - defined($start) || defined($end) || defined($strand) ? + scalar(@_) > 1 ? $self->_fasta_old_db_subseq($start, $end, $strand) : $self->_fasta_old_db_seq(); }