[BioPython] problem in NCBI Blast Parser ?
Catherine Letondal
letondal at pasteur.fr
Sun Mar 7 05:50:36 EST 2004
Hi,
It seems that the Blast.NCBIWWW parser has a problem?
Traceback (most recent call last):
File "blast_swissprot_parse.py", line 6, in ?
record = blast_parser.parse(blast_results)
File
"/home1/sis/njoly/tmp/bp/biopython-1.24/build/lib.osf1-V5.1-alpha-2.3/Bio/Blast/NCBIWWW.py", line 48, in parse
File
"/home1/sis/njoly/tmp/bp/biopython-1.24/build/lib.osf1-V5.1-alpha-2.3/Bio/Blast/NCBIWWW.py", line 97, in feed
File
"/home1/sis/njoly/tmp/bp/biopython-1.24/build/lib.osf1-V5.1-alpha-2.3/Bio/ParserSupport.py", line 335, in read_and_call_until
File
"/home1/sis/njoly/tmp/bp/biopython-1.24/build/lib.osf1-V5.1-alpha-2.3/Bio/ParserSupport.py", line 411, in safe_readline
SyntaxError: Unexpected end of stream.
The file handler that was passed to the parse() method was on a file
just saved with the NCBIWWW.blast.read() method
(as explained in tutorials, either ours our the official one:
http://www.pasteur.fr/recherche/unites/sis/formation/python/ch11s06.html
exercises 11.16 and 11.17.
)
Thanks a lot, it is for a course next Tuesday :-(
--
Catherine Letondal -- Pasteur Institute Computing Center
More information about the BioPython
mailing list