biopython v1.71.0 Bio.NeuralNetwork.Gene.Schema.RandomMotifGenerator

Generate a random motif within given parameters.

Link to this section Summary

Functions

Initialize with the motif parameters

Create a random motif within the given parameters

Link to this section Functions

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.

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.