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