[BioPython] Problems with NCBIXML.py
Peter
biopython at maubp.freeserve.co.uk
Tue Oct 23 16:09:32 UTC 2007
Bruno Santos wrote:
> I am trying to build a simple script that given a multi FASTA sequence file
> perform a web BLAST and replace the name of the sequence by the hit with the
> lowest E-Value.
>
> But now I’m getting an exception that I don’t now why it’s happening:
>
> Traceback (most recent call last):
> ...
>
> for blast_record in blast_records:
>
> File "C:\Python25\lib\site-packages\Bio\Blast\NCBIXML.py", line 592, in
> parse
>
> expat_parser.Parse(text, False)
>
> ExpatError: mismatched tag: line 2823, column 362
That sounds like an error in the XML file - have a look at this
particular XML file by hand in a text editor; maybe its only a partial
download, or an HTML error page or something.
Peter
More information about the Biopython
mailing list