|
1 | | -<tool id="cat1" name="Concatenate datasets" version="1.0.0"> |
2 | | - <description>tail-to-head</description> |
| 1 | +<tool id="cat1" name="Concatenate multiple datasets or collections" version="1.0.0" profile="24.2"> |
| 2 | + <description></description> |
3 | 3 | <edam_operations> |
4 | 4 | <edam_operation>operation_3436</edam_operation> |
5 | 5 | </edam_operations> |
6 | | - <command interpreter="python"><![CDATA[ |
7 | | -catWrapper.py |
8 | | -'$out_file1' |
9 | | -'$input1' |
10 | | -#for $q in $queries |
11 | | - '${q.input2}' |
12 | | -#end for |
| 6 | + <requirements> |
| 7 | + <requirement type="package" version="8.31">coreutils</requirement> |
| 8 | + </requirements> |
| 9 | + <command><![CDATA[ |
| 10 | + cat '$input1' |
| 11 | + #for $q in $queries |
| 12 | + '${q.input2}' |
| 13 | + #end for |
| 14 | + > '$out_file1' |
13 | 15 | ]]></command> |
14 | 16 | <inputs> |
15 | | - <param name="input1" type="data" label="Concatenate Dataset"/> |
| 17 | + <param name="input1" format="data" type="data" label="Concatenate Dataset"/> |
16 | 18 | <repeat name="queries" title="Dataset"> |
17 | | - <param name="input2" type="data" label="Select" /> |
| 19 | + <param name="input2" format="data" type="data" label="Select" /> |
18 | 20 | </repeat> |
19 | 21 | </inputs> |
20 | 22 | <outputs> |
21 | | - <data name="out_file1" format="input" metadata_source="input1"/> |
| 23 | + <data name="out_file1" format_source="input1" metadata_source="input1"/> |
22 | 24 | </outputs> |
23 | 25 | <tests> |
24 | 26 | <test> |
25 | 27 | <param name="input1" value="1.bed"/> |
26 | | - <param name="input2" value="2.bed"/> |
27 | | - <output name="out_file1" file="cat_wrapper_out1.bed"/> |
| 28 | + <repeat name="queries"> |
| 29 | + <param name="input2" value="2.bed"/> |
| 30 | + </repeat> |
| 31 | + <output name="out_file1" ftype="bed" file="cat_wrapper_out1.bed"/> |
28 | 32 | </test> |
29 | | - <!--TODO: if possible, enhance the underlying test code to handle this test |
30 | | - the problem is multiple params with the same name "input2" |
31 | 33 | <test> |
32 | 34 | <param name="input1" value="1.bed"/> |
33 | | - <param name="input2" value="2.bed"/> |
34 | | - <param name="input2" value="3.bed"/> |
35 | | - <output name="out_file1" file="cat_wrapper_out2.bed"/> |
| 35 | + <repeat name="queries"> |
| 36 | + <param name="input2" value="2.bed"/> |
| 37 | + </repeat> |
| 38 | + <repeat name="queries"> |
| 39 | + <param name="input2" value="3.bed"/> |
| 40 | + </repeat> |
| 41 | + <output name="out_file1" ftype="bed" file="cat_wrapper_out2.bed"/> |
36 | 42 | </test> |
37 | | - --> |
38 | 43 | </tests> |
39 | 44 | <help><![CDATA[ |
40 | 45 | .. class:: warningmark |
|
0 commit comments