8

Well, I'm trying to convert a list of Human Gene referenced by Ensembl Gene IDs to Entrez Gene IDs. I have been advised to use biomart.

I tried to get a kind of conversion table for all human genes. I don't know if my settings are wrong, but I didn't find any checkbox for Entrez Gene Id in the section Attributes > External References. I've just found the Entrez transcript name ID (see below), but it's not what I need.

enter image description here

How can I use biomart for such a conversion?

Edit:

According to this video tutorial EntrezGene ID should be an option in biomart (see screenshot below).

That video tutorial is outdated.

floatingpurr
  • 315
  • 1
  • 2
  • 7

2 Answers2

8

The ID you need is the NCBI gene ID, which is the same as the EntrezGene ID.

Ian Sudbery
  • 3,311
  • 1
  • 11
  • 21
  • Thank you Ian, it seems working. Anyway, there is no a one-to-one matching (i.e., some Ensembl IDs do not have an NCBI counterpart). Is it normal? – floatingpurr Sep 06 '17 at 11:29
  • 1
    Yes. See my answer to your other question. https://bioinformatics.stackexchange.com/a/2474/235 – Ian Sudbery Sep 06 '17 at 11:59
8

Conversion using R:

library(biomaRt)

mart <- useDataset("hsapiens_gene_ensembl", useMart("ensembl"))

genes &lt;- getBM(
  filters=&quot;ensembl_gene_id&quot;,
  attributes=c(&quot;ensembl_gene_id&quot;, &quot;entrezgene_id&quot;),
  values=ensembl.genes,
  mart=mart)

Where ensembl.genes is a vector of Ensembl gene IDs.

justinian482
  • 345
  • 1
  • 14
Peter
  • 2,634
  • 15
  • 33
  • 3
    As of 2021-08-05, the attributes argument should be set to attributes = c("ensembl_gene_id", "entrezgene_id"). I believe that the "_id" appendage has been added to the attribute since this answer was first posted. – Gabriel J. Odom Aug 05 '21 at 22:23