annotate add_col_header.xml @ 2:ff2acdb98a74 draft default tip

Uploaded
author estrain
date Tue, 30 Oct 2018 16:52:31 -0400
parents 6af9cdb15e59
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ff2acdb98a74 Uploaded
estrain
parents: 1
diff changeset
1 <tool id="add_column_headers" name="Add Header" version="0.1.3">
0
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[
2
ff2acdb98a74 Uploaded
estrain
parents: 1
diff changeset
20 Insert a list of column headers (comma-delimited) as the first row of a data table.
0
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>