\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{SearchIO}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{blast\PYGZus{}qresult} \PYG{o}{=} \PYG{n}{SearchIO}\PYG{o}{.}\PYG{n}{read}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}my\PYGZus{}blast.xml\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}blast\PYGZhy{}xml\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{blast\PYGZus{}frag} \PYG{o}{=} \PYG{n}{blast\PYGZus{}qresult}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{][}\PYG{l+m+mi}{0}\PYG{p}{][}\PYG{l+m+mi}{0}\PYG{p}{]}    \PYG{c+c1}{\PYGZsh{} first hit, first hsp, first fragment}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{print}\PYG{p}{(}\PYG{n}{blast\PYGZus{}frag}\PYG{p}{)}
\PYG{g+go}{      Query: 42291 mystery\PYGZus{}seq}
\PYG{g+go}{        Hit: gi|262205317|ref|NR\PYGZus{}030195.1| Homo sapiens microRNA 520b (MIR520...}
\PYG{g+go}{Query range: [0:61] (1)}
\PYG{g+go}{  Hit range: [0:61] (1)}
\PYG{g+go}{  Fragments: 1 (61 columns)}
\PYG{g+go}{     Query \PYGZhy{} CCCTCTACAGGGAAGCGCTTTCTGTTGTCTGAAAGAAAAGAAAGTGCTTCCTTTTAGAGGG}
\PYG{g+go}{             |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||}
\PYG{g+go}{       Hit \PYGZhy{} CCCTCTACAGGGAAGCGCTTTCTGTTGTCTGAAAGAAAAGAAAGTGCTTCCTTTTAGAGGG}
\end{Verbatim}
