getName-methods | R Documentation |
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.
An object of KEGGEdgeSubType-class
An object of KEGGNode-class
An object of KEGGPathway-class
An object of
KEGGPathwayInfo-class
An object of
KEGGReaction-class
Jitao David Zhang mailto:jitao_david.zhang@roche.com
KGML Document Manual https://www.genome.jp/kegg/docs/xml/
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.