LDpair | R Documentation |
Uses LDlink Programmatic Access via API (https://ldlink.nci.nih.gov/?tab=ldpair). LDlink allows extracting LD between two given SNPs in a given population. According to the LDLink CoC, this script should be run sequentially.
LDpair(rs1, rs2, pop = "GBR", LDlinktoken)
rs1 |
reference SNP IDs for the first variant |
rs2 |
reference SNP IDs for the second variant |
pop |
population (multiple populations should be formatted as pop1%2pop2%2pop3) |
LDlinktoken |
personal token (request via https://ldlink.nci.nih.gov/?tab=apiaccess) |
LD between the two given SNPs in the given population, or NA if one or both of the SNPs is not found
Alessia Visconti
LDpair("rs123", "rs456", "GBR", "n0tw0rk1ng")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.