setorg_graph: KO-graph to species-specific graph

Description Usage Arguments Details Value Author(s) Examples

Description

Normalize KEGG generic pathway to species specific pathway.

Usage

1
setorg_graph(object, org, d.path = "KEGG")

Arguments

object

xgraph object

org

character

d.path

file path for KEGG_get.

Details

Adjust and filter reactions, and rebuild graph object from reactions list.

Value

graph with organism set

Author(s)

ZG Zhao

Examples

1
2
3
4
5
6
7
8
## NOT RUN
library(syzMetab)
gm <- make_mgraph("ko00010")
gx <- subset_graph(gm, org="ath")
par(mfrow=c(2,1))
plot(gm)
## edges (reactions) with zero gene are show in dotted lines.
plot(gx)

zgzhao/gmetab documentation built on Dec. 23, 2021, 9:17 p.m.