Download information and graph object of a given pathway from the Kyoto Encyclopedia of Genes and Genomes (KEGG) database.
getKEGGPathway(kegg.id)
A character
giving the KEGG ID, e.g. "map04210"
,
"map04064"
, "map04115"
. Can be prefixed with "path:"
.
Returns a list
with entries:
A data.frame
description of the KEGG pathway.
The KEGG pathway represented
as a graphNEL
object.
Usage of this function requires an internet connection. The igraph objects
can be obtained with igraph::igraph.from.graphNEL
. The moral graph
can be obtained with gRbase::moralize
. To obtain the adjacency matrix,
use gRbase::as.adjMAT
or igraph::get.adjacency
It is currently necessary to require("KEGGgraph")
(or
require("KEGGgraph")
) due to a bug in KEGGgraph.
if (FALSE) {
if (require("KEGGgraph")) {
getKEGGPathway("map04064")
}
}