diff hicMergeMatrixBins.xml @ 12:5b298225b9b4 draft

"planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 91a0182476a7fc26be7bef1677790518c4e88348-dirty"
author bgruening
date Mon, 16 Dec 2019 13:21:31 +0000 (2019-12-16)
parents 9f926a9d3f84
children 4d8f5bb39a78
line wrap: on
line diff
--- a/hicMergeMatrixBins.xml	Mon Dec 09 10:38:54 2019 +0000
+++ b/hicMergeMatrixBins.xml	Mon Dec 16 13:21:31 2019 +0000
@@ -6,13 +6,12 @@
     </macros>
     <expand macro="requirements" />
     <command detect_errors="exit_code"><![CDATA[
-        ln -s '$matrix_h5_cooler' 'matrix.$matrix_h5_cooler.ext' &&
-        @BINARY@
-            --matrix 'matrix.$matrix_h5_cooler.ext'
+        hicMergeMatrixBins
+            --matrix '$matrix_h5_cooler'
             --numBins $numBins
             $runningWindow
-            --outFileName 'matrix.$matrix_h5_cooler.ext'
-        && mv 'matrix.$matrix_h5_cooler.ext' matrix
+            --outFileName matrix.$outputFormat
+        && mv matrix.$outputFormat matrix
 
 ]]>
     </command>
@@ -21,11 +20,15 @@
 
         <param argument="--numBins" type="integer" min="1" value="3" label="Number of bins to merge" />
         <param argument="--runningWindow" type="boolean" falsevalue="" truevalue="--runningWindow" label="Set to merge for using a running window of length --numBins. Usually not set." />
+        <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="matrix" format="cool">
+        <data name="outFileName" from_work_dir="matrix" format="h5">
               <change_format>
-                <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5"/>
+                <when input="outputFormat" value="cool" format="cool" />
             </change_format>
         </data>
     </outputs>
@@ -33,11 +36,7 @@
         <test>
             <param name="matrix_h5_cooler" value="small_test_matrix.h5"/>
             <param name="numBins" value="5" />
-            <output name="outFileName" ftype="h5">
-                <assert_contents>
-                    <has_h5_keys keys='intervals,matrix,nan_bins'/>
-                </assert_contents>
-            </output>
+            <output name="outFileName" file="hicMergeMatrixBins_result1.npz.h5" ftype="h5" compare="sim_size" delta="24000" />
         </test>
     </tests>
     <help><![CDATA[