subGraphByNodeType | R Documentation |
The function subsets KEGG graph by node types, mostly used in extracting gene networks.
subGraphByNodeType(graph, type = "gene", kegg=TRUE)
graph |
A KEGG graph object produced by calling |
type |
node type, see |
kegg |
logical, should the KEGG Node and Edge attributes be maintained during the subsetting? By default set to 'TRUE' |
A subgraph of the original graph
Jitao David Zhang mailto:jitao_david.zhang@roche.com
sfile <- system.file("extdata/hsa04010.xml",package="KEGGgraph") sGraph <- parseKGML2Graph(sfile,expandGenes=TRUE, genesOnly=FALSE) sGraphGene <- subGraphByNodeType(sGraph, type="gene")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.