Commit 6745900a authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

BUGFIX: In transform(): $self->project() returns a listref.

parent 54fb4327
......@@ -1855,12 +1855,14 @@ sub transform {
return $self->transfer($new_ex->slice);
}
my $new_transcript = $self->SUPER::transform( @_ );
if( ! defined $new_transcript ) {
my @segments = $self->project( @_ );
my $new_transcript = $self->SUPER::transform(@_);
if ( !defined($new_transcript) ) {
my @segments = @{ $self->project(@_) };
# if it projects, maybe the exons transform well?
# lazy load them here
return undef if( ! @segments );
if ( !@segments ) {
return undef;
}
$self->get_all_Exons();
}
......
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