Skip to contents

Resolve a gene to GTEx's versioned GENCODE id

Usage

gtex_gene_reference(gene, ...)

Arguments

gene

A gene symbol or an Ensembl gene id.

...

Passed to biohttp::get_json(), for example throttle.

Value

A biohttp envelope whose data is the tibble described in gtex_parse_reference().

Why this call exists

GTEx expression queries need a versioned GENCODE id such as ENSG00000141510.16. MyGene and most other sources return the unversioned ENSG00000141510, and GTEx returns nothing for it. There is no way to derive the version, so it has to be looked up here first.

This is the reason a GTEx expression lookup costs two requests.

Examples

if (FALSE) { # \dontrun{
biohttp::body_or_null(gtex_gene_reference("TP53"))$gencode_id
} # }