ensemblQueryLDwithSNPpairDataframe: 'ensemblQueryLDwithSNPpairDataframe' applies...

View source: R/ensemblQueryLDpairEndpoint.R

ensemblQueryLDwithSNPpairDataframeR Documentation

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

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.

Value

A dataframe.

Examples

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


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