dviSim {dvir}R Documentation

Simulate genotypes in a DVI dataset

Description

Simulates genotypes for the references and missing persons in each AM family, transfers to the PM singletons according to the indicated matching. Remaining victims are simulated as unrelated.

Usage

dviSim(
  dvi,
  refs = typedMembers(dvi$am),
  truth = NULL,
  seed = NULL,
  verbose = FALSE
)

Arguments

dvi

A dviData object.

refs

A character with names of all reference individuals. By default, the typed members of the input.

truth

A named vector of the format c(vic1 = mis1, vic2 = mis2, ...).

seed

An integer seed for the random number generator.

verbose

A logical.

Value

A dviData object similar to the input.

See Also

forrel::profileSim().

Examples

ex = dviSim(example2, truth = c(V1 = "M1", V2 = "M2"))
plotDVI(ex, marker = 1)


[Package dvir version 3.2.1 Index]