magic.addx: Add an extra crossing generation.

View source: R/magic_addx.R

magic.addxR Documentation

Add an extra crossing generation.

Description

This function takes the "cross.info" object and adds an extra crossing generation after the final n-way crosses have been made.

Usage

magic.addx(xinfo, addx, repx, selfx)

Arguments

xinfo

an object of "cross.info" class.

addx

an integer of either 1 or 2 indicating the type of additional crosses.

repx

an integer of number of replicates from the additional crosses.

selfx

an integer of number of selfing generations after the additional crosses.

Details

There are two options available: addx=1 splits the n-way individuals into two equal pools and make all possible crosses between these two pools similar to the approach of Stadlmeier et al 2018; addx=2 keeps the n-way individuals in one pool and make all possible crosses within this one pool (random mating). Note that addx=1 is only available for basic design. While addx=2 is not restricted to just basic design, it is still not recommended for other designs.

Value

an object of "cross.info" class, i.e. a list of founder combinations (fcomb) and crossing plans (xplan).

Examples


mpop <- magic.basic(n=8)
mpop <- magic.reps(xinfo=mpop, reps=c(1,4,1))
mpop <- magic.addx(xinfo=mpop, addx=1, repx=3, selfx=3)



cjyang-sruc/magicdesign documentation built on March 19, 2022, 9:34 a.m.