ensembl_id_2_entrez: Convenient converter from ensembl ID to entrez ID

View source: R/biomart_utils.R

ensembl_id_2_entrezR Documentation

Convenient converter from ensembl ID to entrez ID

Description

Convenient converter from ensembl ID to entrez ID

Usage

ensembl_id_2_entrez(
  ensembl_gene_id,
  only_entrez = TRUE,
  verbose = FALSE,
  mRt_objct = ensembl
)

Arguments

ensembl_gene_id

A character specifying the ENSEMBL gene ID

only_entrez

Logical, whether to return only the gene name or a data.frame with more info. Default TRUE

verbose

Logical. Do you want me to be chatty?

mRt_objct

A biomaRt object created with the gimme_mart() function.

Value

A character corresponding to an entrez ID or a data.frame.

Examples

# Example with human ensembl
ensembl <- gimme_mart()
ensembl_id_2_gene_name("ENSG00000000003")
"7105"
# Example with mouse ensembl
ensembl <- gimme_mart(species = "mmusculus", latest = T, use_mirror = F, 
                      out_dir = F, verbose = T)
ensembl_id_2_entrez("ENSMUSG00000067377")
"56496"

Ni-Ar/niar documentation built on Feb. 3, 2025, 9:25 a.m.