Learn R Programming

NAM (version 1.7.3)

SNP H2: SNP heritability

Description

Calculates the ability of markers to carry a gene (Foneris et al. 2015). The index is also an indicator of Mendelian segregation.

Usage

snpH2(gen,K=NULL)

Arguments

gen

Numeric matrix containing the genotypic data. A matrix with \(n\) rows of observations and (\(m\)) columns of molecular markers.

K

Optional. Numeric matrix containing the genetic relationship matrix. A square and symmetric matrix (\(n\)x\(n\)) with the same observations as the matrix gen, also in the same order. If not provided, the kinship matrix is estimated from the genotypic matrix.

Value

Numeric vector containing the heritability of each markers. Foneris et al. (2015) recommends to avoid using markers with index lower than 0.98.

References

Forneris, N. S., Legarra, A., Vitezica, Z. G., Tsuruta, S., Aguilar, I., Misztal, I., & Cantet, R. J. (2015). Quality Control of Genotypes Using Heritability Estimates of Gene Content at the Marker. Genetics 199(3):675-681.

Examples

Run this code
# NOT RUN {
data(tpod)
Heritability=snpH2(gen)
plot(Heritability,chr=chr)
# }

Run the code above in your browser using DataLab