diff hicBuildMatrix.xml @ 13:4b85ea34afae draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 3b41d687ff30583540d055f6995de00530cca81d-dirty"
author bgruening
date Mon, 16 Dec 2019 15:44:31 -0500
parents 8bf84c4cb1cb
children 231687cac31b
line wrap: on
line diff
--- a/hicBuildMatrix.xml	Mon Dec 16 10:33:21 2019 -0500
+++ b/hicBuildMatrix.xml	Mon Dec 16 15:44:31 2019 -0500
@@ -11,7 +11,7 @@
 
         mkdir ./QCfolder &&
         mkdir $qc.files_path &&
-        hicBuildMatrix
+        @BINARY@
 
             --samFiles
             #for $repeat in $samFiles:
@@ -25,7 +25,10 @@
             #end if
 
             #if $restrictionCutFileBinSize_conditional.restrictionCutFileBinSize_selector == "optionBinSize":
-                --binSize $restrictionCutFileBinSize_conditional.binSize
+                --binSize 
+                #for $repeat in $restrictionCutFileBinSize_conditional.binSizes
+                    '${repeat.binSize}'
+                #end for
             #end if
 
 
@@ -93,9 +96,10 @@
                               is too far away from the nearest restriction site." />
             </when>
             <when value="optionBinSize">
-                <param argument="--binSize" type="integer" value="" optional="true" label="Bin size in bp"
-                    help="If used, the restriction cut places (if given) are used to only consider reads that are in the vicinity of the resctriction sites.
-                    Otherwise all reads in the interval are considered. "/>
+                <repeat  name='binSizes' title='Bin size in bp' min="1" help="If used, the restriction cut places (if given) are used to only consider reads that are in the vicinity of the resctriction sites.
+                        Otherwise all reads in the interval are considered. Use multiple ones to create a mcool file.">
+                    <param argument="--binSize" type="integer" value="" optional="true" label="Bin size in bp"/>
+                </repeat>
             </when>
         </conditional>
 
@@ -158,12 +162,41 @@
             </repeat>
             <conditional name="restrictionCutFileBinSize_conditional">
                 <param name="restrictionCutFileBinSize_selector" value="optionBinSize"/>
-                <param name="binSize" value="5000"/>
+                <repeat name='binSizes'>
+                    <param name="binSize" value="5000"/>
+                </repeat>
             </conditional>
             <param name='outputFormat' value='h5'/>
             <param name='outBam_Boolean' value="True" />
             <output name="outBam" file="small_test_matrix_result_sorted.bam" ftype="bam"/>
-            <output name="outFileName" file="small_test_matrix_2.h5" ftype="h5" compare="sim_size" delta="50000"/>
+            <output name="outFileName" ftype="h5">
+                <assert_contents>
+                    <has_h5_keys keys='intervals,matrix'/>
+                </assert_contents>
+            </output>
+            <output name="raw_qc" file='raw_qc_report' compare='diff' lines_diff='2'/>
+        </test>
+         <test>
+            <repeat name="samFiles">
+                <param name="samFile" value="small_test_R1_unsorted.sam"/>
+            </repeat>
+            <repeat name="samFiles">
+                <param name="samFile" value="small_test_R2_unsorted.sam"/>
+            </repeat>
+            <conditional name="restrictionCutFileBinSize_conditional">
+                <param name="restrictionCutFileBinSize_selector" value="optionBinSize"/>
+                <repeat name='binSizes'>
+                    <param name="binSize" value="5000"/>
+                </repeat>
+            </conditional>
+            <param name='outputFormat' value='cool'/>
+            <param name='outBam_Boolean' value="True" />
+            <output name="outBam" file="small_test_matrix_result_sorted.bam" ftype="bam"/>
+            <output name="outFileName" ftype="cool">
+                <assert_contents>
+                    <has_h5_keys keys='bins,chroms,indexes,pixels'/>
+                </assert_contents>
+            </output>
             <output name="raw_qc" file='raw_qc_report' compare='diff' lines_diff='2'/>
         </test>
     </tests>