retrieveLD | R Documentation |
Note: This function comes from boxiangliu/locuscomparer. If you used this function, please cite the following paper: https://www.nature.com/articles/s41588-019-0404-0 SNP pairwise lD are calculated based on 1000 Genomes Project Phase 3 version 5. For storage-efficiency, the output will only include SNPs with r2 > 0.2 with the input SNP.
retrieveLD(chr, snp, population)
chr |
(string) Chromosome name. e.g. '22'. Notice that the name should not contain 'chr'. |
snp |
(string) SNP rsID. |
population |
(string) One of the 5 popuations from 1000 Genomes: 'AFR', 'AMR', 'EAS', 'EUR', and 'SAS'. |
A data.frame object.
ld <- retrieveLD('6', 'rs9349379', 'AFR')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.