\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k+kn}{import} \PYG{n+nn}{pylab}
\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{SeqIO}

\PYG{k}{for} \PYG{n}{subfigure} \PYG{o+ow}{in} \PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{l+m+mi}{2}\PYG{p}{]:}
    \PYG{n}{filename} \PYG{o}{=} \PYG{l+s+s2}{\PYGZdq{}SRR001666\PYGZus{}}\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{.fastq\PYGZdq{}} \PYG{o}{\PYGZpc{}} \PYG{n}{subfigure}
    \PYG{n}{pylab}\PYG{o}{.}\PYG{n}{subplot}\PYG{p}{(}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{l+m+mi}{2}\PYG{p}{,} \PYG{n}{subfigure}\PYG{p}{)}
    \PYG{k}{for} \PYG{n}{i}\PYG{p}{,} \PYG{n}{record} \PYG{o+ow}{in} \PYG{n+nb}{enumerate}\PYG{p}{(}\PYG{n}{SeqIO}\PYG{o}{.}\PYG{n}{parse}\PYG{p}{(}\PYG{n}{filename}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}fastq\PYGZdq{}}\PYG{p}{)):}
        \PYG{k}{if} \PYG{n}{i} \PYG{o}{\PYGZgt{}=} \PYG{l+m+mi}{50}\PYG{p}{:}
            \PYG{k}{break}  \PYG{c+c1}{\PYGZsh{} trick!}
        \PYG{n}{pylab}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{n}{record}\PYG{o}{.}\PYG{n}{letter\PYGZus{}annotations}\PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}phred\PYGZus{}quality\PYGZdq{}}\PYG{p}{])}
    \PYG{n}{pylab}\PYG{o}{.}\PYG{n}{ylim}\PYG{p}{(}\PYG{l+m+mi}{0}\PYG{p}{,} \PYG{l+m+mi}{45}\PYG{p}{)}
    \PYG{n}{pylab}\PYG{o}{.}\PYG{n}{ylabel}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}PHRED quality score\PYGZdq{}}\PYG{p}{)}
    \PYG{n}{pylab}\PYG{o}{.}\PYG{n}{xlabel}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}Position\PYGZdq{}}\PYG{p}{)}
\PYG{n}{pylab}\PYG{o}{.}\PYG{n}{savefig}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}SRR001666.png\PYGZdq{}}\PYG{p}{)}
\PYG{n+nb}{print}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}Done\PYGZdq{}}\PYG{p}{)}
\end{Verbatim}
