center_kinship {gemma2} | R Documentation |
Center a relatedness matrix, after Zhou's GEMMA function CenterMatrix
Description
Center a relatedness matrix, after Zhou's GEMMA function CenterMatrix
Usage
center_kinship(mat)
Arguments
mat |
a relatedness matrix |
Value
a centered relatedness matrix
Examples
readr::read_tsv(system.file("extdata",
"mouse100.cXX.txt",
package = "gemma2"),
col_names = FALSE)[, 1:100] -> kinship
e_out <- eigen2(as.matrix(kinship))
center_kinship(as.matrix(kinship)) -> kinship_centered
[Package gemma2 version 0.1.3 Index]