Back to index

python-biopython  1.60
Public Member Functions | Static Public Attributes
test_GACrossover.TestAlphabet Class Reference
Inheritance diagram for test_GACrossover.TestAlphabet:
Inheritance graph
[legend]
Collaboration diagram for test_GACrossover.TestAlphabet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def contains
def __repr__

Static Public Attributes

list letters = ["1", "2", "3"]
int size = 1

Detailed Description

Simple test alphabet.

Definition at line 21 of file test_GACrossover.py.


Member Function Documentation

def Bio.Alphabet.Alphabet.__repr__ (   self) [inherited]

Definition at line 21 of file __init__.py.

00021 
00022     def __repr__(self):
00023         return self.__class__.__name__ + "()"

def test_GACrossover.TestAlphabet.contains (   self,
  other 
)
Does this alphabet 'contain' the other (OBSOLETE?).

Returns a boolean.  This relies on the Alphabet subclassing
hierarchy only, and does not check the letters property.
This isn't ideal, and doesn't seem to work as intended
with the AlphabetEncoder classes.

Reimplemented from Bio.Alphabet.Alphabet.

Definition at line 26 of file test_GACrossover.py.

00026 
00027     def contains(self, oalpha):
00028         return True


Member Data Documentation

list test_GACrossover.TestAlphabet.letters = ["1", "2", "3"] [static]

Reimplemented from Bio.Alphabet.SingleLetterAlphabet.

Definition at line 24 of file test_GACrossover.py.

int Bio.Alphabet.SingleLetterAlphabet.size = 1 [static, inherited]

Reimplemented from Bio.Alphabet.Alphabet.

Definition at line 70 of file __init__.py.


The documentation for this class was generated from the following file: