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='*')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
contains(self, other)
Does this alphabet 'contain' the other (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 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

contains(self, other)

source code 

Does this alphabet 'contain' the other (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