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

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

This fitness function tries to maximize schemas which are found many times in a group of sequences.

Link to this section Summary

Functions

Initialize with sequences to evaluate

Calculate the fitness of a genome based on schema matches

Link to this section Functions

Initialize with sequences to evaluate.

Arguments:

  • seq_records — A set of SeqRecord objects which we use to calculate the fitness.
  • schema_evaluator - An Schema class which can be used to evaluate find motif matches in sequences.
Link to this function calculate_fitness()

Calculate the fitness of a genome based on schema matches.

This bases the fitness of a genome completely on the number of times it matches in the set of seq_records. Matching more times gives a better fitness