3
|
1 <tool id="add_header" name="Add Header Row To Table" version="0.1.1">
|
0
|
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>
|