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

Class SequenceParser

source code

ParserSupport.AbstractParser --+
                               |
                              SequenceParser

Parses SwissProt data into a standard SeqRecord object.

Instance Methods [hide private]
 
__init__(self, alphabet=ProteinAlphabet())
Initialize a SequenceParser.
source code
 
parse(self, handle) source code

Inherited from ParserSupport.AbstractParser: parse_file, parse_str

Method Details [hide private]

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

source code 

Initialize a SequenceParser.

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

parse(self, handle)

source code 
Overrides: ParserSupport.AbstractParser.parse