read_plink2_king | R Documentation |
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
read_plink2_king(file)
file |
Input file path |
A tibble containing the 6 columns from the plink2 --make-king-table
output.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.