View source: R/randomProfile.R
randomProfile | R Documentation |
Generates a random DNA profile from a given set of allele frequencies.
randomProfile(Freqs)
Freqs |
A list containing two lists labelled loci and freqs. The second list is a list of vectors containing the allele frequencies of each allele at each locus in the multiplex. |
The alleles are simply integers rather than the STR repeat numbers. This speeds up computation immensely when calculating any of the LRs or IBS.
A vector with 2*nLoci elements. Each pair of elements represents the genotpe of the random individual at that locus. The genotype alleles are always ordered so that allele1 <= allele2.
James M. Curran
randomChild, randomSample, randomSib
data(fbiCaucs)
P1 = randomProfile(fbiCaucs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.