get_gene_search: Get Gene Search

View source: R/get_gene_search.R

get_gene_searchR Documentation

Description

Find genes that are partial or complete match of a gene_id

  • gene_id could be a gene symbol, a gencode ID, or an Ensemble ID

  • Gencode Version and Genome Build must be specified

GTEx Portal API documentation

Usage

get_gene_search(
  geneId,
  gencodeVersion = "v26",
  genomeBuild = "GRCh38/hg38",
  page = 0,
  itemsPerPage = getOption("gtexr.itemsPerPage"),
  .verbose = getOption("gtexr.verbose"),
  .return_raw = FALSE
)

Arguments

geneId

String. A gene symbol, a gencode ID, or an Ensemble ID.

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). Set globally to maximum value 100000 with options(list(gtexr.itemsPerPage = 100000)).

.verbose

Logical. If TRUE (default), print paging information. Set to FALSE globally with options(list(gtexr.verbose = FALSE)).

.return_raw

Logical. If TRUE, return the raw API JSON response. Default = FALSE

Value

A tibble. Or a list if .return_raw = TRUE.

See Also

Other Reference Genome Endpoints: get_exons(), get_genes(), get_genomic_features(), get_gwas_catalog_by_location(), get_neighbor_gene(), get_transcripts()

Examples

## Not run: 
get_gene_search("CRP")

## End(Not run)

gtexr documentation built on June 8, 2025, 10:26 a.m.