Repository 'hicexplorer_hicmergematrixbins'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/hicexplorer_hicmergematrixbins

Changeset 5:d04398893232 (2018-01-03)
Previous changeset 4:8cad169bde4c (2018-01-02) Next changeset 6:8926550196ce (2018-03-07)
Commit message:
planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit d76f2040a05a5f8752cbfe9a8bc1ef9efae45c01
modified:
hicMergeMatrixBins.xml
b
diff -r 8cad169bde4c -r d04398893232 hicMergeMatrixBins.xml
--- a/hicMergeMatrixBins.xml Tue Jan 02 10:15:37 2018 -0500
+++ b/hicMergeMatrixBins.xml Wed Jan 03 13:29:09 2018 -0500
b
@@ -1,4 +1,4 @@
-<tool id="hicexplorer_hicmergematrixbins" name="@BINARY@" version="@WRAPPER_VERSION@.0">
+<tool id="hicexplorer_hicmergematrixbins" name="@BINARY@" version="@WRAPPER_VERSION@.1">
     <description>Merges bins from a Hi-C matrix</description>
     <macros>
         <token name="@BINARY@">hicMergeMatrixBins</token>
@@ -10,7 +10,8 @@
             --matrix '$matrix_h5_cooler'
             --numBins $numBins
             $runningWindow
-            --outFileName ./out.npz.h5
+            --outFileName matrix.$outputFormat
+        && mv matrix.$outputFormat matrix
 
 ]]>
     </command>
@@ -19,9 +20,17 @@
 
         <param argument="--numBins" type="integer" min="1" value="3" label="Number of bins to merge" />
         <param argument="--runningWindow" type="boolean" falsevalue="" truevalue="--runningWindow" label="Merge using a running window of length --numBins" />
+        <param name='outputFormat' type='select' label="Output file format">
+            <option value='h5' selected='true'>HiCExplorer format</option>
+            <option value="cool">cool</option>
+        </param>
     </inputs>
     <outputs>
-        <data name="outFileName" from_work_dir="out.npz.h5" format="h5"/>
+        <data name="outFileName" from_work_dir="matrix" format="h5">
+              <change_format>
+                <when input="outputFormat" value="cool" format="cool" />
+            </change_format>
+        </data>
     </outputs>
     <tests>
         <test>