View source: R/decomp_kinship.R
decomp_kinship | R Documentation |
Calculate the eigen decomposition of a kinship matrix, or of a list of such matrices.
decomp_kinship(kinship, cores = 1)
kinship |
A square matrix, or a list of square matrices. |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
The result contains an attribute "eigen_decomp"
.
The eigen values and the transposed eigen vectors,
as a list containing a vector values
and a matrix
vectors
.
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
map <- insert_pseudomarkers(iron$gmap, step=1)
probs <- calc_genoprob(iron, map, error_prob=0.002)
K <- calc_kinship(probs)
Ke <- decomp_kinship(K)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.