grex: Gene ID Mapping for Genotype-Tissue Expression (GTEx) Data

Description Usage Arguments Value Examples

View source: R/grex.R

Description

Map Ensembl IDs to Entrez Gene ID, HGNC symbol, and UniProt ID, with basic annotation information such as gene type.

Usage

1
grex(ensembl_id)

Arguments

ensembl_id

Character vector of Ensembl IDs

Value

This function returns a data frame with the same number of rows as the length of input Ensembl IDs, containing:

The elements that cannot be mapped will be NA.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Ensembl IDs in GTEx v6p gene count data
data("gtexv6p")
# select 100 IDs as example
id <- gtexv6p[101:200]
df <- grex(id)
# Rows that have a mapped Entrez ID
df[
  !is.na(df$"entrez_id"),
  c("ensembl_id", "entrez_id", "gene_biotype")
]

road2stat/grex documentation built on Dec. 30, 2021, 2:21 a.m.