[Biopython] Having a hard time getting a handle on handles

Eric Talevich eric.talevich at gmail.com
Fri Jul 1 15:27:42 UTC 2011


OK, the "iteration" is where you're trying to construct a list. Where it
says:

blast_record = list(NCBIXML.read(result_handle))

Try:

blast_record = NCBIXML.read(result_handle)
print blast_record

And see what's in the blast_record object. That should make it more clear
how the rest of your code should navigate it.

-E

On Thu, Jun 30, 2011 at 11:50 PM, Dilara Ally <dilara.ally at gmail.com> wrote:

> Thanks, I tried that and now the error is
>
>
> Traceback (most recent call last):
>  File "<stdin>", line 12, in <module>
> TypeError: iteration over non-sequence
>
> Dilara
>
>
> On 6/30/11 8:24 PM, Eric Talevich wrote:
>
>> from Bio.Blast import NCBIXML
>>
>



More information about the Biopython mailing list