Mercurial > repos > estrain > add_header
changeset 2:0c9a80d52e0b draft
Uploaded
author | estrain |
---|---|
date | Tue, 30 Oct 2018 13:26:45 -0400 |
parents | 24ce8dc4b5e7 |
children | 61d3765f4070 |
files | add_header.xml |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/add_header.xml Tue Oct 30 13:26:45 2018 -0400 @@ -0,0 +1,24 @@ +<tool id="add_header" name="add_header" version="0.1"> + <description>Add header row to tabular data</description> + <requirements> + </requirements> + <command detect_errors="exit_code"><![CDATA[ + + echo $header | sed s/\,/\\t/g > new_header.txt; + cat new_header.txt $datatable > output.tab + + ]]></command> + <inputs> + <param name="header" type="text" label="List of Column headers (comma delimited, e.g. C1,C2,...)"/> + <param name="datatable" type="data" format="tabular" label="Data File (tab-delimted)"/> + </inputs> + <outputs> + <data format="tabular" name="Data Table" label="${tool.name} on ${on_string}" from_work_dir="*.tab"/> + </outputs> + + <help><![CDATA[ + + ]]></help> + <citations> + </citations> +</tool>