Package Bio :: Package Alphabet :: Class HasStopCodon
[hide private]
[frames] | no frames]

Class HasStopCodon

source code

     object --+    
              |    
AlphabetEncoder --+
                  |
                 HasStopCodon

Instance Methods [hide private]
 
__init__(self, alphabet, stop_symbol='*')
Initialize the class.
source code
 
contains(self, other)
Test if the other alphabet is contained in this one (OBSOLETE?).
source code
 
_upper(self)
Return an upper case variant of the current alphabet (PRIVATE).
source code
 
_lower(self)
Return a lower case variant of the current alphabet (PRIVATE).
source code

Inherited from AlphabetEncoder: __getattr__, __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, alphabet, stop_symbol='*')
(Constructor)

source code 
Initialize the class.
Overrides: object.__init__

contains(self, other)

source code 

Test if the other alphabet is contained in this one (OBSOLETE?).

Returns a boolean. This relies on the Alphabet subclassing hierarchy, and attempts to check the stop symbol. This fails if the other alphabet does not have a stop symbol!

Overrides: AlphabetEncoder.contains

_upper(self)

source code 
Return an upper case variant of the current alphabet (PRIVATE).
Overrides: AlphabetEncoder._upper

_lower(self)

source code 
Return a lower case variant of the current alphabet (PRIVATE).
Overrides: AlphabetEncoder._lower