[Biopython-dev] Blast Parser error
Matteo
matteo.io at email.it
Mon Nov 21 15:40:43 EST 2005
Hi, I'm using the latest biopython (1.41) with python 2.4 on windows. I
have a problem with a script that works fine on linux, I don't know what
to do...
this is the simple code:
blast_db = os.path.join(os.getcwd(), FASTA_FILE)
blast_file = os.path.join(os.getcwd(), QUERY_FILE)
blast_exe = os.path.join(os.getcwd(), 'blastall.exe')
blast_out, error_info = NCBIStandalone.blastall(blast_exe, 'blastn',
blast_db, blast_file)
save_file = open('my_blast.out', 'w')
blast_results = blast_out.read()
save_file.write(blast_results)
save_file.close()
blast_out = open('my_blast.out', 'r')
blastparser = NCBIStandalone.BlastParser()
alignrecord = blastparser.parse(blast_out)
[...]
And this is the error:
File "blastMaker.py", line 55, in ?
alignrecord = blastparser.parse(blast_out)
rd.Blast
File "C:\Python24\Lib\site-packages\Bio\Blast\NCBIStandalone.py", line
623, in
parse
self._scanner.feed(handle, self._consumer)
File "C:\Python24\Lib\site-packages\Bio\Blast\NCBIStandalone.py", line
93, in
feed
read_and_call_until(uhandle, consumer.noevent, contains='BLAST')
File "C:\Python24\Lib\site-packages\Bio\ParserSupport.py", line 335,
in read_a
nd_call_until
line = safe_readline(uhandle)
File "C:\Python24\Lib\site-packages\Bio\ParserSupport.py", line 411,
in safe_r
eadline
raise SyntaxError, "Unexpected end of stream."
SyntaxError: Unexpected end of stream.
Someone could help me?
Thanks in advance,
--
Matteo De Felice
University of Rome "Roma Tre"
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Rc auto Zuritel. Scopri subito che risparmiare è un gioco da ragazzi. Bastano 7 click per ottenere un preventivo personalizzato. Prova ora.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4096&d=21-11
More information about the Biopython-dev
mailing list