Commit 1735f4bb authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Change logic i translation() slightly.

parent 0c88d4e3
......@@ -632,20 +632,21 @@ sub translation {
$self->{'transcript_mapper'} = undef;
} elsif ( @_ > 1 && defined( $self->{'translation'} ) ) {
# Removing existing translation
} elsif ( @_ > 1 ) {
if ( defined( $self->{'translation'} ) ) {
# Removing existing translation
$self->{'translation'}->transcript(undef);
delete( $self->{'translation'} );
$self->{'translation'}->transcript(undef);
delete( $self->{'translation'} );
$self->{'cdna_coding_start'} = undef;
$self->{'cdna_coding_end'} = undef;
$self->{'cdna_coding_start'} = undef;
$self->{'cdna_coding_end'} = undef;
$self->{'coding_region_start'} = undef;
$self->{'coding_region_end'} = undef;
$self->{'transcript_mapper'} = undef;
$self->{'coding_region_start'} = undef;
$self->{'coding_region_end'} = undef;
$self->{'transcript_mapper'} = undef;
}
} elsif ( !exists( $self->{'translation'} )
&& defined( $self->adaptor() ) )
{
......
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