Table of Contents

Class: RandomMotifGenerator Bio/NeuralNetwork/Gene/Schema.py

Generate a random motif within given parameters.

-- Helper classes

Methods   
__init__
random_motif
  __init__ 
__init__ (
        self,
        alphabet,
        min_size=12,
        max_size=17,
        )

Initialize with the motif parameters.

Arguments:

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

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

  random_motif 
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.


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:11 2002 by HappyDoc version 2.0.1