Entering edit mode
Stuart Bradley
▴
40
@stuart-bradley-6131
Last seen 10.2 years ago
Hello all,
I'm trying to build unified compound pathway maps, and have been
successful
using this method:
library(graph)
library(KEGGgraph)
KEGGList <- list.files(path = "C:/Users/Castor
Castle/Documents/kgml/metabolic/ko/subset/", full.names = TRUE)
AllGraphs <- lapply(KEGGList, function(x) {
pathway <- parseKGML(x)
pathway <- KEGGpathway2reactionGraph(pathway, uniqueReaction =
FALSE)
})
FinalGraph <- mergeGraphs(AllGraphs, edgemode = "directed")
However, I'd like to be able to use mergeKEGGgraphs as it retains more
information. The problem is that when I replace mergeGraphs with
mergeKEGGgraphs
I get the following error (regardless of whether it's my own files, or
the
example ones provided):
Error in .verifyAttrName(attr, names(self@defaults)):
unknown attribute name: KEGGNode
Has anyone found a work around for this? I was fiddling with
setKEGGnodeData/setKEGGEdgeData in conjunction with mergeGraphs, but I
can't get it to work.
Any help would be greatly appreciated.
Cheers,
Stuart Bradley
[[alternative HTML version deleted]]