I want a map a set of Entrez gene ids to Ensembl gene ids. I came across some posts that mention about mapping Ensembl ids to Entrez ids using Biomart. I am not sure how to do the mapping the other way round.
I would like to do this programmatically. Any suggestions on how the mapping can be done?
Thanks a lot for the response. I have tired the above in R. When
entrezgene = ("3098")
the code works fine.When the input is changed to
entrezgene = ("3098","728642|982")
, the following error occursAlso, I am not sure how to map cases like this ""728642|982" which is present in my input data containing list of entrez gene ids.
Any suggestions?
I don't know where your data is coming from but a pipe symbol i.e. |, is often used to delimit two pieces of data related to the same item, here two IDs relating to the same gene. The error you're getting is because you have a syntax error. In R, a vector is specified with c(), i.e. entrezgene = c("3098","728642|982").