getKEGGID-methods: Get KEGG ID

Description Methods Examples

Description

Get KEGGID from a KEGGNode-class object.

The KEGGNode-class can be either another pathway (KEGGID in the form like 'hsa\d*'), KEGG Gene ('hsa:\d*') or compound ('cpd:C\d*'). In case of the KEGG Gene ID, the organism prefix is removed when the value is returned.

Methods

object = "KEGGNode"

An object of KEGGNode-class

Examples

1
2
3
4
5
wntfile <- system.file("extdata/hsa04310.xml",package="KEGGgraph")
wnt <- parseKGML(wntfile)
nodes <- nodes(wnt)
getKEGGID(nodes[[1]])
getKEGGID(nodes[[26]])

Example output

Attaching package: 'KEGGgraph'

The following object is masked from 'package:graphics':

    plot

[1] "hsa04350"
[1] "4316"

KEGGgraph documentation built on Nov. 8, 2020, 5:42 p.m.