in reply to Re: Re: string complement question
in thread string complement question
Please note that I made a lot of steps to get to this. This could be shortened, but this is more readable (for me at least ;)my $i; my $j; my $dna; my $temp_dna; for ($i=0; $i < @array1; $i++) { $dna = $array1[$i]; $temp_dna = $dna; $dna = reverse $dna; $dna =~ tr/actg/tgac/; for ($j=0; $j < @array1; $j++) { if ($dna eq $array1[$j]) { print "FOUND $temp_dna\t$array[$j]\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string complement question
by Abigail-II (Bishop) on Nov 21, 2003 at 13:55 UTC |