laziness, impatience, and hubris | |
PerlMonks |
Re: How can I count the types of changes in 1st, 2nd and 3rd positions of all 3-letter words in comparing two separate strings of unequal length?by baxy77bax (Deacon) |
on May 13, 2012 at 11:06 UTC ( [id://970269]=note: print w/replies, xml ) | Need Help?? |
Ok, so if i understood you correctly you have two problems here: 1. You need to know which codons are homologous and which are not. Is that correct ?? 2. After you figure out the first you wish to know where are the changes within the proper reading frame ??? Are my assumptions correct ?? Or the sequences are already aligned and you just wish to count the differences ? In both cases, when alignment is done to count the diff you just iterate through both arrays count triplets, hash them and the for every triplet make a subhash that will record the type and the count of a specific change. Example:
Result:
In Section
Seekers of Perl Wisdom
|
|