optContrib: optContrib function

Description Usage Arguments Details Value Examples

View source: R/PopulationImprovement.R

Description

function uses optiSel to identify number of progeny, allocate mates to minimize inbreeding depression, and return progeny NOTE: This function assumes that all selection candidates have been genotyped If stageToGenotype has been set to a later stage, that might not be true

Usage

1
optContrib(records, bsp, SP, crit)

Arguments

records

The breeding program records object. See fillPipeline for details

bsp

A list of product pipeline parameters

SP

The AlphaSimR SimParam object (needed to pull SNPs)

crit

Named vector of selection criterion to be maximized

Details

Calculate a grm of individuals with high enough crit, then maximize crit subject to a target increase of relatedness consistent with bsp$targetEffPopSize

Value

Pop class object with the progeny from optimum contribution crosses

Examples

1
2
crit <- bv(records$F1); names(crit) <- records$F1@id
progeny <- optContrib(records, bsp, SP, crit)

jeanlucj/AlfSimHlpR documentation built on Nov. 7, 2021, 5:10 p.m.