[Biopython-dev] Bio.Entrez XML parsing

Peter biopython at maubp.freeserve.co.uk
Mon Mar 31 11:25:05 UTC 2008


On Mon, Mar 31, 2008 at 1:51 AM, Sean Davis <sdavis2 at mail.nih.gov> wrote:
>  This makes sense.  However, it seems that there needs to be a way to
>  "register" a parser with read() so that users can extend their local
>  installation with a specialized parser.  In other words, it seems that
>  a way to dynamically register a parser with read() would be helpful.
>  Or am I missing something?

I like Michiel's plan.  The mapping could be as simple as a (private)
dictionary in Bio.Entrez, mapping formats to parser objects/functions
- as done in Bio.SeqIO - which lets the user add new parsers or
override the built in ones should they so desire.

Peter



More information about the Biopython-dev mailing list