Module to perform simulations based on local ancestry
ancestry_module(
input_population = NA,
number_of_founders = 2,
initial_frequencies = NA,
morgan = 1,
markers = NA,
track_junctions = FALSE
)
list with type = "Ancestry". Can be used in simulate_admixture.
Potential earlier simulated population used as starting point for the simulation. If not provided by the user, the simulation starts from scratch.
Number of unique ancestors / ancestries to be tracked in the simulation
A vector describing the initial frequency of each ancestor / ancestry. By default, equal frequencies are assumed. If a vector not summing to 1 is provided, the vector is normalized.
Length of the genomic stretch simulated, expressed in Morgan (e.g. the number of crossovers during meiosis)
A vector of locations of markers, with the location in Morgan. Ancestry at these marker positions is tracked for every generation.
Tracks the average number of junctions over time if TRUE