comparison column_remove_by_header.xml @ 1:2040e4c2750a draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/column_remove_by_header commit 6a87239f5139390963930673f36b869cde76fdf9
author iuc
date Sat, 16 Jul 2022 06:55:49 +0000
parents 372967836e98
children
comparison
equal deleted inserted replaced
0:372967836e98 1:2040e4c2750a
1 <tool id="column_remove_by_header" name="Remove columns" version="0.0.1"> 1 <tool id="column_remove_by_header" name="Remove columns" version="1.0">
2 <description> 2 <description>
3 by heading 3 by heading
4 </description> 4 </description>
5 <requirements> 5 <requirements>
6 <requirement type="package" version="3.6.1">python</requirement> 6 <requirement type="package" version="3.10.4">python</requirement>
7 <requirement type="package" version="4.1.3">gawk</requirement>
8 </requirements> 7 </requirements>
9 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
10 python '$__tool_directory__/column_remove_by_header.py' '${input_tabular}' '${output_tabular}' '${input_tabular.unsanitized.metadata.delimiter}' '${keep_columns}' '${strip_characters}' 9 python '$__tool_directory__/column_remove_by_header.py' -i '${input_tabular}' -o '${output_tabular}' -d '${input_tabular.unsanitized.metadata.delimiter}' ${keep_columns} -s '${strip_characters}' --unicode-escaped-cols
10 --columns
11 #for $header in $headers: 11 #for $header in $headers:
12 '${header.name}' 12 '${header.name}'
13 #end for 13 #end for
14 ]]> 14 ]]>
15 </command> 15 </command>
16 <inputs> 16 <inputs>
17 <param name="input_tabular" type="data" format="tabular" multiple="False" optional="False" label="Tabular file"/> 17 <param name="input_tabular" type="data" format="tabular" multiple="False" optional="False" label="Tabular file"/>
18 <repeat name="headers" title="Header" min="1" default="1"> 18 <repeat name="headers" title="Select Columns" min="1" default="1">
19 <param name="name" type="text" optional="False" label="Header name"> 19 <param name="name" type="text" optional="False" label="Header name">
20 <sanitizer> 20 <sanitizer>
21 <valid initial="string.printable"> 21 <valid initial="string.printable">
22 <remove value="&apos;"/> 22 <remove value="&apos;"/>
23 </valid> 23 </valid>
24 <mapping initial="none"> 24 <mapping initial="none">
25 <add source="&apos;" target=""/> 25 <add source="&apos;" target="&apos;&quot;&apos;&quot;&apos;"/>
26 </mapping> 26 </mapping>
27 </sanitizer> 27 </sanitizer>
28 </param> 28 </param>
29 </repeat> 29 </repeat>
30 <param label="Keep named columns" name="keep_columns" type="boolean" truevalue="--keep" falsevalue="" checked="False"/> 30 <param name="keep_columns" type="boolean" truevalue="--keep" falsevalue="" checked="False" label="Keep named columns" help="When enabled revert the tool's action and drop all columns that are NOT selected above." />
31 <param name="strip_characters" type="text" optional="False" label="Characters to strip when doing name comparison in first column" value="#" help="Removes characters from the left of the first column only."> 31 <param name="strip_characters" type="text" optional="False" label="Characters to strip when doing name comparison in first column" value="#" help="Removes characters from the left of the first column only.">
32 <sanitizer> 32 <sanitizer>
33 <valid initial="string.printable"> 33 <valid initial="string.printable">
34 <remove value="&apos;"/> 34 <remove value="&apos;"/>
35 </valid> 35 </valid>
36 <mapping initial="none"> 36 <mapping initial="none">
37 <add source="&apos;" target=""/> 37 <add source="&apos;" target="&apos;&quot;&apos;&quot;&apos;"/>
38 </mapping> 38 </mapping>
39 </sanitizer> 39 </sanitizer>
40 </param> 40 </param>
41 </inputs> 41 </inputs>
42 <outputs> 42 <outputs>
44 </outputs> 44 </outputs>
45 <tests> 45 <tests>
46 <test> 46 <test>
47 <param name="input_tabular" value="in_1.tabular" ftype="tabular"/> 47 <param name="input_tabular" value="in_1.tabular" ftype="tabular"/>
48 <param name="name" value="a"/> 48 <param name="name" value="a"/>
49 <param name="keep_columns" value=""/> 49 <param name="name" value="\xf6"/>
50 <param name="keep_columns" value="false"/>
50 <param name="strip_characters" value="#"/> 51 <param name="strip_characters" value="#"/>
51 <output name="output_tabular" file="out_1.tabular" ftype="tabular"/> 52 <output name="output_tabular" file="out_1.tabular" ftype="tabular"/>
52 </test> 53 </test>
53 <test> 54 <test>
54 <param name="input_tabular" value="in_1.tabular" ftype="tabular"/> 55 <param name="input_tabular" value="in_1.tabular" ftype="tabular"/>
55 <param name="name" value="a"/> 56 <param name="name" value="a"/>
56 <param name="name" value="KEY"/> 57 <param name="name" value="KEY"/>
57 <param name="keep_columns" value="--keep"/> 58 <param name="keep_columns" value="true"/>
58 <param name="strip_characters" value="#"/> 59 <param name="strip_characters" value="#"/>
59 <output name="output_tabular" file="out_2.tabular" ftype="tabular"/> 60 <output name="output_tabular" file="out_2.tabular" ftype="tabular"/>
60 </test> 61 </test>
61 </tests> 62 </tests>
62 <help> 63 <help><![CDATA[
63 <![CDATA[ 64 Removes or keeps columns based upon user provided values.
64 Removes or keeps columns based upon user provided values. 65
65 ]]> 66 Hint: If any of the column names you would like to specify contains special
66 </help> 67 (non-ASCII) characters, you can specify these using their Unicode escape
68 sequences.
69 ]]></help>
67 <citations> 70 <citations>
68 </citations> 71 </citations>
69 </tool> 72 </tool>