Skip to contents

Two requests: one to resolve the versioned GENCODE id, one for the expression. See gtex_gene_reference() for why the first is unavoidable.

Usage

gtex_median_expression(
  gene = NULL,
  gencode_id = NULL,
  dataset = GTEX_DATASET,
  ...
)

Arguments

gene

A gene symbol or an Ensembl gene id. Ignored when gencode_id is given.

gencode_id

A versioned GENCODE id, for example "ENSG00000141510.16".

dataset

The GTEx dataset. Must match the reference the id came from.

...

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

Value

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

Details

Pass gencode_id directly to skip the lookup when you already have a versioned id.

Examples

if (FALSE) { # \dontrun{
biohttp::body_or_null(gtex_median_expression("TP53"))
} # }