in reply to string complement question
Hope this is what you mean?my $i; my $j; for ($i=0; $i < @array1; $i++) { $dna = reverse $array1[$i]; $dna =~ tr/actg/tgac/; for ($j=0; $j < @array1; $j++) { if ($dna eq $array1[$j]) { print "FOUND $dna\t$array[$j]\n"; } } }
--
B10m
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: string complement question
by Anonymous Monk on Nov 21, 2003 at 13:10 UTC | |
by b10m (Vicar) on Nov 21, 2003 at 13:23 UTC | |
by Abigail-II (Bishop) on Nov 21, 2003 at 13:55 UTC |