From 888f38d86a16963af7f84bbca12bf794e6b487fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Fri, 16 Jul 2010 09:57:15 +0000 Subject: [PATCH] Hack: - @seqeds = sort { $b->start() <=> $a->start() } @seqeds; + # HACK: The translation ENSP00000420939 somehow makes the next line + # bomb out ($a or $b becomes undef) if the start() method + # is used. I haven't been able to find out why. It has 10 + # Selenocysteine seqedits that looks correct. + # /Andreas (release 59) + my @seqeds = sort { $b->{'start'} <=> $a->{'start'} } @seqeds; --- modules/Bio/EnsEMBL/Translation.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Translation.pm b/modules/Bio/EnsEMBL/Translation.pm index ece9fae66c..91039753fc 100755 --- a/modules/Bio/EnsEMBL/Translation.pm +++ b/modules/Bio/EnsEMBL/Translation.pm @@ -1011,7 +1011,12 @@ sub modify_translation { # Sort in reverse order to avoid complication of adjusting # downstream edits. - @seqeds = sort { $b->start() <=> $a->start() } @seqeds; + # HACK: The translation ENSP00000420939 somehow makes the next line + # bomb out ($a or $b becomes undef) if the start() method + # is used. I haven't been able to find out why. It has 10 + # Selenocysteine seqedits that looks correct. + # /Andreas (release 59) + my @seqeds = sort { $b->{'start'} <=> $a->{'start'} } @seqeds; # Apply all edits. my $peptide = $seq->seq(); -- GitLab