Description Usage Arguments Details Value References
Compute realized kinship matrix (aka GRM) with PLINK
1 2 | kinship.plink(prefix, method = "--distance square 1-ibs", flags = "",
prune = FALSE, ...)
|
prefix |
a pointer to a PLINK fileset (of class |
method |
command-line flags for |
flags |
command-line flags passed directly to underlying PLINK call |
prune |
logical; if |
... |
ignored |
See the relevant PLINK documentation for details of the underlying calculations. The default is to compute the 'Mahnattan distance' between samples, ie. 1 minus the mean number alleles shared identical-by-state across all markers.
a square matrix of genetic distances (or similarities), with row and column names equal to the sample IDs
PLINK v1.9: https://www.cog-genomics.org/plink2
Purcell S et al. (2007) PLINK: a toolset for whole-genome association and population-based linkage analysis. Am J Hum Genet 81(3): 559-575. doi:10.1086/519795.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.