\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{pairwise2}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio.Align} \PYG{k+kn}{import} \PYG{n}{substitution\PYGZus{}matrices}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{blosum62} \PYG{o}{=} \PYG{n}{substitution\PYGZus{}matrices}\PYG{o}{.}\PYG{n}{load}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}BLOSUM62\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{alignments} \PYG{o}{=} \PYG{n}{pairwise2}\PYG{o}{.}\PYG{n}{align}\PYG{o}{.}\PYG{n}{localds}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}LSPADKTNVKAA\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}PEEKSAV\PYGZdq{}}\PYG{p}{,} \PYG{n}{blosum62}\PYG{p}{,} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{10}\PYG{p}{,} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{1}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\PYG{n}{pairwise2}\PYG{o}{.}\PYG{n}{format\PYGZus{}alignment}\PYG{p}{(}\PYG{o}{*}\PYG{n}{alignments}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]))}
\PYG{g+go}{3 PADKTNV}
\PYG{g+go}{  |..|..|}
\PYG{g+go}{1 PEEKSAV}
\PYG{g+go}{  Score=16}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\end{Verbatim}
