How to create bimap with getAnnMap using ENSEMBL ids instead of ENTREZ?
Entering edit mode
6.3 years ago

I was using objects to create an annotation map with annotate package in a following way: symbol.bimap <- getAnnMap("SYMBOL", ""). By default, the returned bimap uses ENTREZ ids as keys. I want to use ENSEMBL ids as keys, but apparently getAnnMap does not allow for that (and I need a bimap object downstream). This link suggested to use EnsDb objects from ensembldb package, but I cannot somehow get EnsDb object to work with getAnnMap function. Returned error is:

getAnnMap("SYMBOL", "EnsDb.Hsapiens.v86")
Error in .select(x = x, keys = keys, columns = columns, keytype = keytype,  : 
  Argument keytype is mandatory if keys is a character vector!

Is there any straightforward way to return a bimap between ENSEMBL and SYMBOL keys, or I need to create it via other functions (mapIds or what not)?

R Bioconductor annotation • 1.7k views

Login before adding your answer.

Traffic: 2450 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6