annotate add_col_header.xml @ 0:0b286e655bcb draft

Uploaded
author estrain
date Tue, 30 Oct 2018 15:48:12 -0400
parents
children 6af9cdb15e59
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0b286e655bcb Uploaded
estrain
parents:
diff changeset
1 <tool id="add_col_header" name="Add Header" version="0.1.1">
0b286e655bcb Uploaded
estrain
parents:
diff changeset
2 <description>Add header row with column names to tabular data</description>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
3 <requirements>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
4 </requirements>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
5 <command detect_errors="exit_code"><![CDATA[
0b286e655bcb Uploaded
estrain
parents:
diff changeset
6
0b286e655bcb Uploaded
estrain
parents:
diff changeset
7 echo $header | sed s/\,/\\t/g > new_header.txt;
0b286e655bcb Uploaded
estrain
parents:
diff changeset
8 cat new_header.txt $datatable > output.tab
0b286e655bcb Uploaded
estrain
parents:
diff changeset
9
0b286e655bcb Uploaded
estrain
parents:
diff changeset
10 ]]></command>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
11 <inputs>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
12 <param name="header" type="text" label="List of Column headers (comma delimited, e.g. C1,C2,...)"/>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
13 <param name="datatable" type="data" format="tabular" label="Data File (tab-delimted)"/>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
14 </inputs>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
15 <outputs>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
16 <data format="tabular" name="Data Table" label="${tool.name} on ${on_string}" from_work_dir="*.tab"/>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
17 </outputs>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
18
0b286e655bcb Uploaded
estrain
parents:
diff changeset
19 <help><![CDATA[
0b286e655bcb Uploaded
estrain
parents:
diff changeset
20
0b286e655bcb Uploaded
estrain
parents:
diff changeset
21 ]]></help>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
22 <citations>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
23 </citations>
0b286e655bcb Uploaded
estrain
parents:
diff changeset
24 </tool>