| LDproxy | R Documentation | 
Uses LDproxy Programmatic Access via API (https://ldlink.nci.nih.gov/?tab=ldproxy). LDproxy allows extracting all SNPs in LD with an r2 of at least min.r2 and at a maximun distance of max.distance. It processes one SNP at a time. According to the LDLink CoC, this script should be run sequentially.
LDproxy(
  rs,
  r2 = c("r2", "d"),
  pop = "GBR",
  LDlinktoken,
  min.r2 = 0.01,
  max.distance = 5e+05
)
rs | 
 reference SNP ID  | 
r2 | 
 whether use r2 or D' (use "r2" and "d", respectively)  | 
pop | 
 population (multiple populations should be formatted as pop1%2pop2%2pop3)  | 
LDlinktoken | 
 personal token (request via https://ldlink.nci.nih.gov/?tab=apiaccess)  | 
min.r2 | 
 minum LD (r2) to return  | 
max.distance | 
 maximun distance (in bp) to return  | 
SNPs that are proxies for the given SNP. If no SNPs is identified a data frame populated by NA is returned instead
Alessia Visconti
LDproxy("rs123", "r2", "GBR", "n0tw0rk1ng", min.r2=0.8, max.distance=500000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.