function to make a genomic relationship matrix to be used to analyze the phenotypic records

makeGRM(records, bsp, SP)

Arguments

records

The breeding program records object. See fillPipeline for details

bsp

The breeding scheme parameter list

SP

The AlphaSimR SimParam object. Needed to pull the SNP genotypes

Value

A genomic relationship matrix

Details

records maintains the phenotypic and genotypic records across years and stages. For GEBV analysis, you need the GRM of these individuals. makeGRM assumes the first phenotyping stage (records[[2]]) has all individuals that have been phenotyped. The GRM also includes the unphenotyped new F1 individuals in records[[1]]

Examples

grm <- makeGRM(records, bsp, SP)
#> Error in makeGRM(records, bsp, SP): object 'records' not found