\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{import} \PYG{n+nn}{numpy}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{probabilities} \PYG{o}{=} \PYG{n}{frequency} \PYG{o}{/} \PYG{n}{numpy}\PYG{o}{.}\PYG{n}{sum}\PYG{p}{(}\PYG{n}{frequency}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{probabilities} \PYG{o}{=} \PYG{p}{(}\PYG{n}{probabilities} \PYG{o}{+} \PYG{n}{probabilities}\PYG{o}{.}\PYG{n}{transpose}\PYG{p}{())} \PYG{o}{/} \PYG{l+m+mf}{2.0}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{print}\PYG{p}{(}\PYG{n}{format}\PYG{p}{(}\PYG{n}{probabilities}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+si}{\PYGZpc{}.4f}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{))}
\PYG{g+go}{       A      C      G      T}
\PYG{g+go}{A 0.2026 0.0112 0.0224 0.0142}
\PYG{g+go}{C 0.0112 0.1848 0.0162 0.0215}
\PYG{g+go}{G 0.0224 0.0162 0.2647 0.0132}
\PYG{g+go}{T 0.0142 0.0215 0.0132 0.1505}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\end{Verbatim}
