read_kinship_matrix: read a tab-delimited kinship matrix into a tidy tibble of rxy...

Description Usage Arguments Examples

View source: R/read_kinship_matrix.R

Description

It has to be the full symmetric matrix. Can't be the lower half. Males have to be named "MXXX" and females "FXXX" where XXX are some numbers or characters or whatever. The main thing is that females have to start with an F and males with an M.

Usage

1
read_kinship_matrix(path, skip = 6)

Arguments

path

path to the file

skip

number of lines to skip in the beginning This forces the first column to be a female and the second a male. So, our null distribution will be between males and females (not between females and females, for exmample).

Examples

1
kfile <- system.file("extdata/IGH_W1718_master_Kinsh_res.txt.gz", package = "CohoBroodstock")

eriqande/CohoBroodstock documentation built on June 2, 2020, 3:09 a.m.