[BioPython] blast parser ideas

Cayte katel@worldpath.net
Thu, 11 Nov 1999 22:42:26 -0800


----- Original Message -----
From: Arne Mueller <a.mueller@icrf.icnet.uk>
To: Jeffrey Chang <jchang@SMI.Stanford.EDU>
Cc: <biopython@biopython.org>
Sent: Thursday, November 11, 1999 7:04 AM
Subject: Re: [BioPython] blast parser ideas


> Jeffrey Chang wrote:
> >
> > > consumer.start_Sbject()
> > > consumer.Sbject()
> > > consumer.end_Sbject()
> >
> > Oops, I should have explained myself clearer.  The start_ and end_
methods
> > are used called for sections and provide the Consumer with contextual
> > clues.  For example, the parser may call:
> >
> > consumer.start_alignment()
> > consumer.query(data)
> > consumer.align(data)
> > consumer.sbjct(data)
> > consumer.end_alignment()
>
  Maybe a state machine could help with contextual information? States like
START_ALIGNMENT, QUERY, SBJCT, etc.

                                                                      Cayte