makeGRM: makeGRM function

Description Usage Arguments Details Value Examples

View source: R/AnalysisFunctions.R

Description

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

Usage

1
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

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]]

Value

A genomic relationship matrix

Examples

1
grm <- makeGRM(records, bsp, SP)

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