Question: How to create bimap with getAnnMap using ENSEMBL ids instead of ENTREZ?
gravatar for Pawel Szczesny
2.6 years ago by
Pawel Szczesny3.2k
Pawel Szczesny3.2k wrote:

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)?

annotation bioconductor R • 901 views
ADD COMMENTlink modified 2.6 years ago • written 2.6 years ago by Pawel Szczesny3.2k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 819 users visited in the last hour