Skip to contents

Find linkage disequilibrium (LD) data for a given gene.

This endpoint returns linkage disequilibrium data for the cis-eQTLs found associated with the provided gene in a specified dataset. Results are queried by gencode ID. By default, the service queries the latest GTEx release. Specify a dataset ID to fetch results from a different dataset.

GTEx Portal API documentation

Usage

get_linkage_disequilibrium_data(
  gencodeId,
  datasetId = "gtex_v8",
  page = 0,
  itemsPerPage = 250
)

Arguments

gencodeId

String. A Versioned GENCODE ID of a gene, e.g. "ENSG00000065613.9".

datasetId

String. Unique identifier of a dataset. Usually includes a data source and data release. Options: "gtex_v8", "gtex_snrnaseq_pilot".

page

Integer (default = 0).

itemsPerPage

Integer (default = 250).

Value

A tibble.

Examples

get_linkage_disequilibrium_data(gencodeId = "ENSG00000132693.12")
#> Warning: ! Total number of items (3558) exceeds maximum page size (250).
#>  Try increasing `itemsPerPage`.
#> 
#> ── Paging info ─────────────────────────────────────────────────────────────────
#>  numberOfPages = 15
#>  page = 0
#>  maxItemsPerPage = 250
#>  totalNumberOfItems = 3558
#> # A tibble: 250 × 3
#>    variantId_1            variantId_2                         ld
#>    <chr>                  <chr>                            <dbl>
#>  1 chr1_159230230_G_T_b38 chr1_159230339_A_C_b38           1    
#>  2 chr1_159230230_G_T_b38 chr1_159245536_C_T_b38           0.971
#>  3 chr1_159230230_G_T_b38 chr1_159302270_T_C_b38           0.717
#>  4 chr1_159230230_G_T_b38 chr1_159343657_A_T_b38           0.302
#>  5 chr1_159230230_G_T_b38 chr1_159344052_G_A_b38           0.300
#>  6 chr1_159230230_G_T_b38 chr1_159347493_G_A_b38           0.300
#>  7 chr1_159230230_G_T_b38 chr1_159350390_C_A_b38           0.300
#>  8 chr1_159230230_G_T_b38 chr1_159351189_G_A_b38           0.300
#>  9 chr1_159230230_G_T_b38 chr1_159359256_C_A_b38           0.302
#> 10 chr1_159230230_G_T_b38 chr1_159360755_ATACATAAGTG_A_b38 0.300
#> # ℹ 240 more rows