powered by
Reads in the output from plink2 --make-king-table (documentation). Input file must have six columns, tab delimited:
plink2 --make-king-table
file
id1 (member 1)
id2 (member 2)
nsnps
hethet: proportion of sites where both are heterozygous
k: Kinship Coefficient
read_plink2_king(file)
A tibble containing the 6 columns from the plink2 --make-king-table output.
Input file path
https://www.cog-genomics.org/plink/2.0/distance#make_king
plink2kingFile <- system.file("extdata", "plink2-king-table.tsv", package="skater", mustWork=TRUE) plink2king <- read_plink2_king(plink2kingFile) plink2king plink2king %>% dplyr::filter(k>0.01)
Run the code above in your browser using DataLab