No such thing as a small change | |
PerlMonks |
Re^4: How to expand a stringby Anonymous Monk |
on Nov 29, 2007 at 16:31 UTC ( [id://653891]=note: print w/replies, xml ) | Need Help?? |
Thanks, all the replies are helping me get there but it's still a bit of a nightmare to code. Here's some example inputs etc.
R = A or G
my $seq1 = "CAG GTR CAG CTG AAG SAG TCA GG"; The gaps between sets of 3 letters aren't important - it just signifies DNA codons. So, both seq 1 and seq 2 have 4 possible resulting sequences. I need to store the 4 seqs associated with seq 1 separately e.g. in a different array to those of seq 2. If you have any ideas about the best way to do this I'd be very grateful! Speed isn't a big consideration, as long as it works! Thanks for your help.
In Section
Seekers of Perl Wisdom
|
|