coancestry2relmat | R Documentation |
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).
coancestry2relmat(
x,
estim.coancestry,
estim.inbreeding = NULL,
rel.type = "coancestries",
debug = FALSE
)
x |
list returned by |
estim.coancestry |
name of the coancestry estimator (e.g. "dyadml") as used in |
estim.inbreeding |
name of the inbreeding estimator (e.g. "LR") as used in |
rel.type |
type of relatedness, "coancestries" or "relationships" (i.e. 2 x coancestries) |
debug |
boolean (TRUE to check the output matrix is indeed symmetric) |
matrix
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.