Mercurial > repos > nml > collapse_collections
comparison merge.xml @ 1:a78a70d4806c draft
planemo upload commit b8a959738e856ac80cb2d58423f455337cdd4853
author | nml |
---|---|
date | Tue, 17 May 2016 12:54:54 -0400 |
parents | 49bd84e136c7 |
children | 4263967e8d40 |
comparison
equal
deleted
inserted
replaced
0:49bd84e136c7 | 1:a78a70d4806c |
---|---|
1 <tool id="collapse_dataset" name="Collapse Collection" version="1.0"> | 1 <tool id="collapse_dataset" name="Collapse Collection" version="2.0"> |
2 <description>Collapse collection into single dataset in order of the collection</description> | 2 <description>Collapse collection into single dataset in order of the collection</description> |
3 <command> | 3 <command> |
4 cat | 4 <![CDATA[ |
5 #for $f in $input_list# $f #end for# | 5 |
6 ( | |
7 #for $f in $input_list# | |
8 #if $filename.add_name: | |
9 #if str($filename.place_name) == "same": | |
10 printf "$f.name\t" ; | |
11 #else | |
12 printf "$f.name\n" ; | |
13 #end if | |
14 #end if | |
15 cat "$f" ; | |
16 #end for# | |
17 ) | |
6 > $output | 18 > $output |
19 | |
20 ]]> | |
21 | |
7 </command> | 22 </command> |
8 <inputs> | 23 <inputs> |
9 <param name="input_list" type="data_collection" label="Collection of files to collapse into single dataset" help="" optional="false" collection_type="list" /> | 24 <param name="input_list" type="data_collection" label="Collection of files to collapse into single dataset" help="" optional="false" collection_type="list" /> |
25 <conditional name="filename"> | |
26 <param name="add_name" type="boolean" display="checkboxes" label="Append File name"/> | |
27 <when value="true"> | |
28 <param name="place_name" type="select" label="Where to add dataset name"> | |
29 <option value="same">Same line</option> | |
30 <option value="above">Line Above</option> | |
31 </param> | |
32 </when> | |
33 <when value='false'> | |
34 </when> | |
35 </conditional> | |
10 </inputs> | 36 </inputs> |
11 <outputs> | 37 <outputs> |
12 <data name="output" format_source="input_list" ></data> | 38 <data name="output" format_source="input_list" ></data> |
13 </outputs> | 39 </outputs> |
14 <tests> | 40 <tests> |
21 </param> | 47 </param> |
22 <output name="output" file="answer.txt"/> | 48 <output name="output" file="answer.txt"/> |
23 </test> | 49 </test> |
24 </tests> | 50 </tests> |
25 <help> | 51 <help> |
26 Single tool that combines a list collection into a single file | 52 Combines a list collection into a single file dataset with option to include dataset names. |
53 | |
54 | |
27 </help> | 55 </help> |
28 <citations> | 56 <citations> |
29 </citations> | 57 </citations> |
30 </tool> | 58 </tool> |