| LDtrait | 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.
LDtrait(rs, r2 = c("r2", "d"), pop = "GBR", LDlinktoken, min.r2 = 0.1)
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  | 
known variants in GWAS Catalog (including those in LD), If no variant is identified a data frame populated by NA is returned instead
Alessia Visconti
LDtrait("rs123", "r2", "GBR", "n0tw0rk1ng", min.r2=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.