selCritGRM: selCritGRM function

Description Usage Arguments Details Value Examples

View source: R/AnalysisFunctions.R

Description

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

Usage

1
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)

Details

Accesses all individuals in records to pick the highest ones

Value

Character vector of the ids of the selected individuals

Examples

1
2
candidates <- records[[1]][[1]]@id
parents <- records[[1]][[1]][selCritGRM(records, candidates, bsp, SP)]

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