diff --git a/modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm b/modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm index d829fa1f95c74c0670bdc60c4887af1a05b8fef5..34fbc4c9be8420aa673c2b0fa984725a05f934f5 100644 --- a/modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm +++ b/modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm @@ -367,7 +367,7 @@ sub check_for_stops { } elsif (defined($offset) && ($offset=~/^\d+$/)){ if ($offset == length($orig_seq)+1) { - if($seen_transcripts->{$tsi}->[1] eq 'known-tga-stop') { + if($seen_transcripts->{$tsi} && $seen_transcripts->{$tsi}->[1] eq 'known-tga-stop') { $log_object->_save_log('log', '', $gene->stable_id, 'TRANSCRIPT', $tsi, '', "Annotated stop for transcript $tsi ($tname) known to be a stop codon. Ok. [$mod_date]"); } else { $log_object->_save_log('log_warning', '', $gene->stable_id, 'TRANSCRIPT', $tsi, '', "Annotated stop for transcript $tsi ($tname) \"$offset\" matches actual stop codon yet has no entry in script config to disambiguate it. Please investigate and add appropriate entry. [$mod_date]");