Skip to content

Commit e599966

Browse files
committed
[rosalind] orf-grondilu.pl fix under GLR
1 parent dbb1158 commit e599966

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

categories/rosalind/orf-grondilu.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ ($dna)
5050

5151
sub orf($dna) {
5252
my %match;
53-
my @match = gather for $dna, revc $dna {
53+
my @match = (gather for $dna, revc $dna {
5454
take .match: rx/ ATG [ <[ACGT]>**3 ]*? <before TAA|TAG|TGA> /, :overlap;
55-
};
55+
})>>.list.flat;
5656

5757
%match{
5858
[~] map { DNA-codon{$_} }, .match: rx/ <[ACGT]>**3 /, :g
5959
}++ for @match;
6060

61-
return %match.keys;
61+
return %match.keys.sort;
6262
}
6363

6464
sub MAIN(Str $input = $default-input) {

0 commit comments

Comments
 (0)