nai: Count how many generations of advanced intercross (AI) are in...

Description Usage Arguments Value See Also Examples

Description

Counts the number of generations of breeding preceding selfing and subtracts off the number necessary to minimally mix the founders' genomes. The number of founders for the design is extracted from the pedigree, and must be a power of 2.

Usage

1
nai(pedigree, IDs, nFounders)

Arguments

pedigree

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

IDs

A numeric vector containing the rows within the pedigree, for which we are interested in the number of AI generations. Defaults to all.

nFounders

Number of founders

Value

A vector of integers, containing the number of generations of advanced intercrossing after mixing stage but before selfing, for each line in the final population

See Also

sim.mpped

Examples

1
2
3
4
5
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)

behuang/mpMap documentation built on May 12, 2019, 10:53 a.m.