Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[rosalind] orf-grondilu.pl fix under GLR
  • Loading branch information
stmuk committed Sep 24, 2015
1 parent dbb1158 commit e599966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions categories/rosalind/orf-grondilu.pl
Expand Up @@ -50,15 +50,15 @@ ($dna)

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

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

return %match.keys;
return %match.keys.sort;
}

sub MAIN(Str $input = $default-input) {
Expand Down

0 comments on commit e599966

Please sign in to comment.