Mercurial > repos > estrain > add_column_headers
comparison add_col_header.xml @ 0:0b286e655bcb draft
Uploaded
| author | estrain |
|---|---|
| date | Tue, 30 Oct 2018 15:48:12 -0400 |
| parents | |
| children | 6af9cdb15e59 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0b286e655bcb |
|---|---|
| 1 <tool id="add_col_header" name="Add Header" version="0.1.1"> | |
| 2 <description>Add header row with column names 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> |
