annotate tools/filters/changeCase.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="ChangeCase" name="Change Case">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description> of selected columns</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="perl">changeCase.pl $input "$cols" $delimiter $casing $out_file1</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="input" format="txt" type="data" label="From"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="cols" size="10" type="text" value="c1,c2" label="Change case of columns"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="delimiter" type="select" label="Delimited by">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <option value="TAB">Tab</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="SPACE">Whitespace</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <option value="DOT">Dot</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <option value="COMMA">Comma</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <option value="DASH">Dash</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <option value="UNDERSCORE">Underscore</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <option value="PIPE">Pipe</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="casing" type="select" label="To">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <option value="up">Upper case</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <option value="lo">Lower case</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <data format="tabular" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="input" value="1.txt" ftype="txt"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="cols" value="c1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="delimiter" value="SPACE"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name="casing" value="up"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <output name="out_file1" file="changeCase_out1.tabular"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <param name="input" value="1.bed" ftype="bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="cols" value="c1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <param name="delimiter" value="TAB"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <param name="casing" value="up"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <output name="out_file1" file="changeCase_out2.tabular"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 **This tool breaks column assignments.** To re-establish column assignments run the tool and click on the pencil icon in the resulting history item.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 The format of the resulting dataset from this tool is always tabular.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 This tool selects specified columns from a dataset and converts the values of those columns to upper or lower case.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 - Columns are specified as **c1**, **c2**, and so on.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 - Columns can be specified in any order (e.g., **c2,c1,c6**)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 Changing columns 1 and 3 ( delimited by Comma ) to upper case in::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 apple,is,good
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 windows,is,bad
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 will result in::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 APPLE is GOOD
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 WINDOWS is BAD
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 </tool>