From ee34ddf3391283e7b7fb96d7df7b3c55b7754605 Mon Sep 17 00:00:00 2001
From: Arne Stabenau <stabenau@sanger.ac.uk>
Date: Wed, 8 Dec 2004 10:32:39 +0000
Subject: [PATCH] removed double coord recaculation on Transcript add

---
 modules/Bio/EnsEMBL/Gene.pm | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/modules/Bio/EnsEMBL/Gene.pm b/modules/Bio/EnsEMBL/Gene.pm
index 605b30e018..58a06b84f4 100755
--- a/modules/Bio/EnsEMBL/Gene.pm
+++ b/modules/Bio/EnsEMBL/Gene.pm
@@ -376,26 +376,9 @@ sub add_Transcript {
        throw("$trans is not a Bio::EnsEMBL::Transcript!");
    }
 
-   if( defined $self->{'start'} ) {
-     if( $self->{'start'} > $trans->start() ) {
-       $self->start( $trans->start() );
-     }
-   } else {
-     $self->start( $trans->start() );
-   }
-
-   if( defined $self->{'end'} ) {
-     if( $self->{'end'} < $trans->end() ) {
-       $self->end( $trans->end() );
-     }
-   } else {
-     $self->end( $trans->end() );
-   }
-
-   $self->{strand} = $trans->strand();;
-
    $self->{'_transcript_array'} ||= [];
    push(@{$self->{'_transcript_array'}},$trans);
+
    $self->recalculate_coordinates();
 }
 
-- 
GitLab