Commit b07e9eb4 authored by Graham McVicker's avatar Graham McVicker
Browse files

made remap method static

parent 2351bc35
...@@ -503,7 +503,7 @@ sub _slice_fetch { ...@@ -503,7 +503,7 @@ sub _slice_fetch {
# features may still have to have coordinates made relative to slice # features may still have to have coordinates made relative to slice
# start # start
$fs = $self->_remap($fs, $mapper, $slice); $fs = _remap($fs, $mapper, $slice);
push @features, @$fs; push @features, @$fs;
} else { } else {
...@@ -534,7 +534,7 @@ sub _slice_fetch { ...@@ -534,7 +534,7 @@ sub _slice_fetch {
my $fs = $self->generic_fetch($constraint, $mapper, $slice); my $fs = $self->generic_fetch($constraint, $mapper, $slice);
$fs = $self->_remap($fs, $mapper, $slice); $fs = _remap($fs, $mapper, $slice);
push @features, @$fs; push @features, @$fs;
...@@ -550,7 +550,7 @@ sub _slice_fetch { ...@@ -550,7 +550,7 @@ sub _slice_fetch {
"${tab_syn}.seq_region_end >= " . $coords[$i]->start(); "${tab_syn}.seq_region_end >= " . $coords[$i]->start();
my $fs = $self->generic_fetch($constraint,$mapper,$slice); my $fs = $self->generic_fetch($constraint,$mapper,$slice);
$fs = $self->_remap($fs, $mapper, $slice); $fs = _remap($fs, $mapper, $slice);
push @features, @$fs; push @features, @$fs;
} }
...@@ -671,7 +671,7 @@ sub _check_start_end_strand { ...@@ -671,7 +671,7 @@ sub _check_start_end_strand {
# converted and placed on the slice. # converted and placed on the slice.
# #
sub _remap { sub _remap {
my ($self, $features, $mapper, $slice) = @_; my ($features, $mapper, $slice) = @_;
#check if any remapping is actually needed #check if any remapping is actually needed
if(@$features && (!$features->[0]->isa('Bio::EnsEMBL::Feature') || if(@$features && (!$features->[0]->isa('Bio::EnsEMBL::Feature') ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment