Calculate Realized Genomic Relationship Matrices
Dataframe or matrix with individuals in rows and markers in columns. Markers should be encoded in minor-allele dosage format (i.e. 0 = homozygous for major allele, 1 = heterozygous, 2 = homozygous for minor allele).
String to select the method to use for calculating the relationship matrix. Available methods are:
This function is adapted from an example from Chapter 11 of Genetic Data Analysis for Plant and Animal Breeding, by Isik, Holland and Maltecca, 2017 (DOI 10.1007/978-3-319-55177-7). However, their code is more complex, as it includes one additional computation method that uses observed pedigree data, and it outputs both realized genetic and additive relationships. This function only returns the realized genetic relationship matrix.
The full realized genetic relationship matrix (G)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.