\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{results2} \PYG{o}{=} \PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{read}\PYG{p}{(}\PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{elink}\PYG{p}{(}\PYG{n}{dbfrom}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}pmc\PYGZdq{}}\PYG{p}{,} \PYG{n}{db}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}pubmed\PYGZdq{}}\PYG{p}{,} \PYG{n}{LinkName}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}pmc\PYGZus{}pubmed\PYGZdq{}}\PYG{p}{,}
\PYG{g+gp}{... }                                    \PYG{n+nb}{id}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{},\PYGZdq{}}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{pmc\PYGZus{}ids}\PYG{p}{)))}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{pubmed\PYGZus{}ids} \PYG{o}{=} \PYG{p}{[}\PYG{n}{link}\PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}Id\PYGZdq{}}\PYG{p}{]} \PYG{k}{for} \PYG{n}{link} \PYG{o+ow}{in} \PYG{n}{results2}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{][}\PYG{l+s+s2}{\PYGZdq{}LinkSetDb\PYGZdq{}}\PYG{p}{][}\PYG{l+m+mi}{0}\PYG{p}{][}\PYG{l+s+s2}{\PYGZdq{}Link\PYGZdq{}}\PYG{p}{]]}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{pubmed\PYGZus{}ids}
\PYG{g+go}{[\PYGZsq{}19698094\PYGZsq{}, \PYGZsq{}19450287\PYGZsq{}, \PYGZsq{}19304878\PYGZsq{}, ..., \PYGZsq{}15985178\PYGZsq{}]}
\end{Verbatim}
