Description Usage Arguments Details Value
View source: R/recombination.R
Loops over the sequences in a generation, this function executes the following steps:
Determine if the current sequence should undergo recombination
Select the sequence that will be the recombinant partner
Call recombine_seqs
to recombine the sequences, and
Populate the genealogy data.frame with all the recombination information.
1 | recombine_gen(gen, ps_rate = 0)
|
gen |
A data.frame from a genealogy that contains just one generation |
ps_rate |
The chance that any given sequence will be a recombinant. |
The selection of the recombination partner is a random draw from all non-recombinant sequences in the generation. This is to prevent a sequences from effective under going two recombination events in a single cycle.
A genealogy data.frame with the recombinants and the recombination related columns populated for each recombinant sequence.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.