[BioPython] Re: [Biopython-dev] Notification: incoming/109

Jeffrey Chang jchang@smi.stanford.edu
Fri, 17 Jan 2003 17:17:43 -0800


Hi Andreas,
> Answering myself again. Here is a better patch (against the
> biopython-1.10). Using cStringIO only when the handle doesn't have a
> seek, I read to the first "LOCUS" and then 'unread' the last line.
> This gives also more flexibility for the structure of the header.
> 
> Is there anybody else there working with full GenBank-Releases and can
> confirm this patch? 

Peter Bienstman has been working on validating the parser against all
of GenBank.  He has submitted a patch that will correctly read the
blank lines in the header file by using an UndoHandle to suck up all
the lines before the first LOCUS.  It is available in the most recent
CVS.

Jeff