Commit 888f38d8 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

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;
parent edd63766
...@@ -1011,7 +1011,12 @@ sub modify_translation { ...@@ -1011,7 +1011,12 @@ sub modify_translation {
# Sort in reverse order to avoid complication of adjusting # Sort in reverse order to avoid complication of adjusting
# downstream edits. # 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. # Apply all edits.
my $peptide = $seq->seq(); my $peptide = $seq->seq();
......
Markdown is supported
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