reduceGraph: reduce graph

Description Usage Arguments Value Author(s) Examples

View source: R/bnem_main.r

Description

reduces the size of a graph if possible to an equivalent sub-graph

Usage

1
reduceGraph(bString, model, CNOlist)

Arguments

bString

binary vector indicating the sub-graph given a model

model

model object for the whole graph space

CNOlist

CNOlist object

Value

equivalent sub-graph denoted by a bString

Author(s)

Martin Pirkl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sifMatrix <- rbind(c("A", 1, "B"), c("A", 1, "C"), c("B", 1, "D"),
c("C", 1, "D"))
write.table(sifMatrix, file = "temp.sif", sep = "\t", row.names = FALSE,
col.names = FALSE,
quote = FALSE)
PKN <- CellNOptR::readSIF("temp.sif")
unlink('temp.sif')
CNOlist <- dummyCNOlist("A", c("B","C","D"), maxStim = 1, maxInhibit = 2,
signal = c("A", "B","C","D"))
model <- CellNOptR::preprocessing(CNOlist, PKN, maxInputsPerGate = 100)
bString <- reduceGraph(rep(1, length(model$reacID)), model, CNOlist)

MartinFXP/B-NEM documentation built on Aug. 30, 2020, 8:22 a.m.