randomPCPairs: Generate one or more random parent/child pairs from a given...

View source: R/randomPCPairs.R

randomPCPairsR Documentation

Generate one or more random parent/child pairs from a given set of allele frequencies

Description

Generates one or more pairs random parent/child pairs from a given set of allele frequencies.

Usage

randomPCPairs(Freqs, BlockSize = 1)

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.

BlockSize

The number of pairs of profiles to generate

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 list of length BlockSize. Each element of the list has a sublist containing two profiles called parent and child

Author(s)

James M. Curran

See Also

randomSibPairs, randomProfilePairs

Examples


data(fbiCaucs)
P = randomPCPairs(fbiCaucs)
P$parent
P$child


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