Learn R Programming

KEGGgraph (version 1.30.0)

KEGGEdge-class: Class 'KEGGEdge'

Description

A class to represent 'relation' elements in KGML files and edge objects in a KEGG graph

Arguments

Objects from the Class

Objects are normally created by parseRelation function, which is not intended to be called by user directly

Slots

entry1ID:
The entryID of the first KEGGNode
entry2ID:
The entryID of the second KEGGNode
type:
The type of the relation, see getType-methods
subtype:
The subtype(s) of the edge, a list of KEGGEdgeSubType

Methods

getEntryID
signature(obj = "KEGGEdge"): Get entryIDs of the edge in the order specified by the direction of the edge
getType
signature(object = "KEGGEdge"): Get the relation type
getName
signature(object = "KEGGEdge"): Get the names of edges in the convention of Rgraphviz, 'node1~node2'
show
signature(object = "KEGGEdge"): Show method

References

KGML Manual http://www.genome.jp/kegg/docs/xml/

See Also

KEGGNode-class

Examples

Run this code
mapfile<- system.file("extdata/map00260.xml", package="KEGGgraph")
maptest <- parseKGML(mapfile)

x <- edges(maptest)[[1]]
class(x)

## examples to extract information from KEGGEdge
getName(x)
getEntryID(x)

getType(x)
getSubtype(x)

subtype <- getSubtype(x)[[1]]
getName(subtype)

Run the code above in your browser using DataLab