################################################### ### chunk number 1: lib ################################################### #line 150 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" library(NCIgraph) ################################################### ### chunk number 2: data ################################################### #line 159 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" data("NCIgraphVignette", package="NCIgraph") ################################################### ### chunk number 3: data ################################################### #line 167 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" grList <- getNCIPathways(cyList=NCI.demo.cyList, parseNetworks=TRUE, entrezOnly=TRUE, verbose=TRUE)$pList ################################################### ### chunk number 4: lib2 ################################################### #line 185 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" library('Rgraphviz') ################################################### ### chunk number 5: plotRaw ################################################### #line 191 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" graph <- NCI.demo.cyList[[1]] gNames <- unlist(lapply(graph@nodeData@data,FUN=function(e) e$biopax.name)) names(gNames) <- nodes(graph) graph <- layoutGraph(graph) nodeRenderInfo(graph) <- list(label=gNames, cex=0.75) renderGraph(graph) ################################################### ### chunk number 6: plotParsed ################################################### #line 200 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" graph <- grList[[1]] gNames <- unlist(lapply(graph@nodeData@data,FUN=function(e) unique(e$biopax.xref.ENTREZGENE))) names(gNames) <- nodes(graph) graph <- layoutGraph(graph) nodeRenderInfo(graph) <- list(label=gNames, cex=0.75) renderGraph(graph) ################################################### ### chunk number 7: rawGraph ################################################### #line 211 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" #line 191 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw#from line#211#" graph <- NCI.demo.cyList[[1]] gNames <- unlist(lapply(graph@nodeData@data,FUN=function(e) e$biopax.name)) names(gNames) <- nodes(graph) graph <- layoutGraph(graph) nodeRenderInfo(graph) <- list(label=gNames, cex=0.75) renderGraph(graph) #line 212 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" ################################################### ### chunk number 8: parsedGraph ################################################### #line 221 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw" #line 200 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw#from line#221#" graph <- grList[[1]] gNames <- unlist(lapply(graph@nodeData@data,FUN=function(e) unique(e$biopax.xref.ENTREZGENE))) names(gNames) <- nodes(graph) graph <- layoutGraph(graph) nodeRenderInfo(graph) <- list(label=gNames, cex=0.75) renderGraph(graph) #line 222 "vignettes/NCIgraph/inst/doc/NCIgraph.Rnw"