Learn R Programming

CellNOptR (version 1.18.0)

prep4sim: Prepare a model for simulation

Description

Adds to the model some fields that are used by the simulation engine

Usage

prep4sim(model)

Arguments

model
a model list, as output by readSIF, normally pre-processed but that is not a requirement of this function

Value

this function returns a list with fields:
finalCube
stores, for each reac(row) the location of its inputs (col)
ixNeg
stores, for each reac(row) and each input (col) whether it is a negative input
ignoreCube
logical matrix of the same size as the 2 above, that tells whether the particular cell is filled or not
maxIx
row vector that stores, for each reac, the location of its output
modelname
stores the name of the model from which these fields were derived
maxInput
stores the max number of inputs observed in the model for a single reaction

Details

This adds fields that are necessary for the simulation engine in a version that is extensible for constrained Fuzzy logic extension of the methods applied here (in development).

See Also

simulatorT1

Examples

Run this code
data(ToyModel,package="CellNOptR")
ToyFields4Sim<-prep4sim(ToyModel)

Run the code above in your browser using DataLab