center_kinship: Center a relatedness matrix, after Zhou's GEMMA function...

Description Usage Arguments Value Examples

View source: R/center_kinship.R

Description

Center a relatedness matrix, after Zhou's GEMMA function CenterMatrix

Usage

1

Arguments

mat

a relatedness matrix

Value

a centered relatedness matrix

Examples

1
2
3
4
5
6
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

gemma2 documentation built on Oct. 24, 2020, 5:06 p.m.