R SBGNview - can't change data ID even though format is correct
1
1
Entering edit mode
3.3 years ago
garfield320 ▴ 20

I'm using the SBGNview package in R to visualize Reactome pathways, and am having problem with converting my gene IDs to pathwayCommons IDs.

Below is what I'm doing:

library(SBGNview)
library(org.Mmu.eg.db)
data("sbgn.xmls")

A <- matrix(c(1:20), nrow = 10, ncol = 2, byrow = TRUE)
colnames(A) <- c("exp1", "exp2")
rownames(A) <- c(57279, 18673, 11747, 240028, 13200, 67041, 67025, 73130, 54127, 14387)

changeDataId(data.input.id = A, input.type = "entrez", output.type = "pathwayCommons",
         mol.type = "gene", org = "mmu")

This gives me the error:

Error in mol.sum.multiple.mapping(mol.data = data.input.id, id.map = id.map,  : 
  no ID can be mapped!

However, I'm confused because I can find my entrez IDs in the mmu_pathwayCommons_ENTREZID database. For example, if I run the code below, I can find my ID in the database that I believe the changeDataID function uses.

>which(mmu_pathwayCommons_ENTREZID[,2] == "14387")
609645 609647 609649 
609645 609647 609649 

So why am I having trouble with converting the IDs?

pathway SBGNview R • 950 views
ADD COMMENT
0
Entering edit mode
2.5 years ago
jdreyf ▴ 10

As per the documentation for output.type, pathwayCommons is not supported but e.g. ensembl is, and changeDataId(data.input.id = A, input.type = "entrez", output.type = "ensembl", mol.type = "gene", org = "mmu") worked for me. Incidentally, this automatically loaded package org.Mm.eg.db.

ADD COMMENT

Login before adding your answer.

Traffic: 2737 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

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

Powered by the version 2.3.6