in reply to Re^3: How to expand a string
in thread How to expand a string
R = A or G
S = C or G
K = G or T
All the other letters stay constant.
my $seq1 = "CAG GTR CAG CTG AAG SAG TCA GG";
my $seq2 = "GAK GTG CAG CTT CAG CAG TCR 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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How to expand a string
by BrowserUk (Patriarch) on Nov 29, 2007 at 16:52 UTC | |
Re^5: How to expand a string
by GrandFather (Saint) on Nov 29, 2007 at 20:10 UTC |