Table of Contents

Module: Schema Bio/NeuralNetwork/Gene/Schema.py

Deal with Motifs or Signatures allowing ambiguity in the sequences.

This class contains Schema which deal with Motifs and Signatures at a higher level, by introducing `don't care` (ambiguity) symbols into the sequences. For instance, you could combine the following Motifs:

GATC, GATG, GATG, GATT

as all falling under a schema like GAT*, where the star indicates a character can be anything. This helps us condense a whole ton of motifs or signatures.

Imported modules   
from Bio import Alphabet
from Bio.GA import Organism
from Bio.GA.Crossover.Point import SinglePointCrossover
from Bio.GA.Evolver import GenerationEvolver
from Bio.GA.Mutation.Simple import SinglePositionMutation
from Bio.GA.Repair.Stabilizing import AmbiguousRepair
from Bio.GA.Selection.Diversity import DiversitySelection
from Bio.GA.Selection.Tournament import TournamentSelection
from Bio.Seq import MutableSeq
from Pattern import PatternRepository
import random
import sre
import string
Functions   
matches_schema
  matches_schema 
matches_schema (
        pattern,
        schema,
        ambiguity_character='*',
        )

Determine whether or not the given pattern matches the schema.

Arguments:

  • pattern - A string representing the pattern we want to check for matching. This pattern can contain ambiguity characters (which are assumed to be the same as those in the schema).

  • schema - A string schema with ambiguity characters.

  • ambiguity_character - The character used for ambiguity in the schema.

Classes   
DifferentialSchemaFitness

Calculate fitness for schemas that differentiate between sequences.

GeneticAlgorithmFinder

Find schemas using a genetic algorithm approach.

MostCountSchemaFitness

Calculate a fitness giving weight to schemas that match many times.

RandomMotifGenerator

Generate a random motif within given parameters.

Schema

Deal with motifs that have ambiguity characters in it.

SchemaCoder

Convert a sequence into a representation of ambiguous motifs (schemas).

SchemaDNAAlphabet

Alphabet of a simple Schema for DNA sequences.

SchemaFactory

Generate Schema from inputs of Motifs or Signatures.

SchemaFinder

Find schema in a set of sequences using a genetic algorithm approach.

SimpleFinisher

Determine when we are done evolving motifs.


Table of Contents

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