subset_graph: subset xgraph

Description Usage Arguments Details Value Author(s) Examples

Description

Subset graph with given sources (primary substrates) and targets (products)

Usage

1
subset_graph(object, s, t, clean = FALSE)

Arguments

object

graph object

s

source nodes

t

target nodes

Details

Value

graph object

Author(s)

ZG Zhao

Examples

1
2
3
4
5
6
7
8
9
## NOT RUN
library(syzMetab)
gm <- make_mgraph("ko00010")
chem1 <- c("C00031", "C00221", "C00267", "C01172", "C01451", "C06186")
chem2 <- "C00022"
gx <- subset_graph(gm, s=chem1, t=chem2)
par(mfrow=c(2,1))
plot(gm)
plot(gx)

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