Repository 'collapse_collections'
hg clone https://toolshed.g2.bx.psu.edu/repos/nml/collapse_collections

Changeset 0:49bd84e136c7 (2015-12-10)
Next changeset 1:a78a70d4806c (2016-05-17)
Commit message:
planemo upload commit f3c3ccefd8615c32713e0b0e8d231ce5151b2714-dirty
added:
merge.xml
test-data/answer.txt
test-data/input1
test-data/input2
b
diff -r 000000000000 -r 49bd84e136c7 merge.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/merge.xml Thu Dec 10 12:30:50 2015 -0500
b
@@ -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>
b
diff -r 000000000000 -r 49bd84e136c7 test-data/answer.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/answer.txt Thu Dec 10 12:30:50 2015 -0500
b
@@ -0,0 +1,8 @@
+first file
+second
+third
+fourth line
+second file
+second
+third
+fourth line
b
diff -r 000000000000 -r 49bd84e136c7 test-data/input1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/input1 Thu Dec 10 12:30:50 2015 -0500
b
@@ -0,0 +1,4 @@
+first file
+second
+third
+fourth line
b
diff -r 000000000000 -r 49bd84e136c7 test-data/input2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/input2 Thu Dec 10 12:30:50 2015 -0500
b
@@ -0,0 +1,4 @@
+second file
+second
+third
+fourth line