Table of Contents

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

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

This takes a sequence, and returns the number of times specified motifs are found in the sequence. This lets you represent a sequence as just a count of (possibly ambiguous) motifs.

Methods   
__init__
representation
  __init__ 
__init__ (
        self,
        schemas,
        ambiguous_converter,
        )

Initialize the coder to convert sequences

Arguments:

  • schema - A list of all of the schemas we want to search for in input sequences.

  • ambiguous_converter - An Schema class which can be used to convert motifs into regular expressions for searching.

  representation 
representation ( self,  sequence )

Represent the given input sequence as a bunch of motif counts.

Arguments:

  • sequence - A Bio.Seq object we are going to represent as schemas.

This takes the sequence, searches for the motifs within it, and then returns counts specifying the relative number of times each motifs was found. The frequencies are in the order the original motifs were passed into the initializer.


Table of Contents

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