Mercurial > repos > iuc > column_remove_by_header
comparison column_remove_by_header.xml @ 0:372967836e98 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/column_remove_by_header commit 2150a3264364471090b650bdffde9f9c0b47ac39
author | iuc |
---|---|
date | Wed, 12 Apr 2017 17:17:29 -0400 |
parents | |
children | 2040e4c2750a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:372967836e98 |
---|---|
1 <tool id="column_remove_by_header" name="Remove columns" version="0.0.1"> | |
2 <description> | |
3 by heading | |
4 </description> | |
5 <requirements> | |
6 <requirement type="package" version="3.6.1">python</requirement> | |
7 <requirement type="package" version="4.1.3">gawk</requirement> | |
8 </requirements> | |
9 <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}' | |
11 #for $header in $headers: | |
12 '${header.name}' | |
13 #end for | |
14 ]]> | |
15 </command> | |
16 <inputs> | |
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"> | |
19 <param name="name" type="text" optional="False" label="Header name"> | |
20 <sanitizer> | |
21 <valid initial="string.printable"> | |
22 <remove value="'"/> | |
23 </valid> | |
24 <mapping initial="none"> | |
25 <add source="'" target=""/> | |
26 </mapping> | |
27 </sanitizer> | |
28 </param> | |
29 </repeat> | |
30 <param label="Keep named columns" name="keep_columns" type="boolean" truevalue="--keep" falsevalue="" checked="False"/> | |
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> | |
33 <valid initial="string.printable"> | |
34 <remove value="'"/> | |
35 </valid> | |
36 <mapping initial="none"> | |
37 <add source="'" target=""/> | |
38 </mapping> | |
39 </sanitizer> | |
40 </param> | |
41 </inputs> | |
42 <outputs> | |
43 <data format="tabular" name="output_tabular"/> | |
44 </outputs> | |
45 <tests> | |
46 <test> | |
47 <param name="input_tabular" value="in_1.tabular" ftype="tabular"/> | |
48 <param name="name" value="a"/> | |
49 <param name="keep_columns" value=""/> | |
50 <param name="strip_characters" value="#"/> | |
51 <output name="output_tabular" file="out_1.tabular" ftype="tabular"/> | |
52 </test> | |
53 <test> | |
54 <param name="input_tabular" value="in_1.tabular" ftype="tabular"/> | |
55 <param name="name" value="a"/> | |
56 <param name="name" value="KEY"/> | |
57 <param name="keep_columns" value="--keep"/> | |
58 <param name="strip_characters" value="#"/> | |
59 <output name="output_tabular" file="out_2.tabular" ftype="tabular"/> | |
60 </test> | |
61 </tests> | |
62 <help> | |
63 <![CDATA[ | |
64 Removes or keeps columns based upon user provided values. | |
65 ]]> | |
66 </help> | |
67 <citations> | |
68 </citations> | |
69 </tool> |