randomProfile: Generate a random DNA profile from a given set of allele...

View source: R/randomProfile.R

randomProfileR Documentation

Generate a random DNA profile from a given set of allele frequencies

Description

Generates a random DNA profile from a given set of allele frequencies.

Usage

randomProfile(Freqs)

Arguments

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.

Details

The alleles are simply integers rather than the STR repeat numbers. This speeds up computation immensely when calculating any of the LRs or IBS.

Value

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.

Author(s)

James M. Curran

See Also

randomChild, randomSample, randomSib

Examples


data(fbiCaucs)
P1 = randomProfile(fbiCaucs)


jmcurran/relSim documentation built on Jan. 13, 2024, 2:13 a.m.