git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/DEGraph@59368 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/DEGraph@50237 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,74 @@ |
1 |
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
2 |
+% Do not modify this file since it was automatically generated from: |
|
3 |
+% |
|
4 |
+% ./getKEGGPathways.R |
|
5 |
+% |
|
6 |
+% by the Rdoc compiler part of the R.oo package. |
|
7 |
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
8 |
+ |
|
9 |
+\name{getKEGGPathways} |
|
10 |
+\alias{getKEGGPathways} |
|
11 |
+ |
|
12 |
+ |
|
13 |
+\title{Builds a graph for each of the KEGG pathways} |
|
14 |
+ |
|
15 |
+\description{ |
|
16 |
+ Builds a graph for each of the KEGG pathways. |
|
17 |
+} |
|
18 |
+ |
|
19 |
+\usage{getKEGGPathways(path=NULL, rootPath="networkData/ftp.genome.jp/pub/kegg/xml/kgml", organism="hsa", metaTag=c("non-metabolic", "metabolic"), pattern=NULL, verbose=FALSE)} |
|
20 |
+ |
|
21 |
+\arguments{ |
|
22 |
+ \item{path}{A \code{\link[base]{character}} value, the local _full_ path of KGML data.} |
|
23 |
+ \item{rootPath}{A \code{\link[base]{character}} value, the local _root_ path of KGML data.} |
|
24 |
+ \item{organism}{A \code{\link[base]{character}} value specifying the organism whose |
|
25 |
+ pathways should be considered. Defaults to "hsa" (Homo Sapiens).} |
|
26 |
+ \item{metaTag}{A \code{\link[base]{character}} value, specifying the type of pathways to |
|
27 |
+ be considered ("metabolic" or "non-metabolic"). Defaults to "non-metabolic".} |
|
28 |
+ \item{pattern}{An optional \code{\link[base]{character}} value specifying a file name pattern to |
|
29 |
+ look for.} |
|
30 |
+ \item{verbose}{If \code{\link[base:logical]{TRUE}}, extra information is output.} |
|
31 |
+} |
|
32 |
+ |
|
33 |
+\value{ |
|
34 |
+ A \code{\link[base]{list}} containing a \code{\link[=graph-class]{graph}} object for each KEGG pathway with at least one edge. |
|
35 |
+} |
|
36 |
+ |
|
37 |
+\details{If 'path' is supplied, KGML files in this directory are loaded. |
|
38 |
+ Otherwise, KGML files are assumed to be in |
|
39 |
+ <rootPath>/<metaTag>/"organisms"/<organism>, which mirrors the |
|
40 |
+ structure of the KEGG KGML file repository. |
|
41 |
+} |
|
42 |
+ |
|
43 |
+\author{Laurent Jacob, Pierre Neuvial and Sandrine Dudoit} |
|
44 |
+ |
|
45 |
+\seealso{ |
|
46 |
+ \code{\link{parseKGML}} |
|
47 |
+ \code{\link{KEGGpathway2Graph}} |
|
48 |
+} |
|
49 |
+ |
|
50 |
+\examples{ |
|
51 |
+library("KEGGgraph") |
|
52 |
+ |
|
53 |
+## example of KGML files |
|
54 |
+path <- system.file("extdata", package="KEGGgraph") |
|
55 |
+grList <- getKEGGPathways(path=path, verbose=TRUE) |
|
56 |
+print(grList) |
|
57 |
+ |
|
58 |
+graph <- grList[[1]] |
|
59 |
+plotKEGGgraph(graph) |
|
60 |
+ |
|
61 |
+\dontrun{ |
|
62 |
+ ## Download all human KGML pathways locally |
|
63 |
+ pathname <- system.file("downloadScripts", "downloadKeggXmlFiles.R", package="DEGraph") |
|
64 |
+ source(pathname) |
|
65 |
+ |
|
66 |
+ ## Load some of them |
|
67 |
+ grList <- getKEGGPathways(pattern="040", verbose=TRUE) |
|
68 |
+ print(grList) |
|
69 |
+ |
|
70 |
+ graph <- grList[[1]] |
|
71 |
+ plotKEGGgraph(graph) |
|
72 |
+} |
|
73 |
+} |
|
74 |
+ |