Find normalized gene expression data.
Returns normalized gene expression in tissues at the sample level.
Results may be filtered by dataset, gene or tissue, but at least one gene must be provided.
By default, this service queries the latest GTEx release.
Usage
get_gene_expression(
gencodeIds,
datasetId = "gtex_v8",
tissueSiteDetailIds = NULL,
attributeSubset = NULL,
page = 0,
itemsPerPage = 250
)
Arguments
- gencodeIds
A character vector of Versioned GENCODE IDs, e.g. c("ENSG00000132693.12", "ENSG00000203782.5").
- datasetId
String. Unique identifier of a dataset. Usually includes a data source and data release. Options: "gtex_v8", "gtex_snrnaseq_pilot".
- tissueSiteDetailIds
Character vector of IDs for tissues of interest. Can be GTEx specific IDs (e.g. "Whole_Blood"; use
get_tissue_site_detail()
to see valid values) or Ontology IDs.- attributeSubset
String. Examples include but are not limited to "sex", "ageBracket"
- page
Integer (default = 0).
- itemsPerPage
Integer (default = 250).
See also
Other Expression Data Endpoints:
get_clustered_median_exon_expression()
,
get_clustered_median_gene_expression()
,
get_clustered_median_junction_expression()
,
get_clustered_median_transcript_expression()
,
get_expression_pca()
,
get_median_exon_expression()
,
get_median_gene_expression()
,
get_median_junction_expression()
,
get_median_transcript_expression()
,
get_single_nucleus_gex()
,
get_single_nucleus_gex_summary()
,
get_top_expressed_genes()
Examples
# \dontrun{
# multiple genes, selected tissues
get_gene_expression(gencodeIds = c("ENSG00000132693.12",
"ENSG00000203782.5"),
tissueSiteDetailIds = c("Thyroid", "Whole_Blood"))
#>
#> ── Paging info ─────────────────────────────────────────────────────────────────
#> • numberOfPages = 1
#> • page = 0
#> • maxItemsPerPage = 250
#> • totalNumberOfItems = 4
#> # A tibble: 4 × 8
#> data tissueSiteDetailId ontologyId datasetId gencodeId geneSymbol unit
#> <list> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 <dbl [653]> Thyroid UBERON:00… gtex_v8 ENSG0000… LOR TPM
#> 2 <dbl [755]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… LOR TPM
#> 3 <dbl [653]> Thyroid UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 4 <dbl [755]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> # ℹ 1 more variable: subsetGroup <lgl>
# single gene, selected (single) tissue
get_gene_expression(gencodeIds = "ENSG00000132693.12",
tissueSiteDetailIds = "Whole_Blood")
#>
#> ── Paging info ─────────────────────────────────────────────────────────────────
#> • numberOfPages = 1
#> • page = 0
#> • maxItemsPerPage = 250
#> • totalNumberOfItems = 1
#> # A tibble: 1 × 8
#> data tissueSiteDetailId ontologyId datasetId gencodeId geneSymbol unit
#> <list> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 <dbl [755]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> # ℹ 1 more variable: subsetGroup <lgl>
# subset by sex
get_gene_expression(gencodeIds = "ENSG00000132693.12",
tissueSiteDetailIds = "Whole_Blood",
attributeSubset = "sex")
#>
#> ── Paging info ─────────────────────────────────────────────────────────────────
#> • numberOfPages = 1
#> • page = 0
#> • maxItemsPerPage = 250
#> • totalNumberOfItems = 1
#> # A tibble: 2 × 8
#> data tissueSiteDetailId ontologyId datasetId gencodeId geneSymbol unit
#> <list> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 <dbl [501]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 2 <dbl [254]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> # ℹ 1 more variable: subsetGroup <chr>
# subset by age bracket
get_gene_expression(gencodeIds = "ENSG00000132693.12",
tissueSiteDetailIds = "Whole_Blood",
attributeSubset = "ageBracket")
#>
#> ── Paging info ─────────────────────────────────────────────────────────────────
#> • numberOfPages = 1
#> • page = 0
#> • maxItemsPerPage = 250
#> • totalNumberOfItems = 1
#> # A tibble: 6 × 8
#> data tissueSiteDetailId ontologyId datasetId gencodeId geneSymbol unit
#> <list> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 <dbl [68]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 2 <dbl [68]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 3 <dbl [113]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 4 <dbl [234]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 5 <dbl [249]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> 6 <dbl [23]> Whole_Blood UBERON:00… gtex_v8 ENSG0000… CRP TPM
#> # ℹ 1 more variable: subsetGroup <chr>
# }