Description Usage Arguments Details References
This function takes as input a GENIND object, and simulates
reps
dyads related according to the specifications in the
the k_vector
. It outputs a data.frame with relatedness values
for each simulated dyad for each of the indices described in the
estimate_rel
function. A vector of allele frequencies can be
optionally supplied. If none is supplied, allele frequencies are
estimated from the data.
1 |
data |
An object of class GENIND containing genotypes for a single population. |
reps |
The number of dyads to simulate. |
k_vector |
A vector of three numbers that must add to 1.0 that gives the expected proportion of loci that are under one of the three possible IBD modes for non-inbred populations (see Details). |
allele_frq |
A vector of size |
The goal of this function is to take population allele frequency data and calculate relatedness values calculated from simulated pairs of individuals (dyads) that have any given relatedness level (assuming an outbred population). The distribution of relatedness values can then be used to help classify observed pairs of sampled individuals into relatedness categories (e.g., Blouin et al. 1996).
Blouin M, Parsons M, Lacaille V, Lotz S (1996) Use of microsatellite loci to classify individuals by relatedness. Molecular Ecology, 5, 393-401.
Wang JL (2011) Unbiased relatedness estimation in structured populations. Genetics, 187, 887-901.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.