-
Notifications
You must be signed in to change notification settings - Fork 1
Recombination
Sujimichi edited this page Sep 12, 2010
·
5 revisions
The recombination module provides the genome with a method for generating new genetic material from its DNA and the DNA of another Individual.
new_dna = recombine another_genome
This methods calls a recombination methods as specified in the config hash e.g:
<pre><code>
config ={recomb_method => :standard_microbial}
It is my intention to further extend this methods to add different recombination methods. A recombination method added here must take an array of two objecrts (in most cases an array) representing genetic material and must return an object of genetic material.
@new_dna = my_recomb_func([@dna,partner_genome.sequence])
@new_dna.class.should equal(@dna.class)
The variables that are needed for recombination are declared in the Genome class’ initialize method.