getName-methods: Get 'name' attribute

Description Methods Author(s) References Examples

Description

Get 'name' attribute for given object, this method can be used for almost all objects implemented in KEGGgraph package to extract their name slot. See manual pages of individual objects for examples.

Methods

object = "KEGGEdgeSubType"

An object of KEGGEdgeSubType-class

object = "KEGGNode"

An object of KEGGNode-class

object = "KEGGPathway"

An object of KEGGPathway-class

object = "KEGGPathwayInfo"

An object of KEGGPathwayInfo-class

object = "KEGGReaction"

An object of KEGGReaction-class

Author(s)

Jitao David Zhang mailto:jitao_david.zhang@roche.com

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
sfile <- system.file("extdata/hsa04010.xml",package="KEGGgraph")
pathway <- parseKGML(sfile)

## get pathway name
getName(pathway)

## get node name
nodes <- nodes(pathway)
getName(nodes[[2]])

## get edge name: it is not informative since the nodes are identified
## with file-dependent indices
edges <- edges(pathway)
getName(edges[[7]])

## get subtype name
subtype <- getSubtype(edges[[2]])[[1]]
getName(subtype)


Search within the KEGGgraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.