annotate tools/metag_tools/convert_SOLiD_color2nuc.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="color2nuc" name="Convert Color Space" version="1.0.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description> to Nucleotides </description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">convert_SOLiD_color2nuc.py $input1 $input2 $output1 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="input1" type="data" format="txt" label="SOLiD color coding file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="input2" type="select" label="Keep prefix nucleotide">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <option value="yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="no">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <data name="output1" format="fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="input1" value="convert_SOLiD_color2nuc_test1.txt" ftype="txt" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="input2" value="no" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <output name="output1" file="convert_SOLiD_color2nuc_test1.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 The tool was designed for color space files generated from an ABI SOLiD sequencer. The file format must be fasta-like: the title starts with a ">" character, and each color space sequence starts with a leading nucleotide.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 This tool converts a color space sequence to nucleotides. The leading character must be a nucleotide: A, C, G, or T.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 - If the color space file looks like this::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 &gt;seq1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 A013
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 &gt;seq2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 T011213122200221123032111221021210131332222101
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 - If you would like to **keep** the leading nucleotide::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 &gt;seq1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 AACG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 &gt;seq2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 TTGTCATGAGAAAGACAGCCGACACTCAAGTCAACGTATCTCTGGT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 - If you **do not want to keep** the leading nucleotide (the length of nucleotide sequence will be one less than the color-space sequence)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 &gt;seq1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 ACG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 &gt;seq2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 TGTCATGAGAAAGACAGCCGACACTCAAGTCAACGTATCTCTGGT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 **ABI SOLiD Color Coding Alignment matrix**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 Each di-nucleotide is represented by a single digit: 0 to 3. The matrix is symmetric, thus the leading nucleotide is necessary to determine the sequence (otherwise there are four possibilities).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 .. image:: ./static/images/dualcolorcode.png
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 </tool>