combineKEGGnodes
combines nodes into a group in a KEGG pathway
graph.
reaction2edge
converts reactions into edges in KEGG pathway
graph.
combineKEGGnodes(nodes, graph, combo.node)
reaction2edge(path, gR)
combineKEGGnodes
is a combined graph
of "graphNEL" class.
The results returned by reaction2edge
is a list of 3
elements: gR
, the converted graph ("graphNEL"); edata.new, the
new edge data ("KEGGEdge"); ndata.new, the new node data ("KEGGNode").
combineKEGGnodes
not only combines nodes in the graph object,
but also corresponding node data in the KEGG pathway object. This
function is needed for KEGG-defined group nodes and parsed enzyme
groups involved in the same reaction.
reaction2edge
converts a reaction into 2 consecutive edges
between substrate and enzyme and enzyme and product. This function is
needed as to faithfully show the compound-enzyme nodes and their
interactions in Graphviz-style view of KEGG pathway.
node.info
the main parser function