annotate convert_characters.xml @ 3:042ed2d0a017 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
author devteam
date Mon, 06 Jul 2020 20:25:21 -0400
parents 8a53d7f02ce4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
1 <tool id="Convert characters1" name="Convert" version="1.0.1">
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
2 <description>delimiters to TAB</description>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
3 <requirements>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
4 <requirement type="package" version="3.8">python</requirement>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
5 </requirements>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
6 <command>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
7 python '$__tool_directory__/convert_characters.py'
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
8 '${input}'
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
9 '${convert_from}'
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
10 '${out_file1}'
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
11 </command>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
12 <inputs>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
13 <param name="convert_from" type="select" label="Convert all">
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
14 <option value="s">Whitespaces</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
15 <option value="T">Tabs</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
16 <!--<option value="Sp">Spaces</option>-->
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
17 <option value="Dt">Dots</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
18 <option value="C">Commas</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
19 <option value="D">Dashes</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
20 <option value="U">Underscores</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
21 <option value="P">Pipes</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
22 <option value="Co">Colons</option>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
23 </param>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
24 <param format="txt" name="input" type="data" label="in Query"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
25 </inputs>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
26 <outputs>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
27 <data format="tabular" name="out_file1" />
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
28 </outputs>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
29 <tests>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
30 <test>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
31 <param name="convert_from" value="s"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
32 <param name="input" value="1.bed"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
33 <output name="out_file1" file="eq-convert.dat"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
34 </test>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
35 <test>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
36 <param name="convert_from" value="s"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
37 <param name="input" value="a.txt"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
38 <output name="out_file1" file="a.tab"/>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
39 </test>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
40 </tests>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
41 <help>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
42
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
43 **What it does**
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
44
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
45 Converts all delimiters of a specified type into TABs. Consecutive characters are condensed. For example, if columns are separated by 5 spaces they will converted into 1 tab.
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
46
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
47 -----
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
48
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
49 **Example**
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
50
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
51 - Input file::
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
52
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
53 chrX||151283558|151283724|NM_000808_exon_8_0_chrX_151283559_r|0|-
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
54 chrX|151370273|151370486|NM_000808_exon_9_0_chrX_151370274_r|0|-
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
55 chrX|151559494|151559583|NM_018558_exon_1_0_chrX_151559495_f|0|+
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
56 chrX|151564643|151564711|NM_018558_exon_2_0_chrX_151564644_f||||0|+
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
57
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
58 - Converting all pipe delimiters of the above file to TABs will get::
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
59
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
60 chrX 151283558 151283724 NM_000808_exon_8_0_chrX_151283559_r 0 -
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
61 chrX 151370273 151370486 NM_000808_exon_9_0_chrX_151370274_r 0 -
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
62 chrX 151559494 151559583 NM_018558_exon_1_0_chrX_151559495_f 0 +
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
63 chrX 151564643 151564711 NM_018558_exon_2_0_chrX_151564644_f 0 +
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
64
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
65 </help>
042ed2d0a017 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/convert_characters commit f929353ffb0623f2218d7dec459c7da62f3b0d24"
devteam
parents: 2
diff changeset
66 </tool>