build_pedigrees | R Documentation |
In a newly simulated population, each individual only knows its father and children. Using this information, this function builds pedigrees. This makes it easier to e.g. population haplotypes, find path between two individuals (if they are not in the same pedigree, they are not connected).
build_pedigrees(population, progress = TRUE)
population |
Population generated by |
progress |
Show progress. |
An object with class malan_pedigreelist
(an internal list of external pointers to pedigrees).
sample_geneology()
and sample_geneology_varying_size()
for simulating populations.
sim <- sample_geneology(100, 10)
str(sim, 1)
sim$population
peds <- build_pedigrees(sim$population)
peds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.