Consumer that converts a SwissProt record to a Seq object.
Members:
data Record with SwissProt data.
alphabet The alphabet the generated Seq objects will have.
Methods
|
|
__init__
accession
description
end_record
identification
sequence_data
start_record
|
|
__init__
|
__init__ ( self, alphabet=Alphabet.generic_protein )
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.
|
|
accession
|
accession ( self, line )
|
|
description
|
description ( self, line )
|
|
end_record
|
end_record ( self )
|
|
identification
|
identification ( self, line )
|
|
sequence_data
|
sequence_data ( self, line )
|
|
start_record
|
start_record ( self )
|
|