| 1 | <style type='text/css'> |
| 2 | /*/*/ /*<![CDATA[*/ |
| 3 | @import "style.css"; |
| 4 | /*]]>*/ /* */ |
| 5 | </style> |
| 6 | |
| 7 | <h3>ACCESSMODEL</h3> |
| 8 | |
| 9 | <p>The AccessModel folder contains a number of functions that derive information from the MATLAB_SBML structures.</p> |
| 10 | |
| 11 | <p>Function are:</p> |
| 12 | |
| 13 | <hr> |
| 14 | |
| 15 | <h4>array = DetermineSpeciesRoleInReaction(SBMLSpecies, SBMLReaction)</h4> |
| 16 | |
| 17 | <p>Takes </p> |
| 18 | |
| 19 | <ol> |
| 20 | <li>SBMLSpecies, an SBML species structure</li> |
| 21 | <li>SBMLReaction, an SBML reaction structure</li> |
| 22 | </ol> |
| 23 | |
| 24 | <p>Returns </p> |
| 25 | |
| 26 | <ol> |
| 27 | <li>an array with five elements <code>[isProduct, isReactant, isModifier, |
| 28 | positionInProductList, positionInReactantList]</code> indicating |
| 29 | whether the species is a product, reactant or modifier and recording |
| 30 | the position in the list of products/reactants</li> |
| 31 | </ol> |
| 32 | |
| 33 | <p>or </p> |
| 34 | |
| 35 | <ol> |
| 36 | <li>array = 0 if the species is NOT part of the reaction</li> |
| 37 | </ol> |
| 38 | |
| 39 | <p><em>EXAMPLE:</em> </p> |
| 40 | |
| 41 | <pre><code> y = DetermineSpeciesRoleInReaction(s, r) |
| 42 | = 0 if s is not in r |
| 43 | = [1, 0, 0, 2, 0] if s is product number 2 in rb |
| 44 | = [0, 1, 0, 0, 1] if s is reactant number 1 in r |
| 45 | = [0, 0, 1, 0, 0] if s is a modifier in r |
| 46 | = [1, 1, 0, 1, 2] if s is product number 1 and reactant number 2 in r |
| 47 | </code></pre> |
| 48 | |
| 49 | <hr> |
| 50 | |
| 51 | <h4>[names, values] = GetAllParameters(SBMLModel)</h4> |
| 52 | |
| 53 | <p>Takes </p> |
| 54 | |
| 55 | <ol> |
| 56 | <li>SBMLModel, an SBML Model structure</li> |
| 57 | </ol> |
| 58 | |
| 59 | <p>Returns </p> |
| 60 | |
| 61 | <ol> |
| 62 | <li>an array of strings representing the identifiers of all parameters |
| 63 | (both global and embedded) within the model </li> |
| 64 | <li>an array of the values of each parameter</li> |
| 65 | </ol> |
| 66 | |
| 67 | <p><em>NOTE:</em> the value returned will be (in order)</p> |
| 68 | |
| 69 | <ul> |
| 70 | <li>determined from assignmentRules/initialAssignments where appropriate</li> |
| 71 | <li>the attribute 'value' for the given parameter</li> |
| 72 | <li>NaN, if the value is not specified in any way within the model</li> |
| 73 | </ul> |
| 74 | |
| 75 | <hr> |
| 76 | |
| 77 | <h4>[names, values] = GetAllParametersUnique(SBMLModel)</h4> |
| 78 | |
| 79 | <p>Takes </p> |
| 80 | |
| 81 | <ol> |
| 82 | <li>SBMLModel, an SBML model structure</li> |
| 83 | </ol> |
| 84 | |
| 85 | <p>Returns </p> |
| 86 | |
| 87 | <ol> |
| 88 | <li>an array of strings representing the identifiers of all parameters |
| 89 | (both global and embedded) within the model. |
| 90 | <em>Note:</em> reaction names are appended to the names of parameters |
| 91 | declared within a reaction</li> |
| 92 | <li>an array of the values of each parameter</li> |
| 93 | </ol> |
| 94 | |
| 95 | <p><em>NOTE:</em> the value returned will be (in order)</p> |
| 96 | |
| 97 | <ul> |
| 98 | <li>determined from assignmentRules/initialAssignments where appropriate</li> |
| 99 | <li>the attribute 'value' for the given parameter</li> |
| 100 | <li>NaN, if the value is not specified in any way within the model</li> |
| 101 | </ul> |
| 102 | |
| 103 | <p><em>EXAMPLE:</em></p> |
| 104 | |
| 105 | <pre><code> model has 1 parameter k1 |
| 106 | and reaction R1 that lists a local parameter k1 |
| 107 | |
| 108 | [names, values] = GetAllParametersUnique(model) |
| 109 | |
| 110 | names = [k1, k1_R1] |
| 111 | values = [2, 1.5] |
| 112 | </code></pre> |
| 113 | |
| 114 | <hr> |
| 115 | |
| 116 | <h4>names = GetCompartmentTypes(SBMLModel)</h4> |
| 117 | |
| 118 | <p>Takes</p> |
| 119 | |
| 120 | <ol> |
| 121 | <li>SBMLModel, an SBML Model structure</li> |
| 122 | </ol> |
| 123 | |
| 124 | <p>Returns</p> |
| 125 | |
| 126 | <ol> |
| 127 | <li>an array of strings representing the identifiers of all compartmentTypes within the model </li> |
| 128 | </ol> |
| 129 | |
| 130 | <hr> |
| 131 | |
| 132 | <h4>[names, values] = GetCompartments(SBMLModel)</h4> |
| 133 | |
| 134 | <p>Takes</p> |
| 135 | |
| 136 | <ol> |
| 137 | <li>SBMLModel, an SBML Model structure </li> |
| 138 | </ol> |
| 139 | |
| 140 | <p>Returns </p> |
| 141 | |
| 142 | <ol> |
| 143 | <li>an array of strings representing the identifiers of all compartments within the model </li> |
| 144 | <li>an array of the size/volume values of each compartment</li> |
| 145 | </ol> |
| 146 | |
| 147 | <p><em>NOTE:</em> the value returned will be (in order)</p> |
| 148 | |
| 149 | <ul> |
| 150 | <li>determined from assignmentRules/initialAssignments where appropriate</li> |
| 151 | <li>the attribute 'size' ('volume' in L1) for the given compartment</li> |
| 152 | <li>NaN, if the value is not specified in any way within the model</li> |
| 153 | </ul> |
| 154 | |
| 155 | <hr> |
| 156 | |
| 157 | <h4>[names, values] = GetGlobalParameters(SBMLModel)</h4> |
| 158 | |
| 159 | <p>Takes</p> |
| 160 | |
| 161 | <ol> |
| 162 | <li>SBMLModel, an SBML Model structure</li> |
| 163 | </ol> |
| 164 | |
| 165 | <p>Returns </p> |
| 166 | |
| 167 | <ol> |
| 168 | <li>an array of strings representing the identifiers of |
| 169 | all global parameters within the model </li> |
| 170 | <li>an array of the values of each parameter</li> |
| 171 | </ol> |
| 172 | |
| 173 | <p><em>NOTE:</em> the value returned will be (in order)</p> |
| 174 | |
| 175 | <ul> |
| 176 | <li>determined from assignmentRules/initialAssignments where appropriate</li> |
| 177 | <li>the attribute 'value' for the given parameter</li> |
| 178 | <li>NaN, if the value is not specified in any way within the model</li> |
| 179 | </ul> |
| 180 | |
| 181 | <hr> |
| 182 | |
| 183 | <h4>[parameters, algebraicRules] = GetParameterAlgebraicRules(SBMLModel)</h4> |
| 184 | |
| 185 | <p>Takes</p> |
| 186 | |
| 187 | <ol> |
| 188 | <li>SBMLModel, an SBML Model structure</li> |
| 189 | </ol> |
| 190 | |
| 191 | <p>Returns </p> |
| 192 | |
| 193 | <ol> |
| 194 | <li>an array of strings representing the identifiers of all parameters</li> |
| 195 | <li><p>an array of </p> |
| 196 | |
| 197 | <ul> |
| 198 | <li>the character representation of each algebraic |
| 199 | rule the parameter appears in </li> |
| 200 | <li>'0' if the particular parameter is not in an algebraic rule</li> |
| 201 | </ul></li> |
| 202 | </ol> |
| 203 | |
| 204 | <p><em>EXAMPLE:</em></p> |
| 205 | |
| 206 | <pre><code> model has 3 parameters (k1, k2, k3) |
| 207 | and 2 algebraic rules with formula 'k2+7' and 'k2-k3' |
| 208 | |
| 209 | [parameters, algebraicRules] = GetParameterAlgebraicRules(model) |
| 210 | |
| 211 | parameters = ['k1', 'k2', 'k3'] |
| 212 | algebraicRules = {'0', ['k2+7', 'k2-k3'], ['k2-k3']} |
| 213 | </code></pre> |
| 214 | |
| 215 | <hr> |
| 216 | |
| 217 | <h4>[parameters, assignmentRules] = GetParameterAssignmentRules(SBMLModel)</h4> |
| 218 | |
| 219 | <p>Takes </p> |
| 220 | |
| 221 | <ol> |
| 222 | <li>SBMLModel, an SBML Model structure </li> |
| 223 | </ol> |
| 224 | |
| 225 | <p>Returns</p> |
| 226 | |
| 227 | <ol> |
| 228 | <li>an array of strings representing the identifiers of all parameters</li> |
| 229 | <li><p>an array of </p> |
| 230 | |
| 231 | <ul> |
| 232 | <li>the character representation of the assignment rule used to |
| 233 | assign value to a given parameter </li> |
| 234 | <li>'0' if the parameter is not assigned by a rule</li> |
| 235 | </ul></li> |
| 236 | </ol> |
| 237 | |
| 238 | <hr> |
| 239 | |
| 240 | <h4>[names, values] = GetParameterFromReaction(SBMLReaction)</h4> |
| 241 | |
| 242 | <p>Takes </p> |
| 243 | |
| 244 | <ol> |
| 245 | <li>SBMLReaction, an SBML Reaction structure</li> |
| 246 | </ol> |
| 247 | |
| 248 | <p>Returns </p> |
| 249 | |
| 250 | <ol> |
| 251 | <li>an array of strings representing the identifiers of all parameters defined |
| 252 | within the kinetic law of the reaction </li> |
| 253 | <li>an array of the values of each parameter</li> |
| 254 | </ol> |
| 255 | |
| 256 | <hr> |
| 257 | |
| 258 | <h4>[names, values] = GetParameterFromReactionUnique(SBMLReaction)</h4> |
| 259 | |
| 260 | <p>Takes</p> |
| 261 | |
| 262 | <ol> |
| 263 | <li>SBMLReaction, an SBML Reaction structure </li> |
| 264 | </ol> |
| 265 | |
| 266 | <p>Returns</p> |
| 267 | |
| 268 | <ol> |
| 269 | <li>an array of strings representing the identifiers of all parameters defined |
| 270 | within the kinetic law of the reaction, with the reaction |
| 271 | name appended</li> |
| 272 | <li>an array of the values of each parameter</li> |
| 273 | </ol> |
| 274 | |
| 275 | <p><em>EXAMPLE:</em></p> |
| 276 | |
| 277 | <pre><code> reaction with id R1 has 2 parameters k1 and k2 |
| 278 | |
| 279 | [names, values] = GetParameterFromReactionUnique(reaction) |
| 280 | |
| 281 | names = [k1_R1, k2_R1] |
| 282 | values = [2, 1.5] |
| 283 | </code></pre> |
| 284 | |
| 285 | <hr> |
| 286 | |
| 287 | <h4>[parameters, raterules] = GetParameterRateRules((SBMLModel)</h4> |
| 288 | |
| 289 | <p>Takes </p> |
| 290 | |
| 291 | <ol> |
| 292 | <li>SBMLModel, an SBML Model structure </li> |
| 293 | </ol> |
| 294 | |
| 295 | <p>Returns</p> |
| 296 | |
| 297 | <ol> |
| 298 | <li>an array of strings representing the identifiers of all parameters</li> |
| 299 | <li><p>an array of </p> |
| 300 | |
| 301 | <ul> |
| 302 | <li>the character representation of the rate rule used to |
| 303 | assign value to a given parameter </li> |
| 304 | <li>'0' if the parameter is not assigned by a rule</li> |
| 305 | </ul></li> |
| 306 | </ol> |
| 307 | |
| 308 | <hr> |
| 309 | |
| 310 | <h4>[species, rateLaws] = GetRateLawsFromReactions(SBMLModel)</h4> |
| 311 | |
| 312 | <p>Takes</p> |
| 313 | |
| 314 | <ol> |
| 315 | <li>SBMLModel; an SBML Model structure </li> |
| 316 | </ol> |
| 317 | |
| 318 | <p>Returns</p> |
| 319 | |
| 320 | <ol> |
| 321 | <li>an array of strings representing the identifiers of all species</li> |
| 322 | <li><p>an array of </p> |
| 323 | |
| 324 | <ul> |
| 325 | <li>the character representation of the rate law established from any reactions |
| 326 | that determines the particular species</li> |
| 327 | <li>'0' if the particular species is not a reactant/product in any reaction</li> |
| 328 | </ul></li> |
| 329 | </ol> |
| 330 | |
| 331 | <p><em>EXAMPLE:</em></p> |
| 332 | |
| 333 | <pre><code> model has 4 species (s1, s2, s3, s4) |
| 334 | and 2 reactions; s1 -> s2 with kineticLaw 'k1*s1' |
| 335 | s2 -> s3 with kineticLaw 'k2*s2' |
| 336 | |
| 337 | [species, rateLaws] = GetRateLawsFromReactions(model) |
| 338 | |
| 339 | species = ['s1', 's2', 's3', 's4'] |
| 340 | rateLaws = {'-k1*s1', 'k1*s1-k2*s2', 'k2*s2', '0'} |
| 341 | </code></pre> |
| 342 | |
| 343 | <hr> |
| 344 | |
| 345 | <h4>[species, rateLaws] = GetRateLawsFromRules(SBMLModel)</h4> |
| 346 | |
| 347 | <p>Takes</p> |
| 348 | |
| 349 | <ol> |
| 350 | <li>SBMLModel, an SBML Model structure </li> |
| 351 | </ol> |
| 352 | |
| 353 | <p>Returns</p> |
| 354 | |
| 355 | <ol> |
| 356 | <li>an array of strings representing the identifiers of all species</li> |
| 357 | <li><p>an array of </p> |
| 358 | |
| 359 | <ul> |
| 360 | <li>the character representation of the rateRule that determines |
| 361 | the particular species</li> |
| 362 | <li>'0' if the particular species is not assigned by a rateRule</li> |
| 363 | </ul></li> |
| 364 | </ol> |
| 365 | |
| 366 | <hr> |
| 367 | |
| 368 | <h4>[names, values] = GetSpecies(SBMLModel)</h4> |
| 369 | |
| 370 | <p>Takes </p> |
| 371 | |
| 372 | <ol> |
| 373 | <li>SBMLModel, an SBML Model structure </li> |
| 374 | </ol> |
| 375 | |
| 376 | <p>Returns </p> |
| 377 | |
| 378 | <ol> |
| 379 | <li>an array of strings representing the identifiers of all species within the model </li> |
| 380 | <li>an array of the initial concentration/amount values of each species</li> |
| 381 | </ol> |
| 382 | |
| 383 | <p><em>NOTE:</em> the value returned will be (in order)</p> |
| 384 | |
| 385 | <ul> |
| 386 | <li>determined from assignmentRules/initialAssignments where appropriate</li> |
| 387 | <li>the attribute 'initialAmount' or 'initialConcentration' for the given parameter</li> |
| 388 | <li>NaN, if the value is not specified in any way within the model</li> |
| 389 | </ul> |
| 390 | |
| 391 | <hr> |
| 392 | |
| 393 | <h4>[names, values] = GetSpeciesAlgebraicRules(SBMLModel)</h4> |
| 394 | |
| 395 | <p>Takes</p> |
| 396 | |
| 397 | <ol> |
| 398 | <li>SBMLModel, an SBML Model structure</li> |
| 399 | </ol> |
| 400 | |
| 401 | <p>Returns</p> |
| 402 | |
| 403 | <ol> |
| 404 | <li>an array of strings representing the identifiers of all species</li> |
| 405 | <li><p>an array of </p> |
| 406 | |
| 407 | <ul> |
| 408 | <li>the character representation of each algebraic |
| 409 | rule the species appears in </li> |
| 410 | <li>'0' if the particular species is not in an algebraic rule</li> |
| 411 | </ul></li> |
| 412 | </ol> |
| 413 | |
| 414 | <p><em>EXAMPLE:</em></p> |
| 415 | |
| 416 | <pre><code> model has 3 species (s1, s2, s3) |
| 417 | and 2 algebraic rules with formula 's2+7' and 's2-s3' |
| 418 | |
| 419 | [species, algebraicRules] = GetSpeciesAlgebraicRules(model) |
| 420 | |
| 421 | species = ['s1', 's2', 's3'] |
| 422 | algebraicRules = {'0', ['s2+7', 's2-s3'], ['k2-k3']} |
| 423 | </code></pre> |
| 424 | |
| 425 | <hr> |
| 426 | |
| 427 | <h4>[species, assignmentRules] = GetSpeciesAssignmentRules(SBMLModel)</h4> |
| 428 | |
| 429 | <p>Takes</p> |
| 430 | |
| 431 | <ol> |
| 432 | <li>SBMLModel, an SBML Model structure </li> |
| 433 | </ol> |
| 434 | |
| 435 | <p>Returns</p> |
| 436 | |
| 437 | <ol> |
| 438 | <li>an array of strings representing the identifiers of all species</li> |
| 439 | <li><p>an array of </p> |
| 440 | |
| 441 | <ul> |
| 442 | <li>the character representation of the assignment rule used to |
| 443 | assign value to a given species </li> |
| 444 | <li>'0' if the species is not assigned by a rule</li> |
| 445 | </ul></li> |
| 446 | </ol> |
| 447 | |
| 448 | <hr> |
| 449 | |
| 450 | <h4>names = GetSpeciesTypes(SBMLModel)</h4> |
| 451 | |
| 452 | <p>Takes</p> |
| 453 | |
| 454 | <ol> |
| 455 | <li>SBMLModel, an SBML Model structure </li> |
| 456 | </ol> |
| 457 | |
| 458 | <p>Returns</p> |
| 459 | |
| 460 | <ol> |
| 461 | <li>an array of strings representing the identifiers of all SpeciesTypes within the model </li> |
| 462 | </ol> |
| 463 | |
| 464 | <hr> |
| 465 | |
| 466 | <h4>[matrix, species] = GetStoichiometryMatrix(SBMLModel)</h4> |
| 467 | |
| 468 | <p>Takes</p> |
| 469 | |
| 470 | <ol> |
| 471 | <li>SBMLModel, an SBML Model structure</li> |
| 472 | </ol> |
| 473 | |
| 474 | <p>Returns</p> |
| 475 | |
| 476 | <ol> |
| 477 | <li>the stoichiometry matrix produced from the reactions/species</li> |
| 478 | <li>an array of strings representing the identifiers of all species within the model |
| 479 | (in the order in which the matrix deals with them)</li> |
| 480 | </ol> |
| 481 | |
| 482 | <p><em>EXAMPLE:</em></p> |
| 483 | |
| 484 | <pre><code> model has 5 species (s1, s2, s3, s4, s5) |
| 485 | and 3 reactions: s1 -> s2 |
| 486 | s3 -> s5 |
| 487 | 2s1 -> s5 |
| 488 | |
| 489 | [matrix, species] = GetRateLawsFromReactions(model) |
| 490 | |
| 491 | matrix = -1 0 -2 |
| 492 | 1 0 0 |
| 493 | 0 -1 0 |
| 494 | 0 1 1 |
| 495 | species = ['s1', 's2', 's3', 's5'] |
| 496 | |
| 497 | (species s4 does not play a role in any reaction) |
| 498 | </code></pre> |
| 499 | |
| 500 | <hr> |
| 501 | |
| 502 | <h4>S = GetStoichiometrySparse(SBMLModel)</h4> |
| 503 | |
| 504 | <p>Takes</p> |
| 505 | |
| 506 | <ol> |
| 507 | <li>SBMLModel, an SBML Model structure</li> |
| 508 | </ol> |
| 509 | |
| 510 | <p>Returns</p> |
| 511 | |
| 512 | <ol> |
| 513 | <li>a sparse stoichiometry matrix produced from the reactions/species</li> |
| 514 | </ol> |
| 515 | |
| 516 | <p><em>NOTE:</em> This function was contributed by: Arsen Batagov (2006)</p> |
| 517 | |
| 518 | <hr> |
| 519 | |
| 520 | <h4>[names, values] = GetVaryingParameters(SBMLModel)</h4> |
| 521 | |
| 522 | <p>Takes </p> |
| 523 | |
| 524 | <ol> |
| 525 | <li>SBMLModel, an SBML Model structure</li> |
| 526 | </ol> |
| 527 | |
| 528 | <p>Returns </p> |
| 529 | |
| 530 | <ol> |
| 531 | <li>an array of strings representing the identifiers of any non-constant parameters |
| 532 | within the model </li> |
| 533 | <li>an array of the values of each of these parameter</li> |
| 534 | </ol> |
| 535 | |
| 536 | <p><em>NOTE:</em> the value returned will be (in order)</p> |
| 537 | |
| 538 | <ul> |
| 539 | <li>determined from assignmentRules/initialAssignments where appropriate</li> |
| 540 | <li>the attribute 'value' for the given parameter</li> |
| 541 | <li>NaN; if the value is not specified in any way within the model</li> |
| 542 | </ul> |
| 543 | |
| 544 | <hr> |
| 545 | |
| 546 | <h4>num = IsSpeciesInReaction(SBMLSpecies, SBMLReaction)</h4> |
| 547 | |
| 548 | <p>Takes</p> |
| 549 | |
| 550 | <ol> |
| 551 | <li>SBMLSpecies, an SBML Species structure</li> |
| 552 | <li>SBMLReaction, an SBML Reaction structure</li> |
| 553 | </ol> |
| 554 | |
| 555 | <p>Returns</p> |
| 556 | |
| 557 | <ol> |
| 558 | <li>the number of times the species occurs within the reaction</li> |
| 559 | </ol> |
| 560 | |
| 561 | <hr> |