Skip to content
Snippets Groups Projects
Commit ee34ddf3 authored by Arne Stabenau's avatar Arne Stabenau
Browse files

removed double coord recaculation on Transcript add

parent ea6c2f37
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
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