ensemblQueryLDwithSNPwindowDataframe: 'ensemblQueryLDwithSNPwindowDataframe' applies...

View source: R/ensemblQueryLDwindowEndpoint.R

ensemblQueryLDwithSNPwindowDataframeR Documentation

'ensemblQueryLDwithSNPwindowDataframe' applies 'ensemblQueryLDwithSNPwindow' to a data.frame of rsIDs.

Description

'ensemblQueryLDwithSNPwindowDataframe' applies 'ensemblQueryLDwithSNPwindow' to a data.frame of rsIDs.

Usage

ensemblQueryLDwithSNPwindowDataframe(
  in.table,
  pop = "1000GENOMES:phase_3:EUR",
  r2 = NA,
  d.prime = NA,
  window.size = NA,
  cores = 1
)

Arguments

in.table

data.frame containing SNP pairs. Columns must include 'rsid1' for the first member of the pair and 'rsid2' for the second member of the pair.

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.

r2

Float. Measure of LD. If r-squared is provided only return pairs of variants whose r-squared value is equal to or greater than the value provided.

d.prime

Float. Measure of LD. If D' is provided only return pairs of variants whose D' value is equal to or greater than the value provided.

window.size

Integer. Window size in kb. The maximum allowed value for the window size is 500 kb. LD is computed for the given variant and all variants that are located within the specified window.

cores

Integer. A value between 1 and 10 is accepted, as this prevents the server returning overload-related errors.

Value

A dataframe.

Examples

## Not run: 
in.table = data.frame(rsid = rep(c("rs7153434","rs1963154","rs12672022",
                                   "rs3852802","rs12324408","rs56346870"), 5))

ensemblQueryLDwithSNPwindowDataframe(in.table=in.table,
                                     pop="1000GENOMES:phase_3:EUR",
                                     r2=0.8,
                                     d.prime=0.8,
                                     window.size=500,
                                     cores=1)

## End(Not run)

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