A_mat: Additive relationship matrix from pedigree

View source: R/A_mat.R

A_matR Documentation

Additive relationship matrix from pedigree

Description

Additive relationship matrix from pedigree

Usage

A_mat(ped, ploidy, order.ped = TRUE)

Arguments

ped

Pedigree in three column format: id, mother, father

ploidy

2 or 4

order.ped

TRUE/FALSE does the pedigree need to be ordered so that progeny follow parents

Details

This is a wrapper that prepares the pedigree in the format required for R package AGHmatrix by Amadeu et al. (2016) (cite them if you use this function). A random bivalents model for tetraploid meiosis is assumed.

Value

Additive relationship matrix (dim: indiv x indiv)

References

Amadeu et al. (2016) Plant Genome 9, doi:10.3835/plantgenome2016.01.0009


jendelman/polyBreedR documentation built on Jan. 5, 2025, 12:13 a.m.