Description Usage Arguments Details Value Author(s) Examples
Get st_cuts info: edges and genes
1 | make_stcuts(object, s, t, minimal = TRUE)
|
object |
xgraph object |
s |
source node |
t |
target node |
minimal |
TRUE/FALSE. If TRUE (default), get st_min_cuts instead of all st_cuts. |
Get st-cuts of edges (reactions). The edge cut-sets are translated into gene cut-sets also. Results can apply to make_bgraph
.
list
edges: edge cut sets
genes: gent cut sets
ZG Zhao
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.