Skip to content
Back to formatted view

Raw Message

Message-ID: <517A5DC08F772349AB76C48A25FC0B61C8F140@KIMSX01.user.ki.se>
Date: 2012-05-07T07:30:43Z
From: Setia Pramana
Subject: [Bioc-devel]  KEGG.db

Hi All,

I am developing a new package using the info from KEGG.db. I used the following command to map  KEGG pathway identifiers to Entrez Gene:

  mapped.genes <-as.list(KEGGPATHID2EXTID)  

When I run the function  as an R package, I have the following error msg:

Error in as.list.default(KEGGPATHID2EXTID) : 
  no method for coercing this S4 class to a vector

However when I run not as a package (like normal R function), the function works well.

Please help me to find out what may be the problem.
Thank you in advance for your help.

Best,
Setia 
MEB KI Stockholm