diff --git a/modules/Bio/EnsEMBL/IdMapping/SyntenyRegion.pm b/modules/Bio/EnsEMBL/IdMapping/SyntenyRegion.pm index b8184cae5d0a89ff2cdabee0137e05ce69193593..e019b4f9e28148f72b4a4503cacafb7d806796e2 100644 --- a/modules/Bio/EnsEMBL/IdMapping/SyntenyRegion.pm +++ b/modules/Bio/EnsEMBL/IdMapping/SyntenyRegion.pm @@ -177,6 +177,7 @@ sub merge { # # extend this SyntenyRegion to span a $factor * $score more area +# sub stretch { my ($self, $factor) = @_; @@ -185,10 +186,12 @@ sub stretch { $self->source_start($self->source_start - $source_adjust); $self->source_end($self->source_end + $source_adjust); - my $target_factor = ($self->target_end - $self->target_start + 1) * + my $target_adjust = ($self->target_end - $self->target_start + 1) * $factor * $self->score; $self->target_start($self->target_start - $target_adjust); $self->target_end($self->target_end + $target_adjust); + + return $self; }