Mercurial > repos > bgruening > hicexplorer_hicsummatrices
comparison hicSumMatrices.xml @ 15:f5d54dc64697 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:12:48 +0000 |
parents | 34ea556ba897 |
children | 3a7698050cb6 |
comparison
equal
deleted
inserted
replaced
14:34ea556ba897 | 15:f5d54dc64697 |
---|---|
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.$m.ext' && | 11 ln -s '$m' ${counter}_matrix && |
12 #end for | 12 #end for |
13 #set $m = ' '.join([ '\'%s_matrix.%s\'' % ($counter, $matrix.ext) for $counter, $matrix in enumerate($matrix_h5_cooler_multiple) ]) | 13 #set $m = '" "'.join([ '%s_matrix' % $counter 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' | |
18 | 14 |
19 && mv 'matrix.$extension' matrix | 15 hicSumMatrices |
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> | |
24 </inputs> | 29 </inputs> |
25 <outputs> | 30 <outputs> |
26 <data name="outFileName" from_work_dir="matrix" format_source='matrix_h5_cooler_multiple'/> | 31 <data name="outFileName" from_work_dir="matrix" format="h5"> |
32 <change_format> | |
33 <when input="outputFormat" value="cool" format="cool" /> | |
34 </change_format> | |
35 </data> | |
27 </outputs> | 36 </outputs> |
28 <tests> | 37 <tests> |
29 <test> | 38 <test> |
30 <param name="matrix_h5_cooler_multiple" value="small_test_matrix.h5,small_test_matrix.h5"/> | 39 <param name="matrix_h5_cooler_multiple" value="hicCorrectMatrix_result1.npz.h5,hicCorrectMatrix_result1.npz.h5"/> |
31 | 40 <!-- <param name="matrices" value="hicCorrectMatrix_result1.npz.h5,hicCorrectMatrix_result1.npz.h5"/> --> |
32 <output name="outFileName" ftype="h5"> | 41 <param name='outputFormat' value='h5'/> |
33 <assert_contents> | 42 <output name="outFileName" file="hicSumMatrices_result1.npz.h5" ftype="h5" compare="sim_size" delta="70000"/> |
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> | |
46 </test> | 43 </test> |
47 </tests> | 44 </tests> |
48 <help><![CDATA[ | 45 <help><![CDATA[ |
49 Summation of matrices | 46 Summation of matrices |
50 ===================== | 47 ===================== |