read_plink2_king {skater} | R Documentation |
Read PLINK KING table
Description
Reads in the output from plink2 --make-king-table
(documentation).
Input file
must have six columns, tab delimited:
id1 (member 1)
id2 (member 2)
nsnps
hethet: proportion of sites where both are heterozygous
k: Kinship Coefficient
Usage
read_plink2_king(file)
Arguments
file |
Input file path |
Value
A tibble containing the 6 columns from the plink2 --make-king-table
output.
References
https://www.cog-genomics.org/plink/2.0/distance#make_king
Examples
plink2kingFile <- system.file("extdata", "plink2-king-table.tsv", package="skater", mustWork=TRUE)
plink2king <- read_plink2_king(plink2kingFile)
plink2king
plink2king %>% dplyr::filter(k>0.01)
[Package skater version 0.1.2 Index]