getType-methods: Get type attribute

getType-methodsR Documentation

Get type attribute

Description

This method can be used to extract generic type attribute from several objects implemented in KEGGgraph package.

The meanings and descriptions of the types can be found at KGML manual listed in the reference.

Methods

object = "KEGGEdge"

An object of KEGGEdge-class

object = "KEGGNode"

An object of KEGGNode-class

object = "KEGGReaction"

An object of KEGGReaction-class

Author(s)

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

References

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

Examples

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

## node type
node <- nodes(maptest)[[3]]
getType(node)

## edge type
edge <- edges(maptest)[[5]]
getType(edge)

## reaction type
reaction <- getReactions(maptest)[[5]]
getType(reaction)

Accio/KEGGgraph documentation built on Jan. 13, 2023, 1:03 p.m.