can be quried with a gene/variant-gene pair.

xQTLdownload_eqtl(
  variantName = "",
  gene = "",
  variantType = "auto",
  geneType = "auto",
  tissueSiteDetail = "",
  recordPerChunk = 100
)

Arguments

variantName

(character) name of variant, dbsnp ID and variant id is supported, eg. "rs138420351" and "chr17_7796745_C_T_b38".

gene

(character) gene symbol or gencode id (versioned or unversioned are both supported). Can not be null.

variantType

(character) options: "auto", "snpId" or "variantId". Default: "auto".

geneType

(character) options: "auto","geneSymbol" or "gencodeId". Default: "auto".

tissueSiteDetail

(character) details of tissues in GTEx can be listed using tissueSiteDetailGTExv8 or tissueSiteDetailGTExv7

recordPerChunk

(integer) number of records fetched per request (default: 100).

Value

A data.table object.

Examples

# \donttest{
# Download eQTL info with a gene symbol:
eqtlInfo <- xQTLdownload_eqtl(gene="TP53")

# Use unversioned gencode ID in GTEx V8:
eqtl_v8 <- xQTLdownload_eqtl(gene="ENSG00000141510")

# In a specific tissue:
xQTLdownload_eqtl(gene="ENSG00000141510", geneType="gencodeId",  tissueSiteDetail="Thyroid" )

# Download eQTL info with a variant-gene pair:
xQTLdownload_eqtl(variantName="rs1641513",gene="TP53")
xQTLdownload_eqtl(variantName="chr1_1667948_A_G_b38", gene="SLC35E2B",
                  tissueSiteDetail="Kidney - Cortex")
# }