createStochSystem: Creates a stochastic system from an in silico system.

Description Usage Arguments Value Examples

View source: R/stochastic_simulation.R

Description

Creates a list of molecules, reactions and associated propensities to represent the in silico system.

Usage

1
2
3
4
5
6
7
8
createStochSystem(
  insilicosystem,
  writefile = F,
  filepath = NULL,
  filename = "simulation",
  verbose = T,
  ev = getJuliaEvaluator()
)

Arguments

insilicosystem

The in silico system (object of class insilicosystem, see createInSilicoSystem).

writefile

Does the julia function write the species and reactions lists in a text file?

filepath

If writefile = TRUE, path to the folder in which the files will be created (default: current working directory).

filename

If writefile = TRUE, prefix of the files created to store the lists of species and reactions (default: none).

verbose

If TRUE (default), print messages to signal the start and finish of the function.

ev

A Julia evaluator (for the XRJulia). If none provided select the current evaluator or create one if no evaluator exists.

Value

A Julia proxy object to retrieve the stochastic system in the Julia evaluator.

Examples

1
2
mysystem = createInSilicoSystem(G = 5)
stochsys = createStochSystem(mysystem)

sismonr documentation built on Feb. 11, 2020, 9:07 a.m.