diff deepTools_macros.xml @ 13:b4c5dd45778a draft

Uploaded
author bgruening
date Mon, 16 Dec 2013 04:36:19 -0500
parents aea72b24dea0
children a7ae8ce85f45
line wrap: on
line diff
--- a/deepTools_macros.xml	Sat Dec 14 08:58:41 2013 -0500
+++ b/deepTools_macros.xml	Mon Dec 16 04:36:19 2013 -0500
@@ -1,5 +1,5 @@
 <macros>
-    <macro name="bamCorrelate_mode_actions">
+    <xml name="bamCorrelate_mode_actions">
         <conditional name="advancedOpt">
             <param name="showAdvancedOpt" type="select" label="Show advanced options" >
                 <option value="no" selected="true">no</option>
@@ -36,14 +36,14 @@
                 <expand macro="colormap" />
             </when>
         </conditional>
-    </macro>
+    </xml>
     <token name="@THREADS@">--numberOfProcessors "\${GALAXY_SLOTS:-4}"</token>
-    <macro name="requirements">
+    <xml name="requirements">
         <requirements>
             <requirement type="package" >samtools</requirement>
             <requirement type="package" >deepTools</requirement>
             <requirement type="package" >ucsc_tools</requirement>
-            <requirement type="package" version="1.5.4_6765c227d9628f8e6ba690e6fde7f1d86c497b49">deepTools</requirement>
+            <requirement type="package" version="1.5.4_74aac0843a956ca352e3e85087f20c8f158e2f7d">deepTools</requirement>
             <requirement type="package" version="0.1">ucsc_tools</requirement>
             <requirement type="package" version="1.7.1">numpy</requirement>
             <requirement type="package" version="0.7.7">pysam</requirement>
@@ -53,18 +53,17 @@
             <requirement type="package" version="12-2013">bx-python</requirement>
             <yield />
         </requirements>
-    </macro>
-    <macro name="stdio">
+    </xml>
+    <xml name="stdio">
         <stdio>
             <exit_code range="1:" />
             <exit_code range=":-1" />
-            <exit_code range="0" level="warning" description="Warning" />
             <regex match="Error:" />
             <regex match="Exception:" />
             <regex match="EXception:" />
             <regex match="Traceback" />
         </stdio>
-    </macro>
+    </xml>
     <token name="@REFERENCES@">
 
 For more informations, please visit our `project site`_.
@@ -80,7 +79,7 @@
 
     </token>
 
-    <macro name="multiple_input_bams">
+    <xml name="multiple_input_bams">
         <repeat name="input_files" title="BAM files" min="2">
             <param name="bamfile" type="data" format="bam" 
                 label="Bam file" 
@@ -89,7 +88,7 @@
                 label="Label"
                 help="Label to use in the output. If not given the dataset name will be used instead."/>
           </repeat>
-    </macro>
+    </xml>
 
     <token name="@multiple_input_bams@">
         #for $i in $input_files:
@@ -109,7 +108,7 @@
         #end for
     </token>
 
-    <macro name="reference_genome_source">
+    <xml name="reference_genome_source">
         <conditional name="source">
             <param name="ref_source" type="select" label="Reference genome">
                 <option value="cached">locally cached</option>
@@ -127,7 +126,7 @@
                 <param name="input1" type="data" format="twobit" label="Select a reference dataset in 2bit format" />
             </when>
         </conditional>
-    </macro>
+    </xml>
 
     <token name="@reference_genome_source@">
     #if $source.ref_source=="history":
@@ -137,7 +136,7 @@
     #end if
     </token>
 
-    <macro name="effectiveGenomeSize">
+    <xml name="effectiveGenomeSize">
         <conditional name="effectiveGenomeSize">
             <param name="effectiveGenomeSize_opt" type="select" label="Effective genome size"
                 help="The effective genome size is the portion of the genome that is mappable. Large fractions of the genome are stretches of NNNN that should be discarded. 
@@ -153,9 +152,9 @@
                 <param name="effectiveGenomeSize" type="integer" value="" label="Effective genome size" />
             </when>
         </conditional>
-    </macro>
+    </xml>
 
-    <macro name="image_file_format">
+    <xml name="image_file_format">
         <param name="outFileFormat" type="select" label="Image file format">
             <option value="png" selected="true">png</option>
             <option value="pdf">pdf</option>
@@ -163,9 +162,13 @@
             <option value="eps">eps</option>
             <option value="emf">emf</option>
         </param>
-    </macro>
+    </xml>
 
-    <macro name="graphic_output_settings">
+    <xml name="input_save_matrix_values">
+        <param name="saveMatrix" type="boolean" label="Save the matrix of values underlying the heatmap"/>
+    </xml>
+
+    <xml name="input_graphic_output_settings">
         <conditional name="output" >
             <param name="showOutputSettings" type="select" label="Show advanced output settings" >
                 <option value="no" selected="true">no</option>
@@ -174,14 +177,13 @@
             <when value="no" />
             <when value="yes">
                 <yield />
-                <param name="saveData" type="boolean" label="Save the data underlying data for the average profile"/>
-                <param name="saveMatrix" type="boolean" label="Save the the matrix of values underlying the heatmap"/>
+                <param name="saveData" type="boolean" label="Save the data underlying the average profile"/>
                 <param name="saveSortedRegions" type="boolean" label="Save the regions after skipping zeros or min/max threshold values" help="The order of the regions in the file follows the sorting order selected. This is useful, for example, to generate other heatmaps keeping the sorting of the first heatmap."/>
             </when>
         </conditional>
-    </macro>
+    </xml>
 
-    <macro name="input_image_file_format">
+    <xml name="input_image_file_format">
         <param name="outFileFormat" type="select" label="Image file format">
             <option value="png" selected="true">png</option>
             <option value="pdf">pdf</option>
@@ -189,9 +191,9 @@
             <option value="eps">eps</option>
             <option value="emf">emf</option>
         </param>
-    </macro>
+    </xml>
 
-    <macro name="output_image_file_format">
+    <xml name="output_image_file_format">
         <data format="png" name="outFileName" label="${tool.name} image">
             <change_format>
                 <when input="output.outFileFormat" value="pdf" format="pdf" />
@@ -200,10 +202,20 @@
                 <when input="output.outFileFormat" value="emf" format="emf" />
             </change_format>
         </data>
-    </macro>
+    </xml>
 
-    <macro name="output_graphic_outputs">
-        <yield />
+    <xml name="output_save_matrix_values">
+        <data format="tabular" name="outFileNameMatrix" label="${tool.name} on ${on_string}: Heatmap values">
+            <filter>
+            ((
+                output['showOutputSettings'] == 'yes' and 
+                output['saveMatrix'] is True
+            ))
+            </filter>
+        </data>
+    </xml>
+
+    <xml name="output_graphic_outputs">
         <data format="tabular" name="outFileNameData" label="${tool.name} on ${on_string}: averages per matrix column">
             <filter>
             ((
@@ -212,14 +224,6 @@
             ))
             </filter>
         </data>
-        <data format="tabular" name="outFileNameMatrix" label="${tool.name} on ${on_string}: Heatmap values">
-            <filter>
-            ((
-                output['showOutputSettings'] == 'yes' and 
-                output['saveMatrix'] is True
-            ))
-            </filter>
-        </data>
         <data format="bed" name="outFileSortedRegions" label="${tool.name} on ${on_string}: sorted/filtered regions">
             <filter>
             ((
@@ -228,9 +232,9 @@
             ))
             </filter>
         </data>
-    </macro>
+    </xml>
 
-    <macro name="colormap">
+    <xml name="colormap">
         <param name="colorMap" type="select" label="Color map to use for the heatmap" help=" Available color map names can be found here: http://www.astro.lsa.umich.edu/~msshin/science/code/matplotlib_cm/">
             <option value="RdYlBu" selected="true">RdYlBu</option>
             <option value="Accent">Accent</option>
@@ -372,6 +376,6 @@
             <option value="afmhot_r">afmhot reversed</option>
         </param>
 
-    </macro>
+    </xml>
 
 </macros>