h_ensembl_to_entrez_ids: Translation of 'Ensembl' to 'Entrez' Gene IDs

View source: R/connections.R

h_ensembl_to_entrez_idsR Documentation

Translation of Ensembl to Entrez Gene IDs

Description

[Experimental]

This helper function queries BioMart to translate Ensembl to Entrez Gene IDs.

Usage

h_ensembl_to_entrez_ids(gene_ids, mart)

Arguments

gene_ids

(character)
Ensembl gene IDs.

mart

(Mart)
given biomaRt::Mart object.

Value

Character vector of Entrez gene IDs.

Examples

if (interactive()) {
  mart <- biomaRt::useMart("ensembl", dataset = "hsapiens_gene_ensembl")
  h_ensembl_to_entrez_ids(c("ENSG00000135407", "ENSG00000241644"), mart)
}

insightsengineering/hermes documentation built on Dec. 15, 2024, 8:07 a.m.