Learn R Programming

ensemblQueryR (version 0.1.0)

ensemblQueryLDwithSNPpairDataframe: `ensemblQueryLDwithSNPpairDataframe` applies `ensemblQueryLDwithSNPpair` to a data.frame of rsID pairs

Description

`ensemblQueryLDwithSNPpairDataframe` applies `ensemblQueryLDwithSNPpair` to a data.frame of rsID pairs

Usage

ensemblQueryLDwithSNPpairDataframe(
  in.table,
  pop = "1000GENOMES:phase_3:EUR",
  cores = 1
)

Value

A dataframe.

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.

cores

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

Examples

Run this code
ensemblQueryLDwithSNPpairDataframe(
 in.table=data.frame(rsid1=rep("rs6792369", 10),
                     rsid2=rep("rs1042779", 10)),
                     pop="1000GENOMES:phase_3:EUR"
)

Run the code above in your browser using DataLab