Learn R Programming

mpMap (version 1.14)

nai: Count how many generations of advanced intercross are in a pedigree

Description

Counts the number of generations of breeding preceding selfing and subtracts off the number necessary to minimally mix the founders' genomes

Usage

nai(pedigree)

Arguments

pedigree
Pedigree for a multi-parent cross. Can be generated using sim.mpped

Value

Integer - number of generations of advanced intercrossing after mixing stage but before selfing.

See Also

sim.mpped

Examples

Run this code
sim.map <- list(Chr1=seq(0,100,10))
sim.ped <- sim.mpped(4, 1, 500, 6, 1)
nai(sim.ped)
sim.ped <- sim.mpped(4, 1, 500, 6, 1, 5)
nai(sim.ped)

Run the code above in your browser using DataLab