ensemblQueryLDwithSNPpair: Function to query Ensembl LD data with a pair of rsIDs. This...

View source: R/ensemblQueryLDpairEndpoint.R

ensemblQueryLDwithSNPpairR Documentation

Function to query Ensembl LD data with a pair of rsIDs. This function will return r-squared and D' values for the rsID pair.

Description

Function to query Ensembl LD data with a pair of rsIDs. This function will return r-squared and D' values for the rsID pair.

Usage

ensemblQueryLDwithSNPpair(rsid1, rsid2, pop = "1000GENOMES:phase_3:EUR")

Arguments

rsid1

String. Variant ID 1.

rsid2

String. Variant ID 2.

pop

String. Population for which to compute LD. Use 'ensemblQueryGetPops()' to retrieve a list of all populations with LD data. Default is 1000GENOMES:phase_3:EUR.

Value

A dataframe.

Examples

ensemblQueryLDwithSNPpair(
  rsid1="rs6792369",
  rsid2="rs1042779",
  pop="1000GENOMES:phase_3:EUR"
)


ensemblQueryR documentation built on May 31, 2023, 6:38 p.m.