Hi. I am new to perl and trying to solve the following problem. I have a set of sequences/strings of equal length like the following:
Sequence1: ACCGT
Sequence2: AGCCG
Sequence 3:CATTC
Sequence4: GTAAA
Now I want to create matrix which will count the frequency of each letter in each column, for example the frequency of A in column 1 is 0.5, C is 0.25, G is 0.25, T is 0 etc. Basically I want to print the frequency of letters A,C,G,T in each column
Thanks in advance for your help.