annotate add_header.xml @ 3:61d3765f4070 draft default tip

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