diff profiler.xml @ 30:5231f398d784 draft

planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit 3bc1d1c6f4e28ac7ff8df79fe4e3f00a195938e6-dirty
author bgruening
date Tue, 20 Oct 2015 14:43:12 -0400
parents 3a2aab18a217
children
line wrap: on
line diff
--- a/profiler.xml	Tue Sep 16 13:46:05 2014 -0400
+++ b/profiler.xml	Tue Oct 20 14:43:12 2015 -0400
@@ -2,13 +2,13 @@
     <description>
         creates a profile plot for a score associated to genomic regions
     </description>
-    <expand macro="requirements" />
-    <expand macro="stdio" />
     <macros>
         <token name="@BINARY@">profiler</token>
         <import>deepTools_macros.xml</import>
     </macros>
+    <expand macro="requirements" />
     <command>
+<![CDATA[
         profiler
 
         --matrixFile $matrixFile
@@ -29,8 +29,8 @@
         #end if
 
         #if $scaleRegions.showScaleRegionsOpt == "yes":
-            --startLabel $scaleRegions.startLabel
-            --endLabel $scaleRegions.endLabel
+            --startLabel '$scaleRegions.startLabel'
+            --endLabel '$scaleRegions.endLabel'
         #end if
 
         #if $advancedOpt.showAdvancedOpt == "yes":
@@ -43,7 +43,7 @@
 
             --regionsLabel '$advancedOpt.regionsLabel'
 
-            #if str($advancedOpt.plotTitle).strip() != "":
+            #if $advancedOpt.plotTitle and str($advancedOpt.plotTitle).strip() != "":
                 --plotTitle '$advancedOpt.plotTitle'
             #end if
 
@@ -65,12 +65,13 @@
                 --yAxisLabel '$advancedOpt.yAxisLabel'
             #end if
 
-            @kmeans_clusterin@
+            @KMEANS_CLUSTERING@
 
         #end if
+]]>
     </command>
     <inputs>
-        <param name="matrixFile" format="bgzip" type="data" label="Matrix file from the computeMatrix tool"/>
+        <param name="matrixFile" format="deeptools_compute_matrix_archive" type="data" label="Matrix file from the computeMatrix tool"/>
         <conditional name="scaleRegions">
             <param name="showScaleRegionsOpt" type="select" label="The input matrix was computed in scale-regions mode">
                 <option value="no" selected="true">no</option>
@@ -78,8 +79,14 @@
             </param>
             <when value="no" />
             <when value="yes">
-                <param name="startLabel" type="text" value="TSS" size="10" label="Label for the region start" help ="[only for scale-regions mode] Label shown in the plot for the start of the region. Default is TSS (transcription start site), but could be changed to anything, e.g. &quot;peak start&quot;." />
-                <param name="endLabel" type="text" value="TES" size="10" label="Label for the region end" help="[only for scale-regions mode] Label shown in the plot for the region end. Default is TES (transcription end site)."/>
+                <param name="startLabel" type="text" value="TSS" size="10"
+                    label="Label for the region start"
+                    help ="[only for scale-regions mode] Label shown in the plot
+                    for the start of the region. Default is TSS (transcription start site),
+                    but could be changed to anything, e.g. &quot;peak start&quot;." />
+                <param name="endLabel" type="text" value="TES" size="10"
+                    label="Label for the region end"
+                    help="[only for scale-regions mode] Label shown in the plot for the region end. Default is TES (transcription end site)."/>
             </when>
         </conditional>
 
@@ -109,23 +116,46 @@
                     label="Plot width" 
                     help="Width in cm. The default value is 8 centimeters. The minimum value is 1 cm." />
                 <param name="plotType" type="select" label="Plot type"
-                    help="For the summary plot (profile) only. The &quot;lines&quot; option will plot the profile line based on the average type selected. The &quot;fill&quot; option fills the region between zero and the profile curve. The fill in color is semi transparent to distinguish different profiles. The &quot;add standard error&quot; option colors the region between the profile and the standard error of the data. As in the case of fill, a semi-transparent color is used. The option &quot;overlapped_lines&quot; plots each region values, one on top of the other; this option only works if &quot;one plot per proup&quot; is set.">
+                    help="For the summary plot (profile) only. The &quot;lines&quot; option will
+                    plot the profile line based on the average type selected. The &quot;fill&quot;
+                    option fills the region between zero and the profile curve. The fill in color is
+                    semi transparent to distinguish different profiles. The &quot;add standard error&quot;
+                    option colors the region between the profile and the standard error of the data.
+                    As in the case of fill, a semi-transparent color is used.
+                    The option &quot;overlapped_lines&quot; plots each region values, one on top of
+                    the other; this option only works if &quot;one plot per proup&quot; is set.">
                     <option value="lines" selected="true">lines</option>
                     <option value="fill">fill</option>
                     <option value="se">add standard error</option>
                     <option value="overlapped_lines">overlapped lines</option>
                 </param>
-                <param name="regionsLabel" type="text" value="genes" size="30" label="Labels for the regions plotted in the heatmap" help="If more than one region is being plotted a list of labels separated by comma and limited by quotes, is required. For example, &quot;label1, label2&quot;."/>
-                <param name="plotTitle" type="text" value="" size="30" label="Title of the plot" help="Title of the plot, to be printed on top of the generated image. Leave blank for no title." />
-                <param name="colors" type="text" value="" size="40" label="List of colors to use for the plotted lines" help="Color names and html hex strings (e.g. #eeff22) are accepted. The color names should be given separated by spaces. (--colors red blue green)">
-                    <validator type="expression" message="Only numbers, digits, '#' and spaces are allowed.">all(c in ' #abcdefghijklmnopqrstuvwxyz0123456789' for c in value)</validator>
+                <param name="regionsLabel" type="text" value="genes" size="30"
+                    label="Labels for the regions plotted in the heatmap"
+                    help="If more than one region is being plotted a list of labels separated
+                    by comma and limited by quotes, is required. For example, &quot;label1, label2&quot;."/>
+
+                <expand macro="plotTitle" />
+                <param name="colors" type="text" value="" size="40"
+                    label="List of colors to use for the plotted lines"
+                    help="Color names and html hex strings (e.g. #eeff22) are accepted.
+                    The color names should be given separated by spaces. (--colors red blue green)">
+                    <validator type="expression"
+                        message="Only numbers, digits, '#' and spaces are allowed.">all(c in ' #abcdefghijklmnopqrstuvwxyz0123456789' for c in value)</validator>
                 </param>
 
-                <param name="onePlotPerGroup" type="boolean" truevalue="--onePlotPerGroup" falsevalue="" label="Do one plot per group" help="When the region file contains groups separated by &quot;#&quot;, the default is to plot the averages for the distinct plots in one plot. If this option is set, each group will get its own plot, stacked on top of each other."/>
-                <param name="yMin" type="float" value="" size="3" label="Minimum value for the Y-axis of the summary plot. Leave empty for automatic values" optional="true"/>
-                <param name="yMax" type="float" value="" size="3" label="Maximum value for Y-axis of the summary plot. Leave empty for automatic values" optional="true"/>
-                <param name="xAxisLabel" type="text" value="gene distance (bp)" size="50" label="Description for the x-axis label" />
-                <param name="yAxisLabel" type="text" value="" size="50" label="Description for the y-axis label for the top panel" />
+                <param name="onePlotPerGroup" type="boolean" truevalue="--onePlotPerGroup" falsevalue=""
+                    label="Do one plot per group"
+                    help="When the region file contains groups separated by &quot;#&quot;, the default is
+                    to plot the averages for the distinct plots in one plot. If this option is set, each group
+                    will get its own plot, stacked on top of each other."/>
+                <param name="yMin" type="float" value="" size="3" optional="true"
+                    label="Minimum value for the Y-axis of the summary plot. Leave empty for automatic values"/>
+                <param name="yMax" type="float" value="" size="3" optional="true"
+                    label="Maximum value for Y-axis of the summary plot. Leave empty for automatic values" />
+                <param name="xAxisLabel" type="text" value="gene distance (bp)" size="50"
+                    label="Description for the x-axis label" />
+                <param name="yAxisLabel" type="text" value="" size="50"
+                    label="Description for the y-axis label for the top panel" />
 
                 <expand macro="kmeans_clustering" />
 
@@ -136,7 +166,14 @@
         <expand macro="output_image_file_format" />
         <expand macro="output_graphic_outputs" />
     </outputs>
+    <tests>
+        <test>
+            <param name="matrixFile" value="computeMatrix_result1.gz" ftype="deeptools_compute_matrix_archive" />
+            <output name="outFileName" file="profiler_result1.png" ftype="png" compare="sim_size" delta="100" />
+        </test>
+    </tests>
     <help>
+<![CDATA[
 
 **What it does**
 
@@ -158,7 +195,7 @@
 -----
 
 @REFERENCES@
-
+]]>
     </help>
     <expand macro="citations" />
 </tool>