diff macros.xml @ 7:602a0c6f4bb0 draft

planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 0456f085bac2c88b8cbddfcf12b02776d2a0d457
author bgruening
date Wed, 07 Mar 2018 03:39:03 -0500
parents 8187f841afea
children 2d8543aeeb65
line wrap: on
line diff
--- a/macros.xml	Tue Jan 02 10:16:20 2018 -0500
+++ b/macros.xml	Wed Mar 07 03:39:03 2018 -0500
@@ -1,6 +1,13 @@
 <macros>
     <token name="@THREADS@">\${GALAXY_SLOTS:-4}</token>
-    <token name="@WRAPPER_VERSION@">2.0</token>
+    <token name="@WRAPPER_VERSION@">2.1</token>
+
+    <token name="@USE_RANGE@">
+        #if $use_range.select_use_range == "yes_use_range":
+            --range $range_min:$range_max
+        #end if
+    </token>
+
     <xml name="requirements">
         <requirements>
             <requirement type="package" version="@WRAPPER_VERSION@">hicexplorer</requirement>
@@ -19,6 +26,23 @@
     <xml name="zMax">
         <param argument="--zMax" name="zMax" type="float" optional="true" label="zMax for 3D plot"/> <!-- this should only be enabled when both or 3d is selected for param whatToShow -->
     </xml>
+    <xml name="use_range">
+        <conditional name="use_range"> <!-- argparse specifies one argument of type min_range:max_range -->
+            <param name="select_use_range" type="select" label="Range restriction (in bp)" argument="--range">
+                <option value="no_use_range">No restriction</option>
+                <option value="yes_use_range">Only consider counts within a range</option>
+            </param>
+            <when value="no_use_range"/>
+            <when value="yes_use_range">
+                <expand macro='range' />
+            </when>
+        </conditional>
+    </xml>
+
+    <xml name="range">
+        <param name="range_min" type="integer" value="" min="0"/>
+        <param name="range_max" type="integer" value="" min="0"/>
+    </xml>
 
     <xml name="colormap">
         <param argument="--colorMap" name="colormap" type="select" optional="True" label="Color map to use for the heatmap" help=" Available color map names can be found here: https://matplotlib.org/examples/color/colormaps_reference.html">
@@ -300,13 +324,12 @@
         <param name="pseudocount" type="float" value="1" label="Pseudocount" help="Small number to avoid dividing by zero."/>
     </xml>
     <xml name='matrix_h5_cooler_macro'>
-    <param name='matrix_h5_cooler'  type="data" format="h5,cool" 
-                            label="Matrix to compute on."/>
-       
+        <param name='matrix_h5_cooler' type="data" format="h5,cool"
+            label="Matrix to compute on"/>
     </xml>
     <xml name='matrix_h5_cooler_multiple_macro'>
-        <param name='matrix_h5_cooler_multiple'  type="data" format="h5,cool" 
-                            label="Matrix to compute on." multiple="True"/>
+        <param name='matrix_h5_cooler_multiple' type="data" format="h5,cool"
+            label="Matricies to compute on" multiple="true"/>
     </xml>
     <token name="@REFERENCES@">
 
@@ -556,9 +579,9 @@
 
     <xml name="spacer_macro">
         <param name="spacer_width" type="float" value="" optional="True"
-                label="Include spacer at the end of the track." help="Width of the spacer." />
+              label="Include spacer at the end of the track." help="Width of the spacer." />
     </xml>
     <xml name="fontsize_macro">
-                    <param name="fontsize" type="integer" value="" optional="True" label="Fontsize" />
+        <param name="fontsize" type="integer" value="" optional="True" label="Fontsize" />
     </xml>
 </macros>