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

Class Gapped

source code

AlphabetEncoder --+
                  |
                 Gapped

Instance Methods [hide private]
 
__init__(self, alphabet, gap_char='-') 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__

Method Details [hide private]

__init__(self, alphabet, gap_char='-')
(Constructor)

source code 
Overrides: AlphabetEncoder.__init__

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 gap character. This fails if the other alphabet does not have a gap character!

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