diff profiler.xml @ 10:135f3bae5c56 draft

Uploaded
author bgruening
date Sat, 14 Dec 2013 03:29:29 -0500
parents d957e25e18a3
children baf4283e2d7f
line wrap: on
line diff
--- a/profiler.xml	Tue Dec 10 12:13:18 2013 -0500
+++ b/profiler.xml	Sat Dec 14 03:29:29 2013 -0500
@@ -1,8 +1,9 @@
-<tool id="deeptools_profiler" name="profiler" version="1.0">
+<tool id="deeptools_profiler" name="profiler" version="1.0.2">
     <description>
         creates a profile plot for a score associated to genomic regions
     </description>
     <expand macro="requirements" />
+    <expand macro="stdio" />
     <macros>
         <import>deepTools_macros.xml</import>
     </macros>
@@ -10,10 +11,10 @@
         profiler
 
         --matrixFile $matrixFile
+        --outFileName $outFileName
 
         #if $output.showOutputSettings == "yes"
-            #set newoutFileName = str($outFileName)+"."+str($output.outFileFormat)
-            --outFileName $newoutFileName
+            --plotFileFormat $output.outFileFormat
 
             #if $output.saveData:
                 --outFileNameData '$outFileNameData' 
@@ -27,8 +28,7 @@
                 --outFileSortedRegions '$outFileSortedRegions'
             #end if
         #else
-            #set newoutFileName = str($outFileName)+".png"
-            --outFileName $newoutFileName
+            --plotFileFormat 'png'
         #end if
 
         #if $scaleRegions.showScaleRegionsOpt == "yes":
@@ -64,7 +64,6 @@
                 --yAxisLabel '$advancedOpt.yAxisLabel'
             #end if
         #end if
-        ; mv $newoutFileName $outFileName
     </command>
     <inputs>
         <param name="matrixFile" format="bgzip" type="data" label="Matrix file from the computeMatrix tool"/>
@@ -80,7 +79,9 @@
             </when>
         </conditional>
 
-        <expand macro="graphic_output_settings" />
+        <expand macro="graphic_output_settings">
+            <expand macro="image_file_format" />
+        <expand>
 
         <conditional name="advancedOpt">
             <param name="showAdvancedOpt" type="select" label="Show advanced options" >
@@ -110,7 +111,6 @@
                     <option value="std">std</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="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."/>
@@ -122,25 +122,9 @@
         </conditional>
     </inputs>
     <outputs>
-        <data format="png" name="outFileName" label="${tool.name} image">
-            <change_format>
-                <when input="output.outFileFormat" value="pdf" format="pdf" />
-                <when input="output.outFileFormat" value="svg" format="svg" />
-                <when input="output.outFileFormat" value="eps" format="eps" />
-                <when input="output.outFileFormat" value="emf" format="emf" />
-            </change_format>
-        </data>
-        <data format="tabular" name="outFileNameData" label="${tool.name} raw plot data">
-            <filter>(output['showOutputSettings'] == 'yes' and output['saveData'] == True)</filter>
-        </data>
-        <data format="tabular" name="outFileNameMatrix" label="${tool.name} matrix of heatmap values">
-            <filter>(output['showOutputSettings'] == 'yes' and output['saveMatrix'] == True)</filter>
-        </data>
-        <data format="bed" name="outFileSortedRegions" label="${tool.name} sorted/filtered regions">
-            <filter>(output['showOutputSettings'] == 'yes' and output['saveSortedRegions'] == True)</filter>
-        </data>
-  </outputs>
-  <help>
+        <expand macro="output_graphic_outputs" />
+    </outputs>
+    <help>
 
 **What it does**