This routine simply counts dinucleotide frequencies for the selected region of the sequence. It also calculates an expected distribution based on the base composition. The output looks like:
A C G T
Obs Expected Obs Expected Obs Expected Obs Expected
A 7.91 5.84 5.64 5.93 5.05 6.49 5.57 5.91
C 5.91 5.93 5.14 6.02 7.38 6.59 6.10 5.99
G 6.11 6.49 7.56 6.59 6.30 7.22 6.90 6.56
T 4.24 5.91 6.18 5.99 8.14 6.56 5.86 5.97