4
|
1 <tool id="snpsplit" name="SNP splitter">
|
|
2
|
|
3 <description>splits multicharacter entries into separate lines</description>
|
|
4
|
|
5 <command interpreter="python">snpsplit.py $input $output</command>
|
|
6
|
|
7 <inputs>
|
|
8
|
|
9 <param name="input" type="data" format="tabular" label="SNP table" />
|
|
10
|
|
11 </inputs>
|
|
12
|
|
13 <outputs>
|
|
14
|
|
15 <data name="output" format="tabular" label="${tool.name} on ${on_string}" />
|
|
16
|
|
17 </outputs>
|
|
18
|
|
19 <help>
|
|
20
|
|
21
|
|
22 **What it does**
|
|
23
|
|
24
|
|
25
|
|
26 SNPsplit prepares tab-delimited SNP files for TRAMS. It checks each line for entries that contain multiple consecutive bases and splits them over several lines.
|
|
27
|
|
28
|
|
29
|
|
30 - **Input**: tab delimited, format: Position Ref Pol
|
|
31 - Position is 1-based genomic coordinate
|
|
32
|
|
33 - Ref is the reference sequence
|
|
34
|
|
35 - Pol is the polymorphism sequence
|
|
36
|
|
37
|
|
38
|
|
39 Ref en Mut sequences consisting of more than one character will be split up into separate lines. Example:
|
|
40
|
|
41
|
|
42
|
|
43 **Input**:
|
|
44
|
|
45
|
|
46 === === ===
|
|
47
|
|
48 123 CGT ATG
|
|
49
|
|
50 === === ===
|
|
51
|
|
52
|
|
53
|
|
54 **Output**:
|
|
55
|
|
56
|
|
57 === = =
|
|
58
|
|
59 123 C A
|
|
60
|
|
61 124 G T
|
|
62
|
|
63 125 T G
|
|
64
|
|
65 === = =
|
|
66
|
|
67
|
|
68
|
|
69 Bases that are the same in both columns, will be skipped. Example:
|
|
70
|
|
71
|
|
72
|
|
73 **Input**:
|
|
74
|
|
75
|
|
76 === ===== ===
|
|
77
|
|
78 123 C*G*T AGG
|
|
79
|
|
80 === ===== ===
|
|
81
|
|
82
|
|
83
|
|
84 **Output**:
|
|
85
|
|
86
|
|
87 === = =
|
|
88
|
|
89 123 C A
|
|
90
|
|
91 125 T G
|
|
92
|
|
93 === = =
|
|
94
|
|
95
|
|
96 </help>
|
|
97
|
|
98 </tool>
|