feat_recombination {coala} | R Documentation |
Feature: Recombination
Description
This feature adds intra-locus recombination to a model. The rate is per locus
for unlinked loci and per trio for linked
locus trios. By default, the same recombination rate is used
for all loci, but it is possible to change this with par_variation
and par_zero_inflation
. Coala assumes that recombination events
can occur between all neighboring bases.
Usage
feat_recombination(rate, locus_group = "all")
Arguments
rate |
The recombination rate. Can be a numeric or a
|
locus_group |
The loci for which this features is used. Can either be
|
Value
The feature, which can be added to a model using +
.
The feature, which can be added to a model created with
coal_model
using +
.
See Also
For creating a model: coal_model
For adding recombination: feat_mutation
.
Other features:
feat_growth()
,
feat_ignore_singletons()
,
feat_migration()
,
feat_mutation()
,
feat_outgroup()
,
feat_pop_merge()
,
feat_selection()
,
feat_size_change()
,
feat_unphased()
Examples
# Simulate a 1.5kb sequence for 10 individuals with recombination:
model <- coal_model(10, 2, 1500) +
feat_recombination(1.5) +
feat_mutation(5) +
sumstat_sfs()
simulate(model)