Mercurial > repos > morinlab > merge_seg_collection
changeset 0:83219468e161 draft default tip
Uploaded
author | morinlab |
---|---|
date | Mon, 05 Dec 2016 00:01:47 -0500 |
parents | |
children | |
files | merge_seg_collection.xml |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/merge_seg_collection.xml Mon Dec 05 00:01:47 2016 -0500 @@ -0,0 +1,24 @@ +<tool id="merge_seg_collection" name="Merge SEG Collection" version="1.0.0"> + <description> + Merge a collection of SEG files + </description> + <command> + <![CDATA[ + + #for $i, $f in enumerate($seg_collection) + #if $i == 0 + cat $f >> $output; + #else + tail -n+1 $f >> $output; + #end if + #end for + + ]]> + </command> + <inputs> + <param type="data_collection" format="tabular" collection_type="list" name="seg_collection"/> + </inputs> + <outputs> + <data format="tabular" name="output"/> + </outputs> +</tool>