simulates offspring's genotypes...

generateOffspring {GenABEL}R Documentation

simulates offspring's genotypes...

Description

simulates offspring's genotypes

Usage

generateOffspring(g1, g2, q)

Arguments

g1 vector of genotypes of parent 1, coded with 0, 1, 2 and NA
g2 vector of genotypes of parent 2, coded with 0, 1, 2 and NA
q vector of the frequencies of effects alleles (used to simulate missings in parental genotypes). If NULL, c(0.25,0.5,0.25) is used.

Details

Simulat offspring's genotypes given genotypes of the parents. No LD is assumed.

Value

a vector containing simulated genotypes of offspring

Author(s)

Yurii Aulchenko

Examples

eaf <- runif(10)
g1 <- rbinom(10,2,eaf)
g2 <- rbinom(10,2,eaf)
generateOffspring(g1,g2)

[Package GenABEL version 1.6-7 Index]