make_stcuts: list all gene cut sets

Description Usage Arguments Details Value Author(s) Examples

Description

Get st_cuts info: edges and genes

Usage

1
make_stcuts(object, s, t, minimal = TRUE)

Arguments

object

xgraph object

s

source node

t

target node

minimal

TRUE/FALSE. If TRUE (default), get st_min_cuts instead of all st_cuts.

Details

Get st-cuts of edges (reactions). The edge cut-sets are translated into gene cut-sets also. Results can apply to make_bgraph.

Value

list

Author(s)

ZG Zhao

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## NOT RUN
library(syzMetab)
gm <- make_mgraph(c("ko00010", "ko00020"))
plot(gm)
chem1 <- c("C00031", "C00221", "C00267", "C01172", "C01451", "C06186")
chem2 <- "C00022"
gb <- make_bgraph(gm, s=chem1, t=chem2, minimal=FALSE)
plot(gb)
xcuts <- make_stcuts(gm, s=chem1, t=chem2, minimal=FALSE)
str(xcuts)
gx <- make_bgraph(xcuts)
plot(gx)

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