function to select parents among individuals with phenotypes, assuming individual effects covary according to a GRM

selCritGRM(records, candidates, bsp, SP)

Arguments

records

The breeding program records object. See fillPipeline for details

candidates

Character vector of ids of the candidates to be parents

bsp

The breeding scheme parameter list

SP

The AlphaSimR SimParam object (needed to pull SNPs)

Value

Character vector of the ids of the selected individuals

Details

Accesses all individuals in records to pick the highest ones

Examples

candidates <- records[[1]][[1]]@id
#> Error in eval(expr, envir, enclos): object 'records' not found
parents <- records[[1]][[1]][selCritGRM(records, candidates, bsp, SP)]
#> Error in eval(expr, envir, enclos): object 'records' not found