diff --git a/modules/Bio/EnsEMBL/PredictionTranscript.pm b/modules/Bio/EnsEMBL/PredictionTranscript.pm index 9cc6242d7fb004bec2368a1e83cc1956c0144900..a0a8fd1cb32a8841661ac7caca200fca5f8cf31b 100644 --- a/modules/Bio/EnsEMBL/PredictionTranscript.pm +++ b/modules/Bio/EnsEMBL/PredictionTranscript.pm @@ -231,13 +231,17 @@ sub translation { "translation"); } + my $tmpSeq = new Bio::Seq( -id => "dummy", + -seq => $self->spliced_seq(), + -moltype => "dna" ); + return Bio::EnsEMBL::Translation->new (-ADAPTOR => $pta, -START_EXON => $start_exon, -END_EXON => $end_exon, -SEQ_START => 1, -SEQ_END => $end_exon->length(), - -SEQ => $self->translate()->seq()); + -SEQ => $tmpSeq->translate()->seq()); }