Skip to content

Commit

Permalink
same_sequence_order checks for internal STOP codons in translated seq…
Browse files Browse the repository at this point in the history
…uences
  • Loading branch information
eead-csic-compbio committed Nov 3, 2023
1 parent f52b00d commit 93e30f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/phyTools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,14 @@ sub same_sequence_order
if($translated =~ m/\*/) {
print "# same_sequence_order : translation of $refCDSnt->[$seq][NAME] contains internal STOP codons (*): ".
"$translated\n";
return 0;
return 0;
}

if($parsed ne $translated &&
$parsed !~ /$translated/ && $translated !~ /$parsed/) {
$parsed !~ /\Q$translated\E/ && $translated !~ /\Q$parsed\E/) {
print "# same_sequence_order : sequence #$seq does not match: ".
"$refCDSnt->[$seq][SEQ]\n$translated\n$refCDSaa->[$seq][SEQ]\n";
return 0;
return 0;
}
}

Expand Down

0 comments on commit 93e30f4

Please sign in to comment.