## We show how to extract reactions from a 'KEGGPathway' object
mapfile <- system.file("extdata/map00260.xml", package="KEGGgraph")
maptest <- parseKGML(mapfile)
mapReactions <- getReactions(maptest)
## More details about reaction
reaction <- mapReactions[[1]]
getName(reaction)
getType(reaction)
getSubstrate(reaction)
getProduct(reaction)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(KEGGgraph)
Attaching package: 'KEGGgraph'
The following object is masked from 'package:graphics':
plot
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/KEGGgraph/KEGGReaction-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: KEGGReaction-class
> ### Title: Class "KEGGReaction"
> ### Aliases: KEGGReaction-class show,KEGGReaction-method
> ### getName,KEGGReaction-method getSubstrate
> ### getSubstrate,KEGGReaction-method getProduct
> ### getProduct,KEGGReaction-method
> ### Keywords: classes
>
> ### ** Examples
>
> ## We show how to extract reactions from a 'KEGGPathway' object
> mapfile <- system.file("extdata/map00260.xml", package="KEGGgraph")
>
> maptest <- parseKGML(mapfile)
> mapReactions <- getReactions(maptest)
>
> ## More details about reaction
> reaction <- mapReactions[[1]]
> getName(reaction)
[1] "rn:R08211"
> getType(reaction)
[1] "irreversible"
> getSubstrate(reaction)
[1] "cpd:C00576"
> getProduct(reaction)
[1] "cpd:C00719"
>
>
>
>
>
> dev.off()
null device
1
>