I have some sequences shown below
CAGGTAGCC
CCGGTCAGA
AGGGTTTGA
TTGGTGAGG
CAAGTATGA
ACTGTATGC
CTGGTAACC
TATGTACTG
GCTGTGAGA
CAGGTGGGC
TCAGTGAGA
GGGGTGAGT
TGGGTATGT
GAGGTGAGA
CAGGTGGAG
Each line has 9 nucleotides. Consider it to be 9 columns.I want to calculate the nucleotide frequency of each nucleotide for each of the 9 columns. For example 1st column will have these bases C,C,A,T,C,A etc Out put should be something like this
A 0.25 0.34 0.56 0.43 0.00 0.90 0.45 0.34 0.31
C 0.45 0.40 0.90 0.00 0.40 0.90 0.30 0.25 0.2
G 0.00 0.00 0.34 1.00 0.30 0.30 0.35 0.90 0.1
T 0.24 0.56 0.00 0.00 1.00 0.34 0.45 0.35 0.36
Note, I just made up the numbers to show you the output file format