Mercurial > repos > devteam > change_case
annotate changeCase.xml @ 2:56c90926c8ef draft
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
author | devteam |
---|---|
date | Tue, 21 Jul 2015 14:15:36 -0400 |
parents | 3970d288ee1f |
children | ecf91530d461 |
rev | line source |
---|---|
2
56c90926c8ef
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
1
diff
changeset
|
1 <tool id="ChangeCase" name="Change Case" version="1.0.0"> |
0 | 2 <description> of selected columns</description> |
3 <stdio> | |
4 <exit_code range="1:" err_level="fatal" /> | |
5 </stdio> | |
1
3970d288ee1f
Updated command line format per dev team standards.
Dave B. <dave@bx.psu.edu>
parents:
0
diff
changeset
|
6 <command interpreter="perl">changeCase.pl "${input}" "${cols}" "${delimiter}" "${casing}" "${out_file1}"</command> |
0 | 7 <inputs> |
8 <param name="input" format="txt" type="data" label="From"/> | |
9 <param name="cols" size="10" type="text" value="c1,c2" label="Change case of columns"/> | |
10 <param name="delimiter" type="select" label="Delimited by"> | |
11 <option value="TAB">Tab</option> | |
12 <option value="SPACE">Whitespace</option> | |
13 <option value="DOT">Dot</option> | |
14 <option value="COMMA">Comma</option> | |
15 <option value="DASH">Dash</option> | |
16 <option value="UNDERSCORE">Underscore</option> | |
17 <option value="PIPE">Pipe</option> | |
18 </param> | |
19 <param name="casing" type="select" label="To"> | |
20 <option value="up">Upper case</option> | |
21 <option value="lo">Lower case</option> | |
22 </param> | |
23 </inputs> | |
24 <outputs> | |
25 <data format="tabular" name="out_file1" /> | |
26 </outputs> | |
27 <tests> | |
28 <test> | |
29 <param name="input" value="1.txt" ftype="txt"/> | |
30 <param name="cols" value="c1"/> | |
31 <param name="delimiter" value="SPACE"/> | |
32 <param name="casing" value="up"/> | |
33 <output name="out_file1" file="changeCase_out1.tabular"/> | |
34 </test> | |
35 <test> | |
36 <param name="input" value="1.bed" ftype="bed"/> | |
37 <param name="cols" value="c1"/> | |
38 <param name="delimiter" value="TAB"/> | |
39 <param name="casing" value="up"/> | |
40 <output name="out_file1" file="changeCase_out2.tabular"/> | |
41 </test> | |
42 </tests> | |
43 <help> | |
44 | |
45 .. class:: warningmark | |
46 | |
47 **This tool breaks column assignments.** To re-establish column assignments run the tool and click on the pencil icon in the resulting history item. | |
48 | |
49 .. class:: warningmark | |
50 | |
51 The format of the resulting dataset from this tool is always tabular. | |
52 | |
53 ----- | |
54 | |
55 **What it does** | |
56 | |
57 This tool selects specified columns from a dataset and converts the values of those columns to upper or lower case. | |
58 | |
59 - Columns are specified as **c1**, **c2**, and so on. | |
60 - Columns can be specified in any order (e.g., **c2,c1,c6**) | |
61 | |
62 ----- | |
63 | |
64 **Example** | |
65 | |
66 Changing columns 1 and 3 ( delimited by Comma ) to upper case in:: | |
67 | |
68 apple,is,good | |
69 windows,is,bad | |
70 | |
71 will result in:: | |
72 | |
73 APPLE is GOOD | |
74 WINDOWS is BAD | |
75 | |
76 </help> | |
77 </tool> |