upstream/condense_characters/condense_characters.xml
1<tool id="Condense characters1" name="Condense" version="1.0.0">
2 <description>consecutive characters</description>
3 <command>
4 perl $__tool_directory__/condense_characters.pl
5 "${input}"
6 "${character}"
7 "${out_file1}"
8 </command>
9 <inputs>
10 <!-- <display>condense all consecutive $character from $input</display> -->
11 <param name="character" type="select" label="Condense all consecutive">
12 <option value="T">Tabs</option>
13 <option value="Sp">Spaces</option>
14 <option value="Dt">Dots</option>
15 <option value="C">Commas</option>
16 <option value="D">Dashes</option>
17 <option value="U">Underscores</option>
18 <option value="P">Pipes</option>
19 </param>
20 <param format="txt" name="input" type="data" label="in this Query"/>
21 </inputs>
22 <outputs>
23 <data format="input" name="out_file1" metadata_source="input" />
24 </outputs>
25 <tests>
26 <test>
27 <param name="character" value="T"/>
28 <param name="input" value="1.bed"/>
29 <output name="out_file1" file="eq-condense.dat"/>
30 </test>
31 </tests>
32 <help>
33
34**What it does**
35
36This tool condenses all consecutive characters of a specified type.
37
38-----
39
40**Example**
41
42- Input file::
43
44 geneX,,,10,,,,,20
45 geneY,,5,,,,,12,15,9,
46
47- Condense all consecutive commas. The above file will be converted into::
48
49 geneX,10,20
50 geneY,5,12,15,9
51
52 </help>
53</tool>