diff tomo_reconstruct.xml @ 29:551d1ea2416d draft

planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
author rv43
date Tue, 21 Mar 2023 18:46:02 +0000
parents 0891477bcb16
children 50923144fb56
line wrap: on
line diff
--- a/tomo_reconstruct.xml	Tue Mar 21 17:59:41 2023 +0000
+++ b/tomo_reconstruct.xml	Tue Mar 21 18:46:02 2023 +0000
@@ -12,22 +12,40 @@
             --center_file "$center_file"
             --output_file "output.nex"
             --galaxy_flag
-            --x_bounds $x_bounds.low $x_bounds.upp
-            --y_bounds $y_bounds.low $y_bounds.upp
+            #if str($x_bounds.type_selector) == "enter_range"
+                --x_bounds $x_bounds.low $x_bounds.upp
+            #end if
+            #if str($y_bounds.type_selector) == "enter_range"
+                --y_bounds $y_bounds.low $y_bounds.upp
+            #end if
             -l "$log"
         ]]>
     </command>
     <inputs>
         <param name="input_file" type="data" format="nex" optional="false" label="Reduced tomography data"/>
         <param name="center_file" type="data" format="yaml" optional="false" label="Center axis input file"/>
-        <section name="x_bounds" title="Boundaries of reconstructed images in x-direction">
-            <param name="low" type="integer" value="-1" label="Lower bound"/>
-            <param name="upp" type="integer" value="-1" label="Upper bound"/>
-        </section>
-        <section name="y_bounds" title="Boundaries of reconstructed images in y-direction">
-            <param name="low" type="integer" value="-1" label="Lower bound"/>
-            <param name="upp" type="integer" value="-1" label="Upper bound"/>
-        </section>
+        <conditional name="x_bounds">
+            <param name="type_selector" type="select" label="Choose reconstructed image range in x-direction">
+                <option value="full_range" selected="true">Use the full image range</option>
+                <option value="enter_range">Manually enter the image range</option>
+            </param>
+            <when value="full_range"/>
+            <when value="enter_range">
+                <param name="low" type="integer" value="-1" optional="false" label="Lower image range index in x-direction"/>
+                <param name="upp" type="integer" value="-1" optional="false" label="Upper image range index in x-direction"/>
+            </when>
+        </conditional>
+        <conditional name="y_bounds">
+            <param name="type_selector" type="select" label="Choose reconstructed image range in y-direction">
+                <option value="full_range" selected="true">Use the full image range</option>
+                <option value="enter_range">Manually enter the image range</option>
+            </param>
+            <when value="full_range"/>
+            <when value="enter_range">
+                <param name="low" type="integer" value="-1" optional="false" label="Lower image range index in y-direction"/>
+                <param name="upp" type="integer" value="-1" optional="false" label="Upper image range index in y-direction"/>
+            </when>
+        </conditional>
     </inputs>
     <outputs>
         <expand macro="common_outputs"/>