Debian Codegraph @

docs/simulation.html

raw symbols SCIP
1 <style type='text/css'>
2 /*/*/ /*<![CDATA[*/
3 @import "style.css";
4 /*]]>*/ /* */
5 </style>
6
7 <h3>SIMULATION</h3>
8
9 <p>The functions allow users to simulate SBML Models.</p>
10
11 <p>Function are:</p>
12
13 <hr>
14
15 <h4>[analysis] = AnalyseSpecies(SBMLModel)</h4>
16
17 <p>Takes</p>
18
19 <ol>
20 <li>SBMLModel, an SBML Model structure</li>
21 </ol>
22
23 <p>Returns</p>
24
25 <ol>
26 <li>a structure detailing the species and how they are manipulated
27 within the model</li>
28 </ol>
29
30 <p><em>EXAMPLE:</em></p>
31
32 <pre><code> Using the model from toolbox/Test/test-data/algebraicRules.xml
33
34 analysis = AnalyseSpecies(m)
35
36 analysis =
37
38 1x5 struct array with fields:
39 Name
40 constant
41 boundaryCondition
42 initialValue
43 hasAmountOnly
44 isConcentration
45 compartment
46 ChangedByReaction
47 KineticLaw
48 ChangedByRateRule
49 RateRule
50 ChangedByAssignmentRule
51 AssignmentRule
52 InAlgebraicRule
53 AlgebraicRule
54 ConvertedToAssignRule
55 ConvertedRule
56
57 analysis(1) =
58
59
60 Name: {'S1'}
61 constant: 0
62 boundaryCondition: 0
63 initialValue: 0.0300
64 hasAmountOnly: 0
65 isConcentration: 0
66 compartment: 'compartment'
67 ChangedByReaction: 1
68 KineticLaw: {' - (k*S1)'}
69 ChangedByRateRule: 0
70 RateRule: ''
71 ChangedByAssignmentRule: 0
72 AssignmentRule: ''
73 InAlgebraicRule: 1
74 AlgebraicRule: {{1x1 cell}}
75 ConvertedToAssignRule: 0
76 ConvertedRule: ''
77 </code></pre>
78
79 <hr>
80
81 <h4>[analysis] = AnalyseVaryingParameters(SBMLModel)</h4>
82
83 <p>Takes</p>
84
85 <ol>
86 <li>SBMLModel, an SBML Model structure</li>
87 </ol>
88
89 <p>Returns</p>
90
91 <ol>
92 <li>a structure detailing any parameters that are not constant and how they are manipulated
93 within the model</li>
94 </ol>
95
96 <p><em>EXAMPLE:</em></p>
97
98 <pre><code> Using the model from toolbox/Test/test-data/algebraicRules.xml
99
100 analysis = AnalyseVaryingParameters(m)
101
102 analysis =
103 Name: {'s2'}
104 initialValue: 4
105 ChangedByRateRule: 0
106 RateRule: ''
107 ChangedByAssignmentRule: 0
108 AssignmentRule: ''
109 InAlgebraicRule: 1
110 AlgebraicRule: {{1x1 cell}}
111 ConvertedToAssignRule: 1
112 ConvertedRule: '-(-S2-S3)'
113 </code></pre>
114
115 <hr>
116
117 <h4>elements = DealWithPiecewise(formula)</h4>
118
119 <p>Takes </p>
120
121 <ol>
122 <li>formula, a string representation of a math expression that contains the MathML piecewise function </li>
123 </ol>
124
125 <p>Returns </p>
126
127 <ol>
128 <li>an array of the three components of the piecewise function</li>
129 </ol>
130
131 <p><em>EXAMPLE:</em></p>
132
133 <pre><code> elements = DealWithPiecewise('piecewise(le(s2,4),1.5,0.05)')
134
135 = 'le(s2,4)' '1.5' '0.05'
136 </code></pre>
137
138 <p><em>NOTE:</em> The function cannot deal with a piecewise statement with more
139 than three elements.</p>
140
141 <hr>
142
143 <h4>elements = GetArgumentsFromLambdaFunction(formula)</h4>
144
145 <p>Takes</p>
146
147 <ol>
148 <li>formula, a string representation of a math expression that contains the MathML lambda function </li>
149 </ol>
150
151 <p>Returns </p>
152
153 <ol>
154 <li>an array of the components of the lambda function</li>
155 </ol>
156
157 <p><em>EXAMPLE:</em></p>
158
159 <pre><code> elements = GetArgumentsFromLambdaFunction('lambda(x, x+0.5)')
160
161 = 'x' 'x+0.5'
162
163 elements = GetArgumentsFromLambdaFunction('lambda(x, y, x + y)')
164
165 = 'x' 'y' 'x+y'
166 </code></pre>
167
168 <hr>
169
170 <h4>OutputODEFunction</h4>
171
172 <p><em>NOTE:</em> This function is deprecated. Use SolveODEFunction instead. </p>
173
174 <hr>
175
176 <h4>SolveODEFunction(varargin)</h4>
177
178 <p>Takes </p>
179
180 <ol>
181 <li>a MATLAB_SBML model structure (required argument)</li>
182 <li>time limit (default = 10)</li>
183 <li>number of time steps (default lets the solver decide)</li>
184 <li>a flag to indicate whether to output species values in amount/concentration
185 1 amount, 0 concentration (default)</li>
186 <li>a flag to indicate whether to output the simulation data as
187 a comma separated variable (csv) file
188 1 output 0 no output (default)</li>
189 <li>a filename (this is needed if WriteODEFunction was used with a
190 filename)</li>
191 </ol>
192
193 <p>Returns</p>
194
195 <ol>
196 <li>an array of time values</li>
197 <li>an array of the values of variables at each time point; species will
198 be in concentration or amount as specified by input arguments</li>
199 </ol>
200
201 <p>Outputs </p>
202
203 <ol>
204 <li>a file 'name.csv' with the data results (if the flag to output such a
205 file is set to 1.</li>
206 </ol>
207
208 <p><em>NOTE:</em> the results are generated using ode45 solver (MATLAB) or lsode
209 (Octave)</p>
210
211 <hr>
212
213 <h4>WriteEventAssignmentFunction(SBMLModel, name)</h4>
214
215 <p>Takes </p>
216
217 <ol>
218 <li>SBMLModel, an SBML Model structure</li>
219 <li>name, a string representing the name of the ode function being used</li>
220 </ol>
221
222 <p>Outputs </p>
223
224 <ol>
225 <li>a file 'name_eventAssign.m' defining a function that assigns values following an event
226 (for use with the event option of MATLABs ode solvers)</li>
227 </ol>
228
229 <p><em>NOTE:</em> This function is called from WriteODEFunction when a model with
230 events is encountered.</p>
231
232 <hr>
233
234 <h4>WriteEventHandlerFunction(SBMLModel, name)</h4>
235
236 <p>Takes </p>
237
238 <ol>
239 <li>SBMLModel, an SBML Model structure</li>
240 <li>name, a string representing the name of the ode function being used</li>
241 </ol>
242
243 <p>Outputs </p>
244
245 <ol>
246 <li>a file 'name_events.m' defining a function that tests whether events
247 have been triggered
248 (for use with the event option of MATLABs ode solvers)</li>
249 </ol>
250
251 <p><em>NOTE:</em> This function is called from WriteODEFunction when a model with
252 events is encountered.</p>
253
254 <hr>
255
256 <h4>WriteODEFunction(SBMLModel, name(optional))</h4>
257
258 <p>Takes </p>
259
260 <ol>
261 <li>SBMLModel, an SBML Model structure</li>
262 <li>name, an optional string representing the name of the ode function to be used</li>
263 </ol>
264
265 <p>Outputs </p>
266
267 <ol>
268 <li>a file 'name.m' defining a function that defines the ode equations of
269 the model for use with the ode solvers
270 (if no name supplied the model id will be used)</li>
271 </ol>
272
273 <hr>