genAILped: Generate a pedigree matrix for AIL

View source: R/sim_pedigree.R

genAILpedR Documentation

Generate a pedigree matrix for AIL

Description

Generate a pedigree matrix, for use with the simulation function sim.ped, for advanced intercross lines.

Usage

genAILped(ngen=8, npairs=20, sibship.size=10)

Arguments

ngen

Number of generations of crosses.

npairs

Number of mating pairs per generation.

sibship.size

Size of sibships in the final generation.

Details

We generate equal numbers of males and females at each generation. Matings are with random male/female pairs, with no attempt to avoid matings between siblings.

Value

The output is a matrix with five columns: "id", "sex" (coded as 0=female, 1=male), "mom", "dad", and "generation".

Author(s)

Karl W Broman, broman@wisc.edu

See Also

sim.ped

Examples

ailped <- genAILped(ngen=5, npairs=5, sibship.size=2)

kbroman/ricalc documentation built on May 17, 2023, 11:54 p.m.