Mercurial > repos > nml > collapse_collections
changeset 0:49bd84e136c7 draft
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
author | nml |
---|---|
date | Thu, 10 Dec 2015 12:30:50 -0500 |
parents | |
children | a78a70d4806c |
files | merge.xml test-data/answer.txt test-data/input1 test-data/input2 |
diffstat | 4 files changed, 46 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/merge.xml Thu Dec 10 12:30:50 2015 -0500 @@ -0,0 +1,30 @@ +<tool id="collapse_dataset" name="Collapse Collection" version="1.0"> + <description>Collapse collection into single dataset in order of the collection</description> + <command> + cat + #for $f in $input_list# $f #end for# + > $output + </command> + <inputs> + <param name="input_list" type="data_collection" label="Collection of files to collapse into single dataset" help="" optional="false" collection_type="list" /> + </inputs> + <outputs> + <data name="output" format_source="input_list" ></data> + </outputs> + <tests> + <test> + <param name="input_list"> + <collection type="list"> + <element name="input1" value="input1" /> + <element name="input2" value="input2" /> + </collection> + </param> + <output name="output" file="answer.txt"/> + </test> + </tests> + <help> + Single tool that combines a list collection into a single file + </help> + <citations> + </citations> +</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/answer.txt Thu Dec 10 12:30:50 2015 -0500 @@ -0,0 +1,8 @@ +first file +second +third +fourth line +second file +second +third +fourth line