Package Bio :: Package NeuralNetwork :: Package Gene :: Module Schema :: Class RandomMotifGenerator
[show private | hide private]
[frames | no frames]

Class RandomMotifGenerator


Generate a random motif within given parameters.
Method Summary
  __init__(self, alphabet, min_size, max_size)
Initialize with the motif parameters.
  random_motif(self)
Create a random motif within the given parameters.

Method Details

__init__(self, alphabet, min_size=12, max_size=17)
(Constructor)

Initialize with the motif parameters.

Arguments:

o alphabet - An alphabet specifying what letters can be inserted in a motif.

o min_size, max_size - Specify the range of sizes for motifs.

random_motif(self)

Create a random motif within the given parameters.

This returns a single motif string with letters from the given alphabet. The size of the motif will be randomly chosen between max_size and min_size.

Generated by Epydoc 2.1 on Mon Aug 27 16:43:42 2007 http://epydoc.sf.net