Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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