changeset 7:12616a516cec draft

"planemo upload for repository https://github.com/brsynth/rpFbaAnalysis commit 47caed1dd87e80ae226fabb584e9d63d7c86a436-dirty"
author ggricourt
date Wed, 23 Feb 2022 16:38:47 +0000
parents 1dd60c91c8a2
children 50253e9abcda
files wrap.xml
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wrap.xml	Fri Feb 18 15:34:30 2022 +0000
+++ b/wrap.xml	Wed Feb 23 16:38:47 2022 +0000
@@ -12,6 +12,11 @@
     </stdio>
     <command detect_errors="exit_code"><![CDATA[
         python -m rpfa
+            #if $reference_cond.reference_select == "history"
+                --input-model-file '$reference_cond.model'
+            #else
+                --input-model-file '$reference_cond.model.fields.path'
+            #end if
             --input-model-file '$model'
             #if $pathway:
                 --input-pathway-file '$pathway'
@@ -33,7 +38,24 @@
             --output-file '$output_csv'
     ]]></command>
     <inputs>
-        <param name="model" type="data" format="sbml" label="Chassis model file" />
+        <conditional name="model_cond">
+          <param name="model_select" type="select" label="Select a reference dataset your history or use a built-in?">
+            <option value="builtin">Use a built-in reference</option>
+            <option value="history">Use reference data from the history</option>
+          </param>
+          <when value="builtin">
+            <param name="model" type="select" label="Select reference data set" help="If a reference data set of interest is not listed, contact the Galaxy administrators">
+              <options from_data_table="bigg_model_sbml">
+                <filter type="sort_by" column="2"/>
+                <validator type="no_options" message="No indexes are available for the selected input dataset"/>
+              </options>
+            </param>
+          </when>
+          <when value="history">
+            <param name="model" type="data" format="sbml,xml" label="Chassis model file" />
+          </when>
+      </conditional>
+
         <param name="pathway" type="data" format="sbml" label="Pathway file" optional="True" />
         <param name="medium" type="data" format="csv" label="Medium file" optional="True" />