simNpersonMixture: Simulate and count unique alleles in N person mixtures

View source: R/simNpersonMixture.R

simNpersonMixtureR Documentation

Simulate and count unique alleles in N person mixtures

Description

This function simulates N persons mixtures using the supplied frequencies and records the number of times they share 1, 2, ..., 2N alleles locus by locus.

Usage

simNpersonMixture(freqs, numContributors, numIterations = 10000)

Arguments

freqs

a set of allele frequencies. The format can be found in readFreqs

numContributors

the number of contributors to each mixture. Must be >= 2.

numIterations

the number of N person mixtures to simulate in total.

Value

an object of class npmresult


relSim documentation built on Aug. 29, 2023, 9:07 a.m.