Description Usage Arguments Details Value See Also Examples
Sample random unrelated profiles
1 | sample.profiles(N, freqs, markers = names(freqs), theta = 0)
|
N |
number of profiles to sample (integer). |
freqs |
A list specifying the allelic frequencies. Should contain a vector of allelic frequencies for each locus, named after that locus. |
markers |
A character vector naming the markers of the resulting sample. Default to all markers of the |
theta |
numeric value specifying the amount of background relatedness, i.e. the probability that both alleles at a locus are identical by descent. |
The function randomly samples DNA profiles according to the supplied allelic frequencies.
When θ=0, the function assumes HW-equilibrium, so the alleles of a person at a locus are independent samples.
When θ>0, the alleles of a person at a locus are ibd with probability θ.
An object of class profiles
, which is an integer matrix with N rows and twice the number of loci columns. The integers correspond to the index in the allelic frequency vector, NOT to STRs. Each row is a profile and every two columns contain the two alleles at a locus.
sample.pairs
, sample.relatives
1 2 | data(freqsNLsgmplus)
db <- sample.profiles(N=1e3,freqs=freqsNLsgmplus)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.