Trees | Indices | Help |
---|
|
Calculate fitness for schemas that differentiate between sequences.
|
|||
|
|||
|
|
Initialize with different sequences to evaluate Arguments: o positive_seq - A list of SeqRecord objects which are the 'positive' sequences -- the ones we want to select for. o negative_seq - A list of SeqRecord objects which are the 'negative' sequences that we want to avoid selecting. o schema_evaluator - An Schema class which can be used to evaluate find motif matches in sequences. |
Calculate the fitness for a given schema. Fitness is specified by the number of occurances of the schema in the positive sequences minus the number of occurances in the negative examples. This fitness is then modified by multiplying by the length of the schema and then dividing by the number of ambiguous characters in the schema. This helps select for schema which are longer and have less redundancy. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 1 00:42:15 2011 | http://epydoc.sourceforge.net |