genMatrix | R Documentation |
Derive genetic matrices from Jacquard condensed identity coefficients or genotypic data.
genMatrix(x)
x |
An object of |
AA |
Additive genetic matrix. |
DD |
Dominance genetic matrix. |
AD,HH,MH |
Other three genetic matrices (see Abney et. al. 2000). |
ib |
Inbreeding coefficients. |
Abney, M., M. S. McPeek, and C. Ober (2000). Estimation of variance components of quantitative traits in inbred populations. Am. J. Hum. Genet. 141, 629-650.
cic
data(miscEx)
ids<- sample(pedF8$id[300:500],20)
## Not run:
# get condensed identity coefficients
oo<- cic(pedF8, ids=ids, df=0)
ksp<- kinship(pedF8, ids=ids) # kinship coefficients only
# extract genetic matrices
gm<- genMatrix(oo)
sum((gm$AA-2*ksp)>1e-7) # same results
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.