Mercurial > repos > mvdbeek > add_input_name_as_column
comparison add_input_name_as_column.xml @ 2:ea4ad41e01fc draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/add_input_name_as_column commit 9292c57c34283543e86ecc65f805977224f6fc7b"
author | iuc |
---|---|
date | Wed, 25 Mar 2020 11:09:05 +0000 |
parents | 07d2cbf43b51 |
children |
comparison
equal
deleted
inserted
replaced
1:07d2cbf43b51 | 2:ea4ad41e01fc |
---|---|
1 <tool id="addName" name="Add input name as column" version="0.1.2" profile="17.09"> | 1 <tool id="addName" name="Add input name as column" version="0.2.0" profile="17.09"> |
2 <description>to an existing tabular file</description> | 2 <description>to an existing tabular file</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="3.7">python</requirement> | 4 <requirement type="package" version="3.7">python</requirement> |
5 </requirements> | 5 </requirements> |
6 <command><![CDATA[ | 6 <command><![CDATA[ |
7 python '$__tool_directory__/'add_input_name_as_column.py | 7 python '$__tool_directory__/'add_input_name_as_column.py |
8 --input '$input' | 8 --input '$input' |
9 --label '$input.element_identifier' | 9 --label '$input.element_identifier' |
10 --output '$output' | 10 --output '$output' |
11 #if $header.contains_header=="yes": | 11 #if $header.contains_header=="yes": |
12 --header "$header.colname" | 12 --header "$header.colname" |
13 #end if | 13 #end if |
14 ]]></command> | 14 $prepend |
15 <inputs> | 15 ]]></command> |
16 <param format="txt" name="input" type="data" label="to Dataset" help="Dataset missing? See TIP below" /> | 16 <inputs> |
17 <conditional name="header"> | 17 <param format="txt" name="input" type="data" label="to Dataset" help="Dataset missing? See TIP below" /> |
18 <param name="contains_header" type="select" label="input contains a header line?" > | 18 <conditional name="header"> |
19 <option value="yes" selected="true">Yes</option> | 19 <param name="contains_header" type="select" label="input contains a header line?" > |
20 <option value="no">No</option> | 20 <option value="yes" selected="true">Yes</option> |
21 </param> | 21 <option value="no">No</option> |
22 <when value="yes"> | 22 </param> |
23 <param name="colname" type="text" value="sample" help="select a column header to be added in the first line"> | 23 <when value="yes"> |
24 <validator type="empty_field" message="please add a column header"/> | 24 <param name="colname" type="text" value="sample" help="select a column header to be added in the first line"> |
25 </param> | 25 <validator type="empty_field" message="please add a column header"/> |
26 </when> | 26 </param> |
27 <when value="no"> | 27 </when> |
28 </when> | 28 <when value="no"/> |
29 </conditional> | 29 </conditional> |
30 </inputs> | 30 <param name="prepend" type="boolean" truevalue="--prepend" falsevalue="" checked="false" label="Prepend the colum" /> |
31 <outputs> | 31 </inputs> |
32 <data name="output" format="tabular" /> | 32 <outputs> |
33 </outputs> | 33 <data name="output" format="tabular" /> |
34 <tests> | 34 </outputs> |
35 <test> | 35 <tests> |
36 <param name="input" value="signature.tab" ftype="tabular" /> | 36 <test> |
37 <param name="contains_header" value="yes" /> | 37 <param name="input" value="signature.tab" ftype="tabular" /> |
38 <param name="colname" value="sample" /> | 38 <param name="contains_header" value="yes" /> |
39 <output name="output" file="signature_with_header.tab" ftype="tabular"/> | 39 <param name="colname" value="sample" /> |
40 </test> | 40 <output name="output" file="signature_with_header.tab" ftype="tabular"/> |
41 <test> | 41 </test> |
42 <param name="input" value="signature.tab" ftype="tabular" /> | 42 <test> |
43 <param name="contains_header" value="no" /> | 43 <param name="input" value="signature.tab" ftype="tabular" /> |
44 <output name="output" file="signature_without_header.tab" ftype="tabular"/> | 44 <param name="contains_header" value="no" /> |
45 </test> | 45 <param name="prepend" value="true" /> |
46 </tests> | 46 <output name="output" file="signature_without_header.tab" ftype="tabular"/> |
47 <help> | 47 </test> |
48 </tests> | |
49 <help><![CDATA[ | |
50 **What it does** | |
51 | |
52 Adds a new column with the name of the input file as it appears in the history. | |
53 By default the column is appended. | |
54 | |
55 ----- | |
48 | 56 |
49 .. class:: infomark | 57 .. class:: infomark |
50 | 58 |
51 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | 59 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* |
52 | 60 |
53 ----- | 61 ]]></help> |
54 | |
55 **What it does** | |
56 | |
57 Adds a new column with the name of the input file as it appears in the history. | |
58 Written by Marius van den Beek, m.vandenbeek at gmail dot com | |
59 </help> | |
60 </tool> | 62 </tool> |
61 |