Skip to content
Snippets Groups Projects
Commit f728dddd authored by Web Admin's avatar Web Admin
Browse files

report mistranslation as a warning rather than an error so do_XXX_dump utilities don't crash

parent 5b920688
No related branches found
No related tags found
No related merge requests found
...@@ -1295,7 +1295,9 @@ sub get_all_translateable_Exons { ...@@ -1295,7 +1295,9 @@ sub get_all_translateable_Exons {
# Adjust to translation start if this is the start exon # Adjust to translation start if this is the start exon
if ($ex == $start_exon ) { if ($ex == $start_exon ) {
if ($t_start < 1 or $t_start > $length) { if ($t_start < 1 or $t_start > $length) {
throw("Translation start '$t_start' is outside exon $ex length=$length"); # throw("Translation start '$t_start' is outside exon $ex length=$length");
warn("WARN: Translation start '$t_start' is outside exon $ex length=$length");
return [];
} }
$adjust_start = $t_start - 1; $adjust_start = $t_start - 1;
} }
......
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