coancestry2relmat: Genetic relatedness

View source: R/quantgen.R

coancestry2relmatR Documentation

Genetic relatedness

Description

Reformat the output of related::coancestry (http://frasierlab.wordpress.com/software/) into a matrix. By default, off-diagonal elements correspond to coancestry coefficients between two genotypes, and each diagonal element corresponds to (1 + f) / 2 where f corresponds to the inbreeding coefficient of the given genotype. To learn more about genetic relatedness, see Weir et al (2006), Astle & Balding (2009) and Legarra (2016).

Usage

coancestry2relmat(
  x,
  estim.coancestry,
  estim.inbreeding = NULL,
  rel.type = "coancestries",
  debug = FALSE
)

Arguments

x

list returned by related::coancestry

estim.coancestry

name of the coancestry estimator (e.g. "dyadml") as used in related::coancestry

estim.inbreeding

name of the inbreeding estimator (e.g. "LR") as used in related::coancestry

rel.type

type of relatedness, "coancestries" or "relationships" (i.e. 2 x coancestries)

debug

boolean (TRUE to check the output matrix is indeed symmetric)

Value

matrix

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.