\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{import} \PYG{n+nn}{numpy} \PYG{k}{as} \PYG{n+nn}{np}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{AlignIO}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{alignment} \PYG{o}{=} \PYG{n}{AlignIO}\PYG{o}{.}\PYG{n}{read}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}PF05371\PYGZus{}seed.sth\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}stockholm\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{align\PYGZus{}array} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{array}\PYG{p}{([}\PYG{n+nb}{list}\PYG{p}{(}\PYG{n}{rec}\PYG{p}{)} \PYG{k}{for} \PYG{n}{rec} \PYG{o+ow}{in} \PYG{n}{alignment}\PYG{p}{],} \PYG{n}{np}\PYG{o}{.}\PYG{n}{character}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}Array shape }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{ by }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{\PYGZdq{}} \PYG{o}{\PYGZpc{}} \PYG{n}{align\PYGZus{}array}\PYG{o}{.}\PYG{n}{shape}\PYG{p}{)}
\PYG{g+go}{Array shape 7 by 52}
\end{Verbatim}
