MathSBML

MathSBML Home Page MathSBML Site Map

MathSBML Model Builder: add/remove/modifyParameter


addParameter[options] adds a <parameter.../> definition to the current model. Options are the same as for parameterToSBML.

If an id is not specified for the parameter one is automatically generated.

addParameter[x, options] is the same as addParameter[id->x, options].

modifyParameter[options] modifies the specified <parameter.../> definition. Options are the same as for parameterToSBML.

modifyParameter[x, options] is the same as modifyParameter[id->x, options].

removeParameter[id] removes the specified <parameter.../> definition from the current model.

addParameter, removeParameter, modifyParameter new in 2.2.0.

Example


Input:  newModel[];
        addParameter[id -> "Pi", value -> 3.14159, constant -> True];
Output: Parameter Pi added.

Input:  addParameter[id -> "E", value -> 2.71828, constant -> True];
Output: Parameter E added.

Input:  modifyParameter[E, name -> "ExponentialE"];
Output: Previous occurance of parameter E removed.
        Parameter E added.

Input:  addParameter[V, name -> "Cell Volume", value -> 1, units -> "litre", constant -> False];
Output: Parameter V added.

Input:  createModel[]
Output: <?xml version="1.0" encoding="UTF-8"?>
        <!-- Generated 1-October-2003 11:27:04.496836 -->
        <!-- Generated by MathSBML 2.1.5b16 (1 Oct 2003) -->
        <sbml xmlns="http://www.sbml.org/sbml/level2"
            level="2"
            version="1">
         <model id="SBMLModel"
             name="SBMLModel">
          <listOfFunctionDefinitions/>
          <listOfUnitDefinitions/>
          <listOfCompartments/>
          <listOfSpecies/>
          <listOfParameters>
           <parameter id="Pi"
               name="Pi"
               value="3.14159"/>
           <parameter id="E"
               name="ExponentialE"
               value="2.71828"/>
           <parameter id="V"
               name="Cell Volume"
               value="1"
               units="litre"
               constant="false"/>
          </listOfParameters>
          <listOfRules/>
          <listOfReactions/>
          <listOfEvents/>
         </model>
        </sbml>