Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-discuss » Handwritten sbml model. Please look.
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Frank Bergmann


Posts: 81
Registered:
August 2005
Re: Handwritten sbml model. Please look. 05 Mar '07 12:38 Go to previous messageGo to previous message

Hello ... there were a couple of typo's in the SBML ... for a corrected
version try the one below. Please keep in mind that id's in SBML should
match the regular expression: (_|[a-z]|[A-Z])(_|[a-z]|[A-Z]|[0-9]). In
other words, x1' is not a valid identifier. Other than that, you had a
space missing after the version attribute, before the namespace
declaration ... oh and you are not allowed to define an empty list of
reactants, just leave it out ...

In any case. SBML is not meant to be written by hand ... there are many
tools out there that can help with that ...

Cheers
Frank

<?xml version="1.0" encoding="UTF-8"?>
<sbml level="2" version="1"
xmlns="http://www.sbml.org/sbml/level2"><model name
="SingleCompartmentSystem" >
<listOfCompartments>
<compartment id="one"/>
</listOfCompartments>
<listOfSpecies>
<species compartment="one" id="x1" />
</listOfSpecies>
<listOfReactions>
<reaction id="waterlevel">
<listOfProducts>
<speciesReference species="x1"/>
</listOfProducts>
<kineticLaw>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<minus/>
<apply>
<times/>
<ci> k </ci>
<ci> x1 </ci>
</apply>
</apply>
</math>
<listOfParameters>
<parameter id="k"/>
<parameter id="u"/>
<parameter id="x1"/>
</listOfParameters>
</kineticLaw>
</reaction>
</listOfReactions>
</model>
</sbml>

P.S: the Validator under http://sys-bio.org/Validate will give you a
textbox, so you could fiddle with your xml in there until it passes
validation ...

> -----Original Message-----
> From: sbml-discuss-bounces@caltech.edu [mailto:sbml-discuss-
> bounces@caltech.edu] On Behalf Of Delboy
> Sent: Monday, March 05, 2007 10:00 AM
> To: sbml-discuss@caltech.edu
> Subject: [sbml-discuss] Handwritten sbml model. Please look.
>
>
> Hi, I have a model described below. I've tried writing it out by hand
> in sbml xml. Could you take a look and tell me whats wrong with it?
>
> The model is one of a single water tank(One), with an input(u) and an
> output(k*x1) of water.
>
>
>
> Input: u --> Tank:One --> Output: k*x1
>
>
>
> The equation to measure the level of water in the tank is:
>
>
>
> x1' = u - k * x1.
>
>
>
> Heres the xml i've got so far.
>
>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <sbml level="2"
> version="2"xmlns="http://www.sbml.org/sbml/level2/version2">
>
> <model name="SingleCompartmentSystem">
> <listOfCompartments>
> <compartment id="one"/>
> </listOfCompartments>
> <listOfSpecies>
> <species compartment="one" id="x1'" />
> </listOfSpecies>
> <listOfReactions>
> <reaction id="waterlevel">
> <listOfReactants>
> </listOfReactants>
> <listOfProducts>
> <speciesReference species="x1'"
> </listOfProducts>
> <kineticLaw>
> <math xmls="http://www.w3.org/1998/Math/MathML">
> <apply>
> <minus/>
> <apply>
> <times/>
> <ci> k </ci>
> <ci> x1 </ci>
> </apply>
> </apply>
> </math>
> <listOfParameter>
> <parameter id="k"/>
> <parameter id="u"/>
> <parameter id="x1"/>
> </listOfParameters>
> <kineticLaw>
> </reaction>
> </listOfReactions>
> </model>
> </sbml>
>
>
> Thanks for any help.
> ____________________________________________________________
> 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.
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>


____________________________________________________________
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   Handwritten sbml model. Please look. Delboy05 Mar '07 04:24
Read Message   Re: Handwritten sbml model. Please look. Herbert Sauro05 Mar '07 11:52
Read Message   Re: Handwritten sbml model. Please look.  Frank Bergmann05 Mar '07 12:38
Read Message   Re: Handwritten sbml model. Please look. Stefan.Hoops05 Mar '07 18:22
Read Message   Re: Handwritten sbml model. Please look. Delboy06 Mar '07 02:05
Read Message   Re: Handwritten sbml model. Please look. Rainer Machne07 Mar '07 07:39
Read Message   Re: Handwritten sbml model. Please look. Stefan.Hoops07 Mar '07 07:40
Read Message   Re: Handwritten sbml model. Please look. Delboy09 Mar '07 02:21
Read Message   Re: Handwritten sbml model. Please look. Herbert Sauro10 Mar '07 16:54
Read Message   Re: Handwritten sbml model. Please look. Delboy15 Mar '07 03:24
Read Message   Re: Handwritten sbml model. Please look. Stefan.Hoops15 Mar '07 05:06
Read Message   Re: Handwritten sbml model. Please look. Sarah Keating15 Mar '07 07:45
Read Message   Re: Handwritten sbml model. Please look. Delboy16 Mar '07 05:38
Read Message   Re: Handwritten sbml model. Please look. Delboy19 Mar '07 10:45
Read Message   Re: Handwritten sbml model. Please look. Stefan.Hoops19 Mar '07 12:18
Read Message   Re: Handwritten sbml model. Please look. Delboy20 Mar '07 02:26
Read Message   Re: Handwritten sbml model. Please look. Stefan.Hoops21 Mar '07 08:38
Read Message   Re: Handwritten sbml model. Please look. Delboy26 Mar '07 01:40
Previous Topic:Announcement: Xholon supports SBML
Next Topic:Software tutorials are fair game for ICSB 2007
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.