SOSExperiment-class: SOS Experiment
Description
Implementation of Experiment
for
simulating SBML models using the SOS: (S)BML (O)DE (S)olver library.Objects from the Class
Objects can be created by calls of the form new("SOSExperiment", ...)
.Slots
protocol
:- Object of class
SOSProtocol
, where
the simulation parameters are specified. design
:- Object of class
SOSDesign
,
specifying model parameters for each run of a batch experiment. subject
:- Object of class
SOSSubject
,
containing the Model
to be simulated. result
:- Object of class
SOSResult
containing the result of the simulation.
Extends
Class Experiment
, directly.Methods
- simulate
signature(object = "SOSExperiment")
:
simulate(object, nsim = 10, seed, ...)
: Simulates
the SBML document in the subject
slot according to the
design points in design
and parameters in protocol
for nsim
iterations, using seed
as the random
seed. Returns an instance of SOSExperiment
, which now
should include a SOSResult
for analysis.
Details
The general workflow for running a simulation:
- Create or import an SBML DOM.
- Customize the model, for example by adding perturbation
Event
s.
- Wrap the SBML DOM in a
SOSSubject
,
e.g. new("SOSSubject", dom)
.
- Optionally construct a
SOSDesign
for
running the experiment in batch over several sets of model parameter
settings.
- Optionally construct a
SOSProtocol
for
specifying the time points and other parameters controlling the
simulation.
- Construct an instance of this class that groups the subject,
design and protocol.
- Run
simulate
on the SOSExperiment
, optionally
specifying the number of iterations and the random seed.
- Analyze the returned
SOSResult
, perhaps
starting by converting it to a time series with as.ts
and
making some plots.
See Also
The simulate
method on SBMLDocument
is a
shortcut, but most users will probably find the above approach most
useful.