[BioPython] Blast XML parser

Peter biopython at maubp.freeserve.co.uk
Wed Dec 13 09:59:10 UTC 2006


Michiel de Hoon wrote:
> Thanks, Christof.
> 
>> Concerning the new syntax, I would prefer a unified syntax for parsing 
>> of both XML formats, and I would like to vote for Peter's "nice idea" in 
>> his comment #6 in http://bugzilla.open-bio.org/show_bug.cgi?id=1970). 
>> Running the same code on different machines with different local BLAST 
>> versions constantly gives me a headache when parsing the results. As 
>> long as these different BLAST versions are out there, people will run 
>> into problems, and fill the BioPython discussion lists.
> 
> I'm not sure if I understand correctly. Are you saying that we should 
> have one function to handle both old- and new-style XML output? Or are 
> you referring to how the functions should be named?

I think Christof was agreeing that supporting both the "old" and "new" 
Blast XML formats in a single function would be nice.

I think we could wrap Michiel's new XML code inside a loop that would 
split up any concatenated (old style) XML files.  It shouldn't be too 
ugly - provided the XML parser can cope with a single record old style, 
as well as one-or-more records new style.

I'll try and make a modified patch to show what I have in mind later 
today...

Peter




More information about the Biopython mailing list