Skip to contents

This service returns information about reference genes. A genome build and GENCODE version must be provided.

  • Genes are searchable by gene symbol, GENCODE ID and versioned GENCODE ID.

  • Versioned GENCODE ID is recommended to ensure unique ID matching.

  • By default, this service queries the genome build and GENCODE version used by the latest GTEx release.

GTEx API Portal documentation

Usage

get_genes(
  geneIds,
  gencodeVersion = "v26",
  genomeBuild = "GRCh38/hg38",
  page = 0,
  itemsPerPage = 250
)

Arguments

geneIds

A character vector of gene symbols, versioned gencodeIds, or unversioned gencodeIds.

gencodeVersion

String (default = "v26"). GENCODE annotation release. Either "v26" or "v19".

genomeBuild

String. Options: "GRCh38/hg38", "GRCh37/hg19". Default = "GRCh38/hg38".

page

Integer (default = 0).

itemsPerPage

Integer (default = 250).

Value

A tibble

Examples

# \dontrun{
get_genes(c("CRP", "IL6R"))
#> 
#> ── Paging info ─────────────────────────────────────────────────────────────────
#>  numberOfPages = 1
#>  page = 0
#>  maxItemsPerPage = 250
#>  totalNumberOfItems = 2
#> # A tibble: 2 × 15
#>   chromosome dataSource description    end entrezGeneId gencodeId gencodeVersion
#>   <chr>      <chr>      <chr>        <int> <chr>        <chr>     <chr>         
#> 1 chr1       HAVANA     interleuki… 1.54e8 3570         ENSG0000… v26           
#> 2 chr1       HAVANA     C-reactive… 1.60e8 1401         ENSG0000… v26           
#> # ℹ 8 more variables: geneStatus <chr>, geneSymbol <chr>,
#> #   geneSymbolUpper <chr>, geneType <chr>, genomeBuild <chr>, start <int>,
#> #   strand <chr>, tss <int>
# }