Hi everyone!
Is there a way/tool to convert SBML level 3 into a SBML level 2? I try in
http://sbml.org/Downloads and test some, but I don't know how to obtain level 2 from a level 3.
My problem is that I downloaded from BiGG database a curate SBML model level 3, but I have problems to use it with a software, because It uses SBML level 2 who header is like this:
""" SBML THAT WORKS OK WITH SOFTWARE
<?xml version="1.0" encoding="UTF-8"?>
<sbml level="2" version="1" >
<model id="MyModel" name="mymodel" >
"""
However, my model begins like this:
""" SBML DOWNLOADED THAT DOESN'T WORKS OK WITH THE SOFTWARE
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<!-- Created by ModelPolisher version 1.7 on 2017-05-08 at 23:05:41 PDT with JSBML version 1.2. -->
<sbml xmlns="
http://www.sbml.org/sbml/level3/version1/core" fbc:required="false" groups:required="false" level="3" sboTerm="SBO:0000121" version="1"
xmlns:fbc="
http://www.sbml.org/sbml/level3/version1/fbc/version2" xmlns:groups="
http://www.sbml.org/sbml/level3/version1/groups/version1">
<notes>
<body xmlns="
http://www.w3.org/1999/xhtml" style="font-size: 14px; height: 100%; width: 100%; color: #444444; font-family:Helvetica, sans-serif; margin-top: 0px; margin-left: 0px;">
"""
The software print an error because tags in listOfReactions are diferent.
""" SBML THAT WORKS OK WITH SOFTWARE
<listOfReactions>
<reaction id="R_12DGR120tipp" name="R_1_2_diacylglycerol_transport_via_flipping__periplasm_to_cytoplasm__n_C120_" reversible="false">
<notes>
<html:p>GENE_ASSOCIATION: </html:p>
<html:p>PROTEIN_ASSOCIATION: </html:p>
<html:p>SUBSYSTEM: S_Transport__Inner_Membrane</html:p>
<html:p>PROTEIN_CLASS: </html:p>
</notes>
<listOfReactants>
<speciesReference species="M_12dgr120_p" stoichiometry="1.000000"/>
</listOfReactants>
<listOfProducts>
<speciesReference species="M_12dgr120_c" stoichiometry="1.000000"/>
</listOfProducts>
<kineticLaw>
<math xmlns="
http://www.w3.org/1998/Math/MathML">
<ci> FLUX_VALUE </ci>
</math>
<listOfParameters>
<parameter id="LOWER_BOUND" value="0.000000" units="mmol_per_gDW_per_hr"/>
<parameter id="UPPER_BOUND" value="999999.000000" units="mmol_per_gDW_per_hr"/>
<parameter id="OBJECTIVE_COEFFICIENT" value="0.000000"/>
<parameter id="FLUX_VALUE" value="0.000000" units="mmol_per_gDW_per_hr"/>
<parameter id="REDUCED_COST" value="0.000000"/>
</listOfParameters>
</kineticLaw>
</reaction>
"""
""" SBML DOWNLOADED THAT DOESN'T WORKS OK WITH THE SOFTWARE
<listOfReactions>
<reaction fast="false" fbc:lowerFluxBound="cobra_0_bound" fbc:upperFluxBound="cobra_default_ub" id="R_DM_4crsol_c" metaid="R_DM_4crsol_c" name="Sink needed to allow p-Cresol to leave system"
reversible="false" sboTerm="SBO:0000628">
<annotation xmlns:sbml="
http://www.sbml.org/sbml/level3/version1/core">
<rdf:RDF xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="
http://biomodels.net/biology-qualifiers/">
<rdf:Description rdf:about="#R_DM_4crsol_c">
<bqbiol:is>
<rdf:Bag>
<rdf:li rdf:resource="
http://identifiers.org/bigg.reaction/4crsol" />
</rdf:Bag>
</bqbiol:is>
</rdf:Description>
</rdf:RDF>
</annotation>
<listOfReactants>
<speciesReference constant="true" sboTerm="SBO:0000010" species="M_4crsol_c" stoichiometry="1" />
</listOfReactants>
</reaction>
"""
Thanks in advanced!!
Izal