Mercurial > repos > devteam > change_case
comparison changeCase.xml @ 0:cdafd391b29f draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/change_case commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
| author | devteam |
|---|---|
| date | Mon, 09 Nov 2015 11:22:13 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:cdafd391b29f |
|---|---|
| 1 <tool id="ChangeCase" name="Change Case" version="1.0.0"> | |
| 2 <description> of selected columns</description> | |
| 3 <stdio> | |
| 4 <exit_code range="1:" err_level="fatal" /> | |
| 5 </stdio> | |
| 6 <command interpreter="perl">changeCase.pl "${input}" "${cols}" "${delimiter}" "${casing}" "${out_file1}"</command> | |
| 7 <inputs> | |
| 8 <param name="input" format="txt" type="data" label="From"/> | |
| 9 <param name="cols" 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> |
