Learn R Programming

xQTLbiolinks (version 1.6.2)

retrieveLD: Retrieve SNP pairwise LD from locuscompare database

Description

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.

Usage

retrieveLD(chr, snp, population)

Value

A data.frame object.

Arguments

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'.

Examples

Run this code
ld <- retrieveLD('6', 'rs9349379', 'AFR')

Run the code above in your browser using DataLab