getKEGGPathways: Builds a graph for each of the KEGG pathways

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/getKEGGPathways.R

Description

Builds a graph for each of the KEGG pathways.

Usage

1
getKEGGPathways(path=NULL, rootPath="networkData/ftp.genome.jp/pub/kegg/xml/kgml", organism="hsa", metaTag=c("non-metabolic", "metabolic"), pattern=NULL, verbose=FALSE)

Arguments

path

A character value, the local _full_ path of KGML data.

rootPath

A character value, the local _root_ path of KGML data.

organism

A character value specifying the organism whose pathways should be considered. Defaults to "hsa" (Homo Sapiens).

metaTag

A character value, specifying the type of pathways to be considered ("metabolic" or "non-metabolic"). Defaults to "non-metabolic".

pattern

An optional character value specifying a file name pattern to look for.

verbose

If TRUE, extra information is output.

Details

If 'path' is supplied, KGML files in this directory are loaded. Otherwise, KGML files are assumed to be in <rootPath>/<metaTag>/"organisms"/<organism>, which mirrors the structure of the KEGG KGML file repository.

Value

A list containing a graph object for each KEGG pathway with at least one edge.

Author(s)

Laurent Jacob, Pierre Neuvial and Sandrine Dudoit

See Also

parseKGML KEGGpathway2Graph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
library("Rgraphviz")
library("KEGGgraph")

## example of KGML files
path <- system.file("extdata", package="KEGGgraph")
grList <- getKEGGPathways(path=path, verbose=TRUE)
print(grList)

graph <- grList[[1]]
plotKEGGgraph(graph)

## Not run: 
  ## Download all human KGML pathways locally
  pathname <- system.file("downloadScripts", "downloadKeggXmlFiles.R", package="DEGraph")
  source(pathname)

  ## Load some of them
  grList <- getKEGGPathways(pattern="040", verbose=TRUE)
  print(grList)

  graph <- grList[[1]]
  plotKEGGgraph(graph)

## End(Not run)

DEGraph documentation built on Nov. 8, 2020, 5:52 p.m.