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

startphase was ignored

parent 87f5632f
No related branches found
No related tags found
No related merge requests found
......@@ -374,16 +374,23 @@ sub translateable_seq {
my ( $self ) = @_;
my $mrna = "";
my $prev = undef;
my $lastphase = 0;
my $first = 1;
foreach my $exon (@{$self->get_all_translateable_Exons()}) {
my $phase = 0;
if (defined($exon->phase)) {
$phase = $exon->phase;
}
# startpadding is needed if MONKEY_EXONS are on
if( $first && (! defined $ENV{'MONKEY_EXONS'}) ) {
$mrna .= 'N' x $phase;
$first = 0;
}
if( $phase != $lastphase && $ENV{'MONKEY_EXONS'} == 1 ) {
if( $phase != $lastphase && ( defined $ENV{'MONKEY_EXONS'})) {
# endpadding for the last exon
if( $lastphase == 1 ) {
$mrna .= 'NN';
......
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