comparison add_header.xml @ 0:9562cf49ccaa draft

Uploaded
author estrain
date Tue, 30 Oct 2018 11:24:39 -0400
parents
children 61d3765f4070
comparison
equal deleted inserted replaced
-1:000000000000 0:9562cf49ccaa
1 <tool id="add_header" name="add_header" version="0.1">
2 <description>Add header row to tabular data</description>
3 <requirements>
4 </requirements>
5 <command detect_errors="exit_code"><![CDATA[
6
7 echo $header | sed s/\,/\\t/g > new_header.txt;
8 cat new_header.txt $datatable > output.tab
9
10 ]]></command>
11 <inputs>
12 <param name="header" type="text" label="List of Column headers (comma delimited, e.g. C1,C2,...)"/>
13 <param name="datatable" type="data" format="tabular" label="Data File (tab-delimted)"/>
14 </inputs>
15 <outputs>
16 <data format="tabular" name="Data Table" label="${tool.name} on ${on_string}" from_work_dir="*.tab"/>
17 </outputs>
18
19 <help><![CDATA[
20
21 ]]></help>
22 <citations>
23 </citations>
24 </tool>