comparison hicSumMatrices.xml @ 14:34ea556ba897 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 9e4e8de0e003fc15f5bae3648232c2a8a57e6391"
author iuc
date Mon, 09 Dec 2019 10:37:59 +0000
parents 551510b684b7
children f5d54dc64697
comparison
equal deleted inserted replaced
13:2f18082f828b 14:34ea556ba897
6 </macros> 6 </macros>
7 <expand macro="requirements" /> 7 <expand macro="requirements" />
8 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 9
10 #for $counter, $m in enumerate($matrix_h5_cooler_multiple): 10 #for $counter, $m in enumerate($matrix_h5_cooler_multiple):
11 ln -s '$m' ${counter}_matrix && 11 ln -s '$m' '${counter}_matrix.$m.ext' &&
12 #end for 12 #end for
13 #set $m = '" "'.join([ '%s_matrix' % $counter for $counter, $matrix in enumerate($matrix_h5_cooler_multiple) ]) 13 #set $m = ' '.join([ '\'%s_matrix.%s\'' % ($counter, $matrix.ext) for $counter, $matrix in enumerate($matrix_h5_cooler_multiple) ])
14 #set $extension = $matrix_h5_cooler_multiple[0].ext
15 @BINARY@
16 --matrices $m
17 --outFileName 'matrix.$extension'
14 18
15 hicSumMatrices 19 && mv 'matrix.$extension' matrix
16 --matrices "$m"
17 --outFileName matrix.$outputFormat
18
19 && mv matrix.$outputFormat matrix
20 ]]> 20 ]]>
21 </command> 21 </command>
22 <inputs> 22 <inputs>
23 <expand macro='matrix_h5_cooler_multiple_macro'/> 23 <expand macro='matrix_h5_cooler_multiple_macro'/>
24
25 <param name='outputFormat' type='select' label="Output file format">
26 <option value='h5'>HiCExplorer format</option>
27 <option value="cool">cool</option>
28 </param>
29 </inputs> 24 </inputs>
30 <outputs> 25 <outputs>
31 <data name="outFileName" from_work_dir="matrix" format="h5"> 26 <data name="outFileName" from_work_dir="matrix" format_source='matrix_h5_cooler_multiple'/>
32 <change_format>
33 <when input="outputFormat" value="cool" format="cool" />
34 </change_format>
35 </data>
36 </outputs> 27 </outputs>
37 <tests> 28 <tests>
38 <test> 29 <test>
39 <param name="matrix_h5_cooler_multiple" value="hicCorrectMatrix_result1.npz.h5,hicCorrectMatrix_result1.npz.h5"/> 30 <param name="matrix_h5_cooler_multiple" value="small_test_matrix.h5,small_test_matrix.h5"/>
40 <!-- <param name="matrices" value="hicCorrectMatrix_result1.npz.h5,hicCorrectMatrix_result1.npz.h5"/> --> 31
41 <param name='outputFormat' value='h5'/> 32 <output name="outFileName" ftype="h5">
42 <output name="outFileName" file="hicSumMatrices_result1.npz.h5" ftype="h5" compare="sim_size" delta="70000"/> 33 <assert_contents>
34 <has_h5_keys keys='intervals,matrix'/>
35 </assert_contents>
36 </output>
37 </test>
38 <test>
39 <param name="matrix_h5_cooler_multiple" value="small_test_matrix.cool,small_test_matrix.cool"/>
40
41 <output name="outFileName" ftype="cool">
42 <assert_contents>
43 <has_h5_keys keys='bins,chroms,indexes,pixels'/>
44 </assert_contents>
45 </output>
43 </test> 46 </test>
44 </tests> 47 </tests>
45 <help><![CDATA[ 48 <help><![CDATA[
46 Summation of matrices 49 Summation of matrices
47 ===================== 50 =====================