magic.self: Add selfing after crossing.

View source: R/magic_self.R

magic.selfR Documentation

Add selfing after crossing.

Description

This function takes the "cross.info" object and add selfing after crosses. In the usual design, the only selfing is the single-seed descent after the last crossing generation.

Usage

magic.self(xinfo, self)

Arguments

xinfo

an object of "cross.info" class.

self

a vector of number of selfing generations after each crossing generation.

Value

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

Examples


mpop <- magic.partial(n=8, m=1, balanced=TRUE)
mpop <- magic.self(xinfo=mpop, self=c(0,0,3))



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