root/galaxy-central/tools/filters/changeCase.xml

リビジョン 2, 2.3 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1<tool id="ChangeCase" name="Change Case">
2  <description> of selected columns</description>
3  <command interpreter="perl">changeCase.pl $input "$cols" $delimiter $casing $out_file1</command>
4  <inputs>
5    <param name="input" format="txt" type="data" label="From"/>
6    <param name="cols" size="10" type="text" value="c1,c2" label="Change case of columns"/>
7    <param name="delimiter" type="select" label="Delimited by">
8      <option value="TAB">Tab</option>
9      <option value="SPACE">Whitespace</option>
10      <option value="DOT">Dot</option>
11      <option value="COMMA">Comma</option>
12      <option value="DASH">Dash</option>
13      <option value="UNDERSCORE">Underscore</option>
14      <option value="PIPE">Pipe</option>
15    </param>
16    <param name="casing" type="select" label="To">
17      <option value="up">Upper case</option>
18      <option value="lo">Lower case</option>
19    </param>
20  </inputs>
21  <outputs>
22    <data format="tabular" name="out_file1" />
23  </outputs>
24  <tests>
25    <test>
26      <param name="input" value="1.txt" ftype="txt"/>
27      <param name="cols" value="c1"/>
28      <param name="delimiter" value="SPACE"/>
29      <param name="casing" value="up"/>
30      <output name="out_file1" file="changeCase_out1.tabular"/>
31    </test>
32    <test>
33      <param name="input" value="1.bed" ftype="bed"/>
34      <param name="cols" value="c1"/>
35      <param name="delimiter" value="TAB"/>
36      <param name="casing" value="up"/>
37      <output name="out_file1" file="changeCase_out2.tabular"/>
38    </test>
39  </tests>
40  <help>
41
42.. class:: warningmark
43
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.
45
46.. class:: warningmark
47
48The format of the resulting dataset from this tool is always tabular.
49
50-----
51
52**What it does**
53
54This tool selects specified columns from a dataset and converts the values of those columns to upper or lower case.
55
56- Columns are specified as **c1**, **c2**, and so on.
57- Columns can be specified in any order (e.g., **c2,c1,c6**)
58
59-----
60
61**Example**
62
63Changing columns 1 and 3 ( delimited by Comma ) to upper case in::
64
65  apple,is,good
66  windows,is,bad
67
68will result in::
69
70  APPLE is GOOD
71  WINDOWS is BAD
72
73  </help>
74</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。