View source: R/ancestry_module.R
ancestry_module | R Documentation |
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 )
input_population |
Potential earlier simulated population used as starting point for the simulation. If not provided by the user, the simulation starts from scratch. |
number_of_founders |
Number of unique ancestors / ancestries to be tracked in the simulation |
initial_frequencies |
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. |
morgan |
Length of the genomic stretch simulated, expressed in Morgan (e.g. the number of crossovers during meiosis) |
markers |
A vector of locations of markers, with the location in Morgan. Ancestry at these marker positions is tracked for every generation. |
track_junctions |
Tracks the average number of junctions over time if TRUE |
list with type = "Ancestry". Can be used in simulate_admixture.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.