Sanjan
05-23-2009, 08:19 PM
I have an array that is setup and I want to compare a single site... so if this was the array
@sequence contains these values
[0]JHHDHS
[1]JHHUEN
[2]JHHDHS
I want to compare the 4th letter in all 3 here but i want to find out the percent similarity. By that i mean how conserved is each letter at a site. So for site 4 i should be able to find out that D is 2 of 3 positions, and that U is 1 of 3.
How can i do that in perl?
Sanjan
@sequence contains these values
[0]JHHDHS
[1]JHHUEN
[2]JHHDHS
I want to compare the 4th letter in all 3 here but i want to find out the percent similarity. By that i mean how conserved is each letter at a site. So for site 4 i should be able to find out that D is 2 of 3 positions, and that U is 1 of 3.
How can i do that in perl?
Sanjan