Skip to content
Snippets Groups Projects
Commit 4f3b6b6b authored by Matthew Laird's avatar Matthew Laird Committed by GitHub
Browse files

Merge pull request #148 from thibauthourlier/patch-1

Check that translations exist before comparing the sequences
parents 21094962 5795d181
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,9 @@ sub calculate_version {
# increment version if translation sequence changed
# Can happen if Havana move initiation start site or stop codon
if ($s_obj->translation->seq ne $t_obj->translation->seq) { $change = 1; }
if ($s_obj->translation and $t_obj->translation) {
if ($s_obj->translation->seq ne $t_obj->translation->seq) { $change = 1; }
}
# Look for changes on the region
if ( $s_obj->seq_region_name() ne $t_obj->seq_region_name() ) { $change = 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