annotate manipulate/minimal_kcf/test_minimal_kcf.py @ 1:0a5e0df17054 draft default tip

Uploaded
author chrisb
date Fri, 06 May 2016 08:05:48 -0400
parents 89592faa2875
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
1 __license__ = "MIT"
89592faa2875 Uploaded
chrisb
parents:
diff changeset
2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
3 import unittest
89592faa2875 Uploaded
chrisb
parents:
diff changeset
4 import minimal_kcf as mk
89592faa2875 Uploaded
chrisb
parents:
diff changeset
5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
7 class SimpleUnitTest(unittest.TestCase):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
8 def setUp(self):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
9 import os
89592faa2875 Uploaded
chrisb
parents:
diff changeset
10 self.kcinput = {"ringsmcaw": """ENTRY G04845 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
11 COMPOSITION (Gal)3 (Glc)1 (GlcNAc)2 (LFuc)2 (Neu5Ac)1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
12 MASS 1656.5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
13 DBLINKS CCSD: 23949
89592faa2875 Uploaded
chrisb
parents:
diff changeset
14 GlycomeDB: 20420
89592faa2875 Uploaded
chrisb
parents:
diff changeset
15 JCGGDB: JCGG-STR011245
89592faa2875 Uploaded
chrisb
parents:
diff changeset
16 NODE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
17 1 Glc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
18 2 Gal -10 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
19 3 GlcNAc -20 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
20 4 GlcNAc -20 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
21 5 Gal -30 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
22 6 LFuc -30 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
23 7 LFuc -30 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
24 8 Gal -30 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
25 9 Neu5Ac -40 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
26 EDGE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
27 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
28 2 3:b1 2:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
29 3 4:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
30 4 5:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
31 5 6:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
32 6 7:a1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
33 7 8:b1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
34 8 9:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
35 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
36 ENTRY G05108 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
37 COMPOSITION (Gal)2 (GalNAc)1 (GlcNAc)1 (LFuc)1 (Neu5Ac)1 (S)1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
38 MASS 1266.2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
39 CLASS Glycoprotein; O-Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
40 DBLINKS CCSD: 33353
89592faa2875 Uploaded
chrisb
parents:
diff changeset
41 GlycomeDB: 20590
89592faa2875 Uploaded
chrisb
parents:
diff changeset
42 JCGGDB: JCGG-STR011425
89592faa2875 Uploaded
chrisb
parents:
diff changeset
43 NODE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
44 1 GalNAc 20 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
45 2 Gal 10 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
46 3 GlcNAc 0 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
47 4 S -5 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
48 5 Gal -10 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
49 6 LFuc -10 -4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
50 7 Neu5Ac -20 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
51 EDGE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
52 1 2:b1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
53 2 3:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
54 3 4 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
55 4 5:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
56 5 6:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
57 6 7:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
58 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
59
89592faa2875 Uploaded
chrisb
parents:
diff changeset
60 ENTRY G05121 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
61 COMPOSITION (Gal)2 (GalNAc)1 (GlcNAc)1 (LFuc)1 (Neu5Ac)2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
62 MASS 1477.3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
63 CLASS Glycoprotein; O-Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
64 DBLINKS CCSD: 33350
89592faa2875 Uploaded
chrisb
parents:
diff changeset
65 GlycomeDB: 20599
89592faa2875 Uploaded
chrisb
parents:
diff changeset
66 JCGGDB: JCGG-STR011433
89592faa2875 Uploaded
chrisb
parents:
diff changeset
67 NODE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
68 1 GalNAc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
69 2 Neu5Ac -10 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
70 3 Gal -10 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
71 4 GlcNAc -20 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
72 5 Gal -30 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
73 6 LFuc -30 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
74 7 Neu5Ac -40 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
75 EDGE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
76 1 2:a2 1:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
77 2 3:b1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
78 3 4:b1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
79 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
80 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
81 6 7:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
82 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
83
89592faa2875 Uploaded
chrisb
parents:
diff changeset
84 ENTRY G04183 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
85 COMPOSITION (Gal)3 (GlcNAc)5 (LFuc)1 (Man)3 (Neu5Ac)3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
86 MASS 3026.8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
87 CLASS Glycoprotein; N-Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
88 DBLINKS CCSD: 41981
89592faa2875 Uploaded
chrisb
parents:
diff changeset
89 GlycomeDB: 19974
89592faa2875 Uploaded
chrisb
parents:
diff changeset
90 JCGGDB: JCGG-STR010756
89592faa2875 Uploaded
chrisb
parents:
diff changeset
91 NODE 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
92 1 GlcNAc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
93 2 GlcNAc -10 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
94 3 Man -20 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
95 4 Man -30 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
96 5 Man -30 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
97 6 GlcNAc -40 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
98 7 GlcNAc -40 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
99 8 GlcNAc -40 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
100 9 Gal -50 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
101 10 Gal -50 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
102 11 LFuc -50 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
103 12 Gal -50 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
104 13 Neu5Ac -60 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
105 14 Neu5Ac -60 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
106 15 Neu5Ac -60 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
107 EDGE 14
89592faa2875 Uploaded
chrisb
parents:
diff changeset
108 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
109 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
110 3 4:a1 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
111 4 5:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
112 5 6:b1 4:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
113 6 7:b1 5:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
114 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
115 8 9:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
116 9 10:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
117 10 11:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
118 11 12:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
119 12 13:a2 9:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
120 13 14:a2 10:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
121 14 15:a2 12:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
122 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
123
89592faa2875 Uploaded
chrisb
parents:
diff changeset
124 ENTRY G04329 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
125 COMPOSITION (Gal)3 (GlcNAc)3 (LFuc)3 (Neu5Ac)1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
126 MASS 1843.7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
127 DBLINKS CCSD: 36620
89592faa2875 Uploaded
chrisb
parents:
diff changeset
128 GlycomeDB: 20084
89592faa2875 Uploaded
chrisb
parents:
diff changeset
129 JCGGDB: JCGG-STR010874
89592faa2875 Uploaded
chrisb
parents:
diff changeset
130 NODE 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
131 1 GlcNAc 27 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
132 2 Gal 18 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
133 3 LFuc 18 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
134 4 GlcNAc 9 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
135 5 Gal 0 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
136 6 LFuc 0 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
137 7 GlcNAc -9 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
138 8 Gal -18 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
139 9 LFuc -18 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
140 10 Neu5Ac -27 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
141 EDGE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
142 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
143 2 3:a1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
144 3 4:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
145 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
146 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
147 6 7:b1 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
148 7 8:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
149 8 9:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
150 9 10:a2 8:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
151 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
152 ENTRY G04804 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
153 COMPOSITION (Gal)3 (GlcNAc)5 (LFuc)1 (Man)3 (Neu5Ac)3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
154 MASS 3026.8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
155 CLASS Glycoprotein; N-Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
156 REFERENCE 1 [PMID:6704968]
89592faa2875 Uploaded
chrisb
parents:
diff changeset
157 Chandrasekaran EV, Davila M, Nixon D, Mendicino J.
89592faa2875 Uploaded
chrisb
parents:
diff changeset
158 Structures of the oligosaccharide chains of two forms of alpha 1-acid glycoprotein purified from liver metastases of lung, colon, and breast tumors.
89592faa2875 Uploaded
chrisb
parents:
diff changeset
159 Cancer. Res. 44 (1984) 1557-67.
89592faa2875 Uploaded
chrisb
parents:
diff changeset
160 DBLINKS CCSD: 8168
89592faa2875 Uploaded
chrisb
parents:
diff changeset
161 GlycomeDB: 33225
89592faa2875 Uploaded
chrisb
parents:
diff changeset
162 JCGGDB: JCGG-STR024138
89592faa2875 Uploaded
chrisb
parents:
diff changeset
163 NODE 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
164 1 GlcNAc 27.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
165 2 GlcNAc 17.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
166 3 Man 8.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
167 4 Man 0.2 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
168 5 Man 0.2 -4.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
169 6 GlcNAc -8.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
170 7 GlcNAc -8.8 -0.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
171 8 GlcNAc -8.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
172 9 Gal -17.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
173 10 Gal -17.8 3.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
174 11 LFuc -17.8 -4.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
175 12 Gal -17.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
176 13 Neu5Ac -26.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
177 14 Neu5Ac -26.8 3.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
178 15 Neu5Ac -26.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
179 EDGE 14
89592faa2875 Uploaded
chrisb
parents:
diff changeset
180 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
181 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
182 3 4:a1 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
183 4 5:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
184 5 6:b1 4:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
185 6 7:b1 5:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
186 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
187 8 9:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
188 9 10:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
189 10 11:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
190 11 12:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
191 12 13:a2 9:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
192 13 14:a2 10:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
193 14 15:a2 12:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
194 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
195 """, "ringsmcaw_modified": """ENTRY G04845 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
196 NODE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
197 1 Glc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
198 2 Gal -10 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
199 3 GlcNAc -20 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
200 4 GlcNAc -20 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
201 5 Gal -30 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
202 6 LFuc -30 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
203 7 LFuc -30 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
204 8 Gal -30 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
205 9 Neu5Ac -40 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
206 EDGE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
207 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
208 2 3:b1 2:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
209 3 4:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
210 4 5:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
211 5 6:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
212 6 7:a1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
213 7 8:b1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
214 8 9:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
215 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
216 ENTRY G05108 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
217 NODE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
218 1 GalNAc 20 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
219 2 Gal 10 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
220 3 GlcNAc 0 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
221 4 S -5 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
222 5 Gal -10 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
223 6 LFuc -10 -4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
224 7 Neu5Ac -20 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
225 EDGE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
226 1 2:b1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
227 2 3:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
228 3 4 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
229 4 5:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
230 5 6:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
231 6 7:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
232 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
233 ENTRY G05121 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
234 NODE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
235 1 GalNAc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
236 2 Neu5Ac -10 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
237 3 Gal -10 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
238 4 GlcNAc -20 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
239 5 Gal -30 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
240 6 LFuc -30 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
241 7 Neu5Ac -40 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
242 EDGE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
243 1 2:a2 1:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
244 2 3:b1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
245 3 4:b1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
246 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
247 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
248 6 7:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
249 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
250 ENTRY G04183 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
251 NODE 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
252 1 GlcNAc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
253 2 GlcNAc -10 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
254 3 Man -20 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
255 4 Man -30 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
256 5 Man -30 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
257 6 GlcNAc -40 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
258 7 GlcNAc -40 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
259 8 GlcNAc -40 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
260 9 Gal -50 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
261 10 Gal -50 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
262 11 LFuc -50 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
263 12 Gal -50 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
264 13 Neu5Ac -60 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
265 14 Neu5Ac -60 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
266 15 Neu5Ac -60 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
267 EDGE 14
89592faa2875 Uploaded
chrisb
parents:
diff changeset
268 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
269 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
270 3 4:a1 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
271 4 5:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
272 5 6:b1 4:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
273 6 7:b1 5:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
274 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
275 8 9:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
276 9 10:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
277 10 11:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
278 11 12:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
279 12 13:a2 9:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
280 13 14:a2 10:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
281 14 15:a2 12:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
282 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
283 ENTRY G04329 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
284 NODE 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
285 1 GlcNAc 27 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
286 2 Gal 18 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
287 3 LFuc 18 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
288 4 GlcNAc 9 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
289 5 Gal 0 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
290 6 LFuc 0 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
291 7 GlcNAc -9 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
292 8 Gal -18 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
293 9 LFuc -18 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
294 10 Neu5Ac -27 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
295 EDGE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
296 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
297 2 3:a1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
298 3 4:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
299 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
300 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
301 6 7:b1 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
302 7 8:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
303 8 9:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
304 9 10:a2 8:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
305 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
306 ENTRY G04804 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
307 NODE 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
308 1 GlcNAc 27.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
309 2 GlcNAc 17.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
310 3 Man 8.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
311 4 Man 0.2 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
312 5 Man 0.2 -4.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
313 6 GlcNAc -8.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
314 7 GlcNAc -8.8 -0.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
315 8 GlcNAc -8.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
316 9 Gal -17.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
317 10 Gal -17.8 3.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
318 11 LFuc -17.8 -4.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
319 12 Gal -17.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
320 13 Neu5Ac -26.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
321 14 Neu5Ac -26.8 3.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
322 15 Neu5Ac -26.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
323 EDGE 14
89592faa2875 Uploaded
chrisb
parents:
diff changeset
324 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
325 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
326 3 4:a1 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
327 4 5:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
328 5 6:b1 4:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
329 6 7:b1 5:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
330 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
331 8 9:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
332 9 10:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
333 10 11:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
334 11 12:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
335 12 13:a2 9:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
336 13 14:a2 10:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
337 14 15:a2 12:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
338 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
339 """, "ringsfinger": """ENTRY G00015 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
340 NODE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
341 1 Asn 20 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
342 2 GlcNAc 12 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
343 3 GlcNAc 3 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
344 4 Man -5 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
345 5 Man -12 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
346 6 Man -12 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
347 7 GlcNAc -20 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
348 8 GlcNAc -20 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
349 EDGE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
350 1 2:b1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
351 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
352 3 4:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
353 4 5:a1 4:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
354 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
355 6 7:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
356 7 8:b1 6:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
357 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
358 ENTRY G00016 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
359 NODE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
360 1 Asn 20 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
361 2 GlcNAc 12 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
362 3 LFuc 4 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
363 4 GlcNAc 3 -2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
364 5 Man -5 -2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
365 6 Man -12 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
366 7 Man -12 -7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
367 8 GlcNAc -20 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
368 9 GlcNAc -20 -7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
369 EDGE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
370 1 2:b1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
371 2 3:a1 2:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
372 3 4:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
373 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
374 5 6:a1 5:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
375 6 7:a1 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
376 7 8:b1 6:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
377 8 9:b1 7:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
378 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
379 ENTRY G00017 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
380 NODE 11
89592faa2875 Uploaded
chrisb
parents:
diff changeset
381 1 Asn 24 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
382 2 GlcNAc 14 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
383 3 LFuc 7 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
384 4 GlcNAc 6 -2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
385 5 Man -2 -2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
386 6 Man -8 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
387 7 Man -8 -7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
388 8 GlcNAc -16 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
389 9 GlcNAc -16 -7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
390 10 Gal -24 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
391 11 Gal -24 -7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
392 EDGE 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
393 1 2:b1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
394 2 3:a1 2:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
395 3 4:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
396 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
397 5 6:a1 5:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
398 6 7:a1 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
399 7 8:b1 6:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
400 8 9:b1 7:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
401 9 10:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
402 10 11:b1 9:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
403 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
404 ENTRY G00018 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
405 NODE 13
89592faa2875 Uploaded
chrisb
parents:
diff changeset
406 1 Asn 28 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
407 2 GlcNAc 18 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
408 3 LFuc 10 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
409 4 GlcNAc 9 -2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
410 5 Man 1 -2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
411 6 Man -5 4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
412 7 Man -5 -8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
413 8 GlcNAc -13 4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
414 9 GlcNAc -13 -8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
415 10 Gal -21 4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
416 11 Gal -21 -8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
417 12 Neu5Ac -29 4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
418 13 Neu5Ac -29 -8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
419 EDGE 12
89592faa2875 Uploaded
chrisb
parents:
diff changeset
420 1 2:b1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
421 2 3:a1 2:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
422 3 4:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
423 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
424 5 6:a1 5:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
425 6 7:a1 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
426 7 8:b1 6:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
427 8 9:b1 7:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
428 9 10:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
429 10 11:b1 9:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
430 11 12:a2 10:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
431 12 13:a2 11:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
432 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
433 ENTRY G00019 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
434 NODE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
435 1 Asn 20 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
436 2 GlcNAc 12 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
437 3 GlcNAc 3 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
438 4 Man -5 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
439 5 Man -12 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
440 6 Man -12 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
441 7 GlcNAc -15 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
442 8 GlcNAc -20 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
443 9 GlcNAc -20 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
444 EDGE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
445 1 2:b1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
446 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
447 3 4:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
448 4 5:a1 4:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
449 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
450 6 7:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
451 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
452 8 9:b1 6:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
453 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
454 ENTRY G00020 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
455 NODE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
456 1 Asn 20 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
457 2 GlcNAc 11 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
458 3 GlcNAc 2 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
459 4 Man -6 3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
460 5 Man -13 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
461 6 Man -13 -3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
462 7 GlcNAc -21 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
463 8 GlcNAc -21 2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
464 9 GlcNAc -21 -8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
465 EDGE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
466 1 2:b1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
467 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
468 3 4:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
469 4 5:a1 4:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
470 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
471 6 7:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
472 7 8:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
473 8 9:b1 6:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
474 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
475 """, "ringsbroken": """ABCDEFGENTRY G00015 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
476 NODE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
477 1 Asn 20 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
478 2 GlcNAc 12 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
479 """
89592faa2875 Uploaded
chrisb
parents:
diff changeset
480 }
89592faa2875 Uploaded
chrisb
parents:
diff changeset
481
89592faa2875 Uploaded
chrisb
parents:
diff changeset
482 self.kcoutput={"ringsmcaw":"""ENTRY G04845 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
483 NODE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
484 1 Glc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
485 2 Gal -10 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
486 3 GlcNAc -20 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
487 4 GlcNAc -20 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
488 5 Gal -30 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
489 6 LFuc -30 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
490 7 LFuc -30 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
491 8 Gal -30 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
492 9 Neu5Ac -40 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
493 EDGE 8
89592faa2875 Uploaded
chrisb
parents:
diff changeset
494 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
495 2 3:b1 2:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
496 3 4:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
497 4 5:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
498 5 6:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
499 6 7:a1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
500 7 8:b1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
501 8 9:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
502 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
503 ENTRY G05108 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
504 NODE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
505 1 GalNAc 20 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
506 2 Gal 10 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
507 3 GlcNAc 0 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
508 4 S -5 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
509 5 Gal -10 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
510 6 LFuc -10 -4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
511 7 Neu5Ac -20 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
512 EDGE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
513 1 2:b1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
514 2 3:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
515 3 4 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
516 4 5:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
517 5 6:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
518 6 7:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
519 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
520 ENTRY G05121 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
521 NODE 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
522 1 GalNAc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
523 2 Neu5Ac -10 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
524 3 Gal -10 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
525 4 GlcNAc -20 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
526 5 Gal -30 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
527 6 LFuc -30 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
528 7 Neu5Ac -40 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
529 EDGE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
530 1 2:a2 1:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
531 2 3:b1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
532 3 4:b1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
533 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
534 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
535 6 7:a2 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
536 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
537 ENTRY G04183 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
538 NODE 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
539 1 GlcNAc 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
540 2 GlcNAc -10 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
541 3 Man -20 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
542 4 Man -30 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
543 5 Man -30 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
544 6 GlcNAc -40 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
545 7 GlcNAc -40 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
546 8 GlcNAc -40 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
547 9 Gal -50 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
548 10 Gal -50 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
549 11 LFuc -50 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
550 12 Gal -50 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
551 13 Neu5Ac -60 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
552 14 Neu5Ac -60 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
553 15 Neu5Ac -60 -15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
554 EDGE 14
89592faa2875 Uploaded
chrisb
parents:
diff changeset
555 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
556 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
557 3 4:a1 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
558 4 5:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
559 5 6:b1 4:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
560 6 7:b1 5:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
561 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
562 8 9:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
563 9 10:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
564 10 11:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
565 11 12:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
566 12 13:a2 9:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
567 13 14:a2 10:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
568 14 15:a2 12:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
569 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
570 ENTRY G04329 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
571 NODE 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
572 1 GlcNAc 27 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
573 2 Gal 18 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
574 3 LFuc 18 -10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
575 4 GlcNAc 9 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
576 5 Gal 0 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
577 6 LFuc 0 -5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
578 7 GlcNAc -9 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
579 8 Gal -18 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
580 9 LFuc -18 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
581 10 Neu5Ac -27 10
89592faa2875 Uploaded
chrisb
parents:
diff changeset
582 EDGE 9
89592faa2875 Uploaded
chrisb
parents:
diff changeset
583 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
584 2 3:a1 1:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
585 3 4:b1 2:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
586 4 5:b1 4:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
587 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
588 6 7:b1 5:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
589 7 8:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
590 8 9:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
591 9 10:a2 8:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
592 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
593 ENTRY G04804 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
594 NODE 15
89592faa2875 Uploaded
chrisb
parents:
diff changeset
595 1 GlcNAc 27.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
596 2 GlcNAc 17.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
597 3 Man 8.2 1.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
598 4 Man 0.2 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
599 5 Man 0.2 -4.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
600 6 GlcNAc -8.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
601 7 GlcNAc -8.8 -0.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
602 8 GlcNAc -8.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
603 9 Gal -17.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
604 10 Gal -17.8 3.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
605 11 LFuc -17.8 -4.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
606 12 Gal -17.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
607 13 Neu5Ac -26.8 7.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
608 14 Neu5Ac -26.8 3.6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
609 15 Neu5Ac -26.8 -8.4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
610 EDGE 14
89592faa2875 Uploaded
chrisb
parents:
diff changeset
611 1 2:b1 1:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
612 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
613 3 4:a1 3:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
614 4 5:a1 3:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
615 5 6:b1 4:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
616 6 7:b1 5:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
617 7 8:b1 5:2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
618 8 9:b1 6:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
619 9 10:b1 7:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
620 10 11:a1 7:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
621 11 12:b1 8:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
622 12 13:a2 9:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
623 13 14:a2 10:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
624 14 15:a2 12:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
625 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
626 """}
89592faa2875 Uploaded
chrisb
parents:
diff changeset
627 os.environ["http_proxy"] = "" # work around for IOError: [Errno url error] invalid proxy for http:
89592faa2875 Uploaded
chrisb
parents:
diff changeset
628 pass
89592faa2875 Uploaded
chrisb
parents:
diff changeset
629
89592faa2875 Uploaded
chrisb
parents:
diff changeset
630 def tearDown(self):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
631 pass
89592faa2875 Uploaded
chrisb
parents:
diff changeset
632
89592faa2875 Uploaded
chrisb
parents:
diff changeset
633 def test_simple_kcf(self):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
634 import StringIO
89592faa2875 Uploaded
chrisb
parents:
diff changeset
635
89592faa2875 Uploaded
chrisb
parents:
diff changeset
636 kcinput = """ENTRY X Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
637 NODE 2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
638 1 galnac 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
639 2 gal -8 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
640 EDGE 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
641 1 2:1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
642 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
643 """
89592faa2875 Uploaded
chrisb
parents:
diff changeset
644
89592faa2875 Uploaded
chrisb
parents:
diff changeset
645 kchandle = StringIO.StringIO(''.join(kcinput))
89592faa2875 Uploaded
chrisb
parents:
diff changeset
646 h = mk.read_meta_kcf(kchandle)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
647 i = mk.flatten_meta_kcf_list(h)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
648 self.assertIn("ENTRY X Glycan\n", i)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
649 self.assertIn("NODE 2\n", i)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
650 self.assertIn(" 1 2:1 1\n", i)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
651
89592faa2875 Uploaded
chrisb
parents:
diff changeset
652
89592faa2875 Uploaded
chrisb
parents:
diff changeset
653
89592faa2875 Uploaded
chrisb
parents:
diff changeset
654 def test_multiple_kcf(self):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
655 import StringIO
89592faa2875 Uploaded
chrisb
parents:
diff changeset
656
89592faa2875 Uploaded
chrisb
parents:
diff changeset
657 kcinput = """ENTRY ((A??)AN) Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
658 NODE 2
89592faa2875 Uploaded
chrisb
parents:
diff changeset
659 1 galnac 0 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
660 2 gal -8 0
89592faa2875 Uploaded
chrisb
parents:
diff changeset
661 EDGE 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
662 1 2:1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
663 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
664 ENTRY G00005 Glycan
89592faa2875 Uploaded
chrisb
parents:
diff changeset
665 NODE 6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
666 1 PP-Dol 15 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
667 2 GlcNAc 8 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
668 3 GlcNAc 0 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
669 4 Man -9 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
670 5 Man -16 7
89592faa2875 Uploaded
chrisb
parents:
diff changeset
671 6 Man -16 -6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
672 EDGE 5
89592faa2875 Uploaded
chrisb
parents:
diff changeset
673 1 2:a1 1
89592faa2875 Uploaded
chrisb
parents:
diff changeset
674 2 3:b1 2:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
675 3 4:b1 3:4
89592faa2875 Uploaded
chrisb
parents:
diff changeset
676 4 5:a1 4:6
89592faa2875 Uploaded
chrisb
parents:
diff changeset
677 5 6:a1 4:3
89592faa2875 Uploaded
chrisb
parents:
diff changeset
678 ///
89592faa2875 Uploaded
chrisb
parents:
diff changeset
679 """
89592faa2875 Uploaded
chrisb
parents:
diff changeset
680 kchandle = StringIO.StringIO(''.join(kcinput))
89592faa2875 Uploaded
chrisb
parents:
diff changeset
681 h = mk.read_meta_kcf(kchandle)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
682 i = mk.flatten_meta_kcf_list(h)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
683 self.assertIn(" 1 2:1 1\n", i)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
684 self.assertIn(" 5 6:a1 4:3\n", i)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
685
89592faa2875 Uploaded
chrisb
parents:
diff changeset
686 def test_empty_stream(self):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
687 with self.assertRaises(IOError):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
688 m = mk.read_meta_kcf(None)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
689 with self.assertRaises(IOError):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
690 m = mk.read_meta_kcf([])
89592faa2875 Uploaded
chrisb
parents:
diff changeset
691 with self.assertRaises(IOError):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
692 m = mk.read_meta_kcf("")
89592faa2875 Uploaded
chrisb
parents:
diff changeset
693
89592faa2875 Uploaded
chrisb
parents:
diff changeset
694 def test_mcaw_kcf(self):
89592faa2875 Uploaded
chrisb
parents:
diff changeset
695 import StringIO
89592faa2875 Uploaded
chrisb
parents:
diff changeset
696 kcf = self.kcinput["ringsmcaw"]
89592faa2875 Uploaded
chrisb
parents:
diff changeset
697 handle = StringIO.StringIO(''.join(kcf))
89592faa2875 Uploaded
chrisb
parents:
diff changeset
698 h = mk.read_meta_kcf(handle)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
699 i = mk.flatten_meta_kcf_list(h)
89592faa2875 Uploaded
chrisb
parents:
diff changeset
700 self.assertEqual(i,self.kcoutput["ringsmcaw"])
89592faa2875 Uploaded
chrisb
parents:
diff changeset
701
89592faa2875 Uploaded
chrisb
parents:
diff changeset
702 def run_tests():
89592faa2875 Uploaded
chrisb
parents:
diff changeset
703 unittest.main()
89592faa2875 Uploaded
chrisb
parents:
diff changeset
704
89592faa2875 Uploaded
chrisb
parents:
diff changeset
705
89592faa2875 Uploaded
chrisb
parents:
diff changeset
706 if __name__ == '__main__':
89592faa2875 Uploaded
chrisb
parents:
diff changeset
707 run_tests()
89592faa2875 Uploaded
chrisb
parents:
diff changeset
708
89592faa2875 Uploaded
chrisb
parents:
diff changeset
709