Skip to contents

This endpoint retrieves the functional annotation of a certain chromosome location. Default to most recent dataset release.

GTEx Portal API documentation

Usage

get_functional_annotation(
  datasetId = "gtex_v8",
  chromosome,
  start,
  end,
  page = 0,
  itemsPerPage = 250
)

Arguments

datasetId

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

chromosome

String. One of "chr1", "chr2", "chr3", "chr4", "chr5", "chr6", "chr7", "chr8", "chr9", "chr10", "chr11", "chr12", "chr13", "chr14", "chr15", "chr16", "chr17", "chr18", "chr19", "chr20", "chr21", "chr22", "chrM", "chrX", "chrY".

start

Integer.

end

Integer.

page

Integer (default = 0).

itemsPerPage

Integer (default = 250).

Value

A tibble

Examples

# \dontrun{
  get_functional_annotation(chromosome = "chr1", start = 192168000, end = 192169000)
#> 
#> ── Paging info ─────────────────────────────────────────────────────────────────
#>  numberOfPages = 1
#>  page = 0
#>  maxItemsPerPage = 250
#>  totalNumberOfItems = 3
#> # A tibble: 3 × 23
#>   variantId         enhancer promoter openChromatinRegion promoterFlankingRegion
#>   <chr>             <lgl>    <lgl>    <lgl>               <lgl>                 
#> 1 chr1_192168015_T… TRUE     FALSE    FALSE               FALSE                 
#> 2 chr1_192168266_T… TRUE     FALSE    FALSE               FALSE                 
#> 3 chr1_192168728_T… FALSE    FALSE    FALSE               FALSE                 
#> # ℹ 18 more variables: ctcfBindingSite <lgl>, tfBindingSite <lgl>,
#> #   `3PrimeUtrVariant` <lgl>, `5PrimeUtrVariant` <lgl>,
#> #   frameshiftVariant <lgl>, intronVariant <lgl>, missenseVariant <lgl>,
#> #   nonCodingTranscriptExonVariant <lgl>, spliceAcceptorVariant <lgl>,
#> #   spliceDonorVariant <lgl>, spliceRegionVariant <lgl>, stopGained <lgl>,
#> #   synonymousVariant <lgl>, chromosome <chr>, pos <int>, ref <chr>, alt <chr>,
#> #   datasetId <chr>
# }