Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-discuss » problem with SBML events
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Lucian Smith


Posts: 183
Registered:
July 2008
Re: problem with SBML events 07 May '09 12:53 Go to previous messageGo to previous message

Just for fun (and because I'm in the middle of testing Antimony for stuff
like this), I created the following model in an Antimony file, which I
think expresses what it is you want:


a -> b; k1*a;
k1 = 5;
at(time>=12): k1=6;


and then converted it to SBML:

<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level2/version4" level="2" version="4">
<model id="__main">
<listOfCompartments>
<compartment id="default_compartment" size="1"/>
</listOfCompartments>
<listOfSpecies>
<species id="a" compartment="default_compartment"/>
<species id="b" compartment="default_compartment"/>
</listOfSpecies>
<listOfParameters>
<parameter id="k1" value="5" constant="false"/>
</listOfParameters>
<listOfReactions>
<reaction id="_J0">
<listOfReactants>
<speciesReference species="a"/>
</listOfReactants>
<listOfProducts>
<speciesReference species="b"/>
</listOfProducts>
<kineticLaw>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<times/>
<ci> k1 </ci>
<ci> a </ci>
</apply>
</math>
</kineticLaw>
</reaction>
</listOfReactions>
<listOfEvents>
<event id="_E0">
<trigger>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<geq/>
<csymbol encoding="text" definitionURL="http://www.sbml.org/sbml/symbols/time"> time </csymbol>
<cn type="integer"> 12 </cn>
</apply>
</math>
</trigger>
<listOfEventAssignments>
<eventAssignment variable="k1">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<cn type="integer"> 6 </cn>
</math>
</eventAssignment>
</listOfEventAssignments>
</event>
</listOfEvents>
</model>
</sbml>

____________________________________________________________
To manage your sbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-discuss

For a web interface to the sbml-discuss mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-discuss list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   problem with SBML events Luca Freschi07 May '09 01:34
Read Message   Re: problem with SBML events Sven Sahle07 May '09 10:52
Read Message   Re: problem with SBML events Nicolas Le Novere07 May '09 11:27
Read Message   Re: problem with SBML events hannes07 May '09 10:59
Read Message   Re: problem with SBML events Mike Hucka07 May '09 11:19
Read Message   Re: problem with SBML events  Lucian Smith07 May '09 12:53
Read Message   Re: problem with SBML events Luca Freschi08 May '09 02:25
Previous Topic:Repository for SBML related code & scripts ?
Next Topic:Over 160 SBML-compatible tools!
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.