biopython v1.71.0 Bio.NeuralNetwork.Gene.Schema

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.

Link to this section Summary

Functions

Determine whether or not the given pattern matches the schema

Link to this section Functions

Link to this function matches_schema()

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.