Package Bio :: Package SwissProt :: Module SProt :: Class _SequenceConsumer
[show private | hide private]
[frames | no frames]

Class _SequenceConsumer

AbstractConsumer --+
                   |
                  _SequenceConsumer


Consumer that converts a SwissProt record to a SeqRecord object.

Members: data Record with SwissProt data. alphabet The alphabet the generated Seq objects will have.
Method Summary
  __init__(self, alphabet)
Initialize a Sequence Consumer
  accession(self, line)
  description(self, line)
  end_record(self)
  identification(self, line)
  sequence_data(self, line)
  start_record(self)
    Inherited from AbstractConsumer
  __getattr__(self, attr)
  _unhandled(self, data)
  _unhandled_section(self)

Method Details

__init__(self, alphabet=ProteinAlphabet())
(Constructor)

Initialize a Sequence Consumer

Arguments: o alphabet - The alphabet to use for the generated Seq objects. If not supplied this will default to the generic protein alphabet.

Generated by Epydoc 2.1 on Thu Jun 30 22:06:14 2005 http://epydoc.sf.net