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

Class _SequenceConsumer

source code

ParserSupport.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.

Instance Methods [hide private]
 
__init__(self, alphabet=ProteinAlphabet())
Initialize a Sequence Consumer
source code
 
start_record(self) source code
 
end_record(self) source code
 
identification(self, line) source code
 
accession(self, line) source code
 
description(self, line) source code
 
sequence_data(self, line) source code
 
gene_name(self, line) source code
 
comment(self, line) source code
 
database_cross_reference(self, line) source code
 
date(self, line) source code
 
keyword(self, line) source code
 
organism_species(self, line) source code
 
organism_host(self, line) source code
 
organism_classification(self, line) source code
 
taxonomy_id(self, line) source code
 
reference_number(self, line)
RN line, reference number (start of new reference).
source code
 
reference_position(self, line)
RP line, reference position.
source code
 
reference_cross_reference(self, line)
RX line, reference cross-references.
source code
 
reference_author(self, line)
RA line, reference author(s).
source code
 
reference_title(self, line)
RT line, reference title.
source code
 
reference_location(self, line)
RL line, reference 'location' - journal, volume, pages, year.
source code
 
reference_comment(self, line)
RC line, reference comment.
source code

Inherited from ParserSupport.AbstractConsumer: __getattr__

Method Details [hide private]

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

source code 

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.