[BioPython] blast

ekarac@ug.bilkent.edu.tr ekarac@ug.bilkent.edu.tr
Sun, 24 Nov 2002 04:20:36 EET


Hello,

I have written a code for blast but it gives a syntax error as 
"unexpected end of stream." 
the code is:

from Bio.Blast import NCBIWWW

query='AC092140'
b_results = NCBIWWW.blast('blastn', 'human genome', query)
b_parser = NCBIWWW.BlastParser()
b_record = b_parser.parse(b_results)  

for alignment in b_record.alignments:
    for hsp in alignment.hsps:
        if hsp.expect==0.0:
            print alignment.title



could you help me sove this problem please?

thank you,

Esra Karaca