annotate replace_delimiter/replace_delimiter.xml @ 0:295395b4b28f draft default tip

Uploaded
author saket-choudhary
date Tue, 07 Oct 2014 19:43:01 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
1 <tool id="convertdelimiter" name="Convert">
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
2 <description>delimiters</description>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
3 <command interpreter="python">replace_delimiter.py $input $convert_from $convert_to $out_file1</command>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
4 <inputs>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
5 <param name="convert_from" type="select" label="Convert all">
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
6 <option value="s">Whitespaces</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
7 <option value="T">Tabs</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
8 <option value="Dt">Dots</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
9 <option value="C">Commas</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
10 <option value="D">Dashes</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
11 <option value="U">Underscores</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
12 <option value="P">Pipes</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
13 <option value="Co">Colons</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
14 <option value="Sc">Semicolons</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
15 </param>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
16 <param format="txt" name="input" type="data" label="in Dataset"/>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
17 <param name="convert_to" type="select" label="to ">
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
18 <option value="s">Whitespaces</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
19 <option value="T">Tabs</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
20 <option value="Dt">Dots</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
21 <option value="C">Commas</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
22 <option value="D">Dashes</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
23 <option value="U">Underscores</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
24 <option value="P">Pipes</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
25 <option value="Co">Colons</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
26 <option value="Sc">Semicolons</option>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
27 </param>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
28 </inputs>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
29 <outputs>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
30 <data format="tabular" name="out_file1" />
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
31 </outputs>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
32 <tests>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
33 <test>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
34 <param name="convert_from" value="P"/>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
35 <param name="input" value="replace_delimiter_input.tsv" ftype="tabular"/>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
36 <param name="convert_to" value="C"/>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
37 <output name="out_file1" file="replace_delimiter_output.csv"/>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
38 </test>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
39 </tests>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
40 <help>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
41
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
42 **What it does**
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
43
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
44 Converts all delimiters of a specified type into a specified delimiter(Dots, Commas, Dashes, Underscores, Pipes, Colons, Semicolons).
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
45 Tool and code borrowed from convert_delimiter tool(distributed with Galaxy).
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
46 -----
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
47
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
48 **Example**
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
49
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
50 - Input file:
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
51
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
52 chrX||151283558|151283724|NM_000808_exon_8_0_chrX_151283559_r|0|-
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
53 chrX|151370273|151370486|NM_000808_exon_9_0_chrX_151370274_r|0|-
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
54 chrX|151559494|151559583|NM_018558_exon_1_0_chrX_151559495_f|0|+
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
55 chrX|151564643|151564711|NM_018558_exon_2_0_chrX_151564644_f||||0|+
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
56
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
57 - Converting all pipe delimiters of the above file to Commas will get::
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
58
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
59 chrX,151283558,151283724,NM_000808_exon_8_0_chrX_151283559_r,0,-
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
60 chrX,151370273,151370486,NM_000808_exon_9_0_chrX_151370274_r,0,-
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
61 chrX,151559494,151559583,NM_018558_exon_1_0_chrX_151559495_f,0,+
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
62 chrX,151564643,151564711,NM_018558_exon_2_0_chrX_151564644_f,0,+
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
63
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
64 </help>
295395b4b28f Uploaded
saket-choudhary
parents:
diff changeset
65 </tool>