diff rpthermo.xml @ 1:862dd1b34906 draft

"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
author tduigou
date Wed, 09 Feb 2022 13:00:13 +0000
parents e56ba3389af5
children ec49df43ffae
line wrap: on
line diff
--- a/rpthermo.xml	Wed Nov 24 09:46:08 2021 +0000
+++ b/rpthermo.xml	Wed Feb 09 13:00:13 2022 +0000
@@ -1,7 +1,10 @@
-<tool id="rpThermo" name="Thermodynamics" version="5.9.2">
+<tool id="rpthermo" name="Thermo" version="@TOOL_VERSION@" profile="19.09">
     <description>Calculate the formation energy of chemical species and the Gibbs free energy of their reactions and pathways in an SBML</description>
+    <macros>
+        <token name="@TOOL_VERSION@">5.12.1</token>
+    </macros>
     <requirements>
-        <requirement type="package" version="5.9.2">rptools</requirement>
+        <requirement type="package" version="@TOOL_VERSION@">rptools</requirement>
     </requirements>
     <stdio>
         <regex match="WARNING:" level="warning" />
@@ -12,18 +15,16 @@
         python -m rptools.rpthermo
         '$input'
         '$pathway_with_thermo' 
-        --ph '$adv.ph'
+        --pH '$adv.ph'
         --ionic_strength '$adv.ionic_strength'
         --pMg '$adv.pMg'
-        --temp_k '$adv.temp_k' 
     ]]></command>
     <inputs>
         <param name="input" type="data" format="xml" label="Input File" />
         <section name="adv" title="Advanced Options" expanded="false">
-            <param name="ph" type="float" value="7.5" label="Compartment PH of the pathway" />
-            <param name="ionic_strength" type="float" value="200.0" label="Compartment ionic strength of the pathway" />
-            <param name="pMg" type="float" value="10.0" label="Compartment pMg of the pathway" />
-            <param name="temp_k" type="float" value="298.15" label="Compartment temperature in Kelvin" />
+            <param name="ph" type="float" value="7.5" min="0" max="14" label="Compartment pH of the pathway" />
+            <param name="ionic_strength" type="float" value="0.25" min="0" max="500" label="Compartment ionic strength of the pathway" />
+            <param name="pMg" type="float" value="3.0" label="Compartment pMg of the pathway" />
         </section>
     </inputs>
     <outputs>
@@ -34,7 +35,16 @@
         <!-- test 1: check if identical outputs are produced with default parameters  -->
             <param name="input" value="rp_013_0001.xml" />
             <param name="model" value="e_coli_iML1515.sbml" />
-            <output name="pathway_with_thermo" file="rp_013_0001_with_thermo.xml" ftype="xml" compare="diff" sort="true"/>
+            <output name="pathway_with_thermo" file="rp_013_0001_with_thermo.xml" ftype="xml" compare="diff" sort="true" >
+                <assert_contents>
+                    <is_valid_xml />
+                    <!--check thermo_dG0_prime value-->
+                    <has_text text="-2308.11630" />
+                    <!--check thermo_dG value-->
+                    <has_text text="-2151.84763" />
+                    <has_n_lines n="483" />
+                </assert_contents>
+            </output>
         </test>
     </tests>
     <help><![CDATA[
@@ -62,7 +72,6 @@
 * **--ph**\ :(float) Compartment PH of the pathway
 * **--ionic_strength**\ :(float) Compartment ionic strength of the pathway
 * **--pMg**\ :(float) Compartment pMg of the pathway
-* **--temp_k**\ :(float) Compartment temperature in Kelvin
 
 Project Links
 ---------------------
@@ -72,7 +81,7 @@
 Version
 ----------
 
-v5.9.2
+v5.12.1
 
 Authors
 -------
@@ -87,17 +96,6 @@
 
     ]]></help>
     <citations>
-        <citation type="bibtex">
-@article{noor2013consistent,
-  title={Consistent estimation of Gibbs energy using component contributions},
-  author={Noor, Elad and Haraldsd{\'o}ttir, Hulda S and Milo, Ron and Fleming, Ronan MT},
-  journal={PLoS Comput Biol},
-  volume={9},
-  number={7},
-  pages={e1003098},
-  year={2013},
-  publisher={Public Library of Science}
-}
-        </citation>
+        <citation type="doi">10.1371/journal.pcbi.1003098</citation>
     </citations>
 </tool>
\ No newline at end of file