Description Usage Arguments Details Value References
Compute pairwise LD between markers with PLINK
1 2 3 |
prefix |
a pointer to a PLINK fileset (of class |
dprime |
logical; if |
index.snp |
name of the marker used to anchor the calculation |
markers |
compute all pairwise LD values between markers in this list |
chr |
limit analysis to this chromosome |
from |
with |
to |
with |
window |
(ignored) |
window.r2 |
keep calculating until pairwise LD falls below this threshold |
flags |
command-line flags passed directly to underlying PLINK call |
... |
ignored |
Linkage disequlibrium (LD) is estimated here via the squared genetic correlation (r^2) between loci. Since the size of the output scales with the square of the number of markers and can easily grow to gigabytes for a dataset with >10k markers, it is highly recommended to limit the calculation using the parameters above.
See the relevant PLINK documentation for details of the underlying calculations.
a data.table
of pairwise LD values, one marker pair per row
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.
Lewontin RC (1960) The interaction of selection and linkage. I. General considerations; heterotic models. Genetics 49(1): 49-67.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.