Mercurial > repos > fgiacomoni > lipidmaps_textsearch
annotate t/wsdl_lmTest.t @ 3:f4e6b77c46e3 draft default tip
Master branch Updating - - Fxx
author | fgiacomoni |
---|---|
date | Wed, 03 Oct 2018 05:47:14 -0400 |
parents | 1276908e8fc4 |
children |
rev | line source |
---|---|
0
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
1 #! perl |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
2 use diagnostics; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
3 use warnings; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
4 no warnings qw/void/; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
5 use strict; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
6 no strict "refs" ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
7 use Test::More qw( no_plan ); |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
8 #use Test::More tests => 29 ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
9 use FindBin ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
10 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
11 ## Specific Modules |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
12 use lib $FindBin::Bin ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
13 my $binPath = $FindBin::Bin ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
14 use lib::lmTest qw( :ALL ) ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
15 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
16 my $current_test = 0 ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
17 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
18 print "\n\t\t\t\t * * * * * * \n" ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
19 print "\t * * * - - - Test LiPIDMAPS Main script - - - * * * \n\n" ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
20 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
21 print "\n** Test $current_test build_lm_mass_query with no fam/class/subcl **\n" ; $current_test++; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
22 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
23 is( build_lm_mass_queryTest('0.5', 'NA', 'NA_1', 'NA_101'),'http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputColumnHeader=No&OutputMode=File&OutputType=TSV&ExactMassOffSet=0.5&ExactMass=', 'Works with no cat, no class and no subcl argvt' ) ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
24 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
25 print "\n** Test $current_test build_lm_mass_query with a fam but no class/subcl **\n" ; $current_test++; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
26 is( build_lm_mass_queryTest('0.5', 1, 'NA_1', 'NA_101'),'http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputColumnHeader=No&OutputMode=File&OutputType=TSV&CoreClass=1&ExactMassOffSet=0.5&ExactMass=', 'Works with a cat, but no class and no subcl argvt' ) ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
27 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
28 print "\n** Test $current_test build_lm_mass_query with a fam/class but no subcl **\n" ; $current_test++; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
29 is( build_lm_mass_queryTest('0.5', 1, 101, 'NA_101'),'http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputColumnHeader=No&OutputMode=File&OutputType=TSV&CoreClass=1&MainClass=101&ExactMassOffSet=0.5&ExactMass=', 'Works with a cat, a class but no subcl argvt' ) ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
30 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
31 print "\n** Test $current_test build_lm_mass_query with a fam/class/subcl **\n" ; $current_test++; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
32 is( build_lm_mass_queryTest('0.5', 1, 101, 10101),'http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputColumnHeader=No&OutputMode=File&OutputType=TSV&CoreClass=1&MainClass=101&SubClass=10101&ExactMassOffSet=0.5&ExactMass=', 'Works with a cat, a class and a subcl argvt' ) ; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
33 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
34 print "\n** Test $current_test round_nums with a list of float and a decimal reduction of 1 **\n" ; $current_test++; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
35 is_deeply( round_numsTest( |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
36 ['175.01', '238.19', '420.16', '780.32', '956.25', '1100.45' ], 1 ), |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
37 ['175.0', '238.2', '420.2', '780.3', '956.2', '1100.5' ], |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
38 'Method \'round_nums\' works with a list of float and return a well rounded list'); |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
39 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
40 print "\n** Test $current_test round_nums with a list of float and a decimal reduction of 0 **\n" ; $current_test++; |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
41 is_deeply( round_numsTest( |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
42 ['175.01', '238.19', '420.16', '780.32', '956.25', '1100.45', '111.6' ], 0 ), |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
43 ['175', '238', '420', '780', '956', '1100', '112' ], |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
44 'Method \'round_nums\' works with a list of float and return a well rounded list'); |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
45 |
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
46 |
2 | 47 print "\n** Test $current_test convert_tbody_to_globalmatrix with a list of hearders and a tbody_object **\n" ; $current_test++; |
48 is_deeply( convert_tbody_to_globalmatrixTest( | |
49 ['MASS', 'CLUSTER_DELTA', 'CLUSTER_FORMULA', 'CLUSTER_NAME', 'CLUSTER_TOTAL'], | |
50 [ | |
51 { | |
52 'PAGE_NB' => 1, | |
53 'MASSES' => [ | |
54 { | |
55 'TRANSFORMS' => [ | |
56 { | |
57 'COLOR' => 'grey-bolt', | |
58 'TRANSFO_TYPE' => 'Init_MZ', | |
59 'CLUSTERS' => [ | |
60 { | |
61 'CLUSTER_FORMULA' => 'C30H59O12P', | |
62 'NB_ENTRY_BY_MASS' => 0, | |
63 'NB_CLUSTER_BY_MASS' => 1, | |
64 'PARENT_ID' => '10_0_0', | |
65 'COLOR' => 'white', | |
66 'CLUSTER_NAME' => 'PI_21:0', | |
67 'CLUSTER_TOTAL' => 1, | |
68 'NB_MASS' => 10, | |
69 'CLUSTER_DELTA' => '-0.23', | |
70 'ENTRIES' => [ | |
71 { | |
72 'COLOR' => 'white', | |
73 'ENTRY_FORMULA' => 'C30H59O12P', | |
74 'NB_CLUSTER_BY_MASS' => 1, | |
75 'NB_ENTRY_BY_MASS' => 1, | |
76 'ENTRY_COMMONNAME' => 'PI(21:0/0:0)', | |
77 'ENTRY_SYSTNAME' => '1-heneicosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
78 'LM_ID' => 'LMGP06050025', | |
79 'MZ_DELTA' => '-0.23', | |
80 'NB_MASS' => 10, | |
81 'CLUSTER_ID' => 1 | |
82 } | |
83 ] | |
84 } | |
85 ] | |
86 } | |
87 ], | |
88 'COLOR' => 'white', | |
89 'MASS' => '642.5987', | |
90 'TOTAL' => 1, | |
91 'NB_ENTRY_BY_MASS' => 0, | |
92 'NB_CLUSTER_BY_MASS' => 0, | |
93 'NB_MASS' => 10 | |
94 }, | |
95 { | |
96 'COLOR' => 'green', | |
97 'TRANSFORMS' => [ | |
98 { | |
99 'TRANSFO_TYPE' => 'Init_MZ', | |
100 'CLUSTERS' => [ | |
101 { | |
102 'ENTRIES' => [ | |
103 { | |
104 'LM_ID' => 'LMGP06050024', | |
105 'NB_MASS' => 13, | |
106 'CLUSTER_ID' => 1, | |
107 'MZ_DELTA' => '-0.18', | |
108 'ENTRY_COMMONNAME' => 'PI(22:0/0:0)', | |
109 'ENTRY_SYSTNAME' => '1-docosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
110 'ENTRY_FORMULA' => 'C31H61O12P', | |
111 'NB_ENTRY_BY_MASS' => 1, | |
112 'NB_CLUSTER_BY_MASS' => 1, | |
113 'COLOR' => 'green' | |
114 } | |
115 ], | |
116 'CLUSTER_DELTA' => '-0.18', | |
117 'NB_MASS' => 13, | |
118 'CLUSTER_TOTAL' => 1, | |
119 'COLOR' => 'green', | |
120 'CLUSTER_NAME' => 'PI_22:0', | |
121 'PARENT_ID' => '13_0_0', | |
122 'NB_CLUSTER_BY_MASS' => 1, | |
123 'NB_ENTRY_BY_MASS' => 0, | |
124 'CLUSTER_FORMULA' => 'C31H61O12P' | |
125 } | |
126 ], | |
127 'COLOR' => 'green-bolt' | |
128 } | |
129 ], | |
130 'MASS' => '656.5718', | |
131 'NB_MASS' => 13, | |
132 'TOTAL' => 1, | |
133 'NB_ENTRY_BY_MASS' => 0, | |
134 'NB_CLUSTER_BY_MASS' => 0 | |
135 }, | |
136 { | |
137 'TRANSFORMS' => [ | |
138 { | |
139 'CLUSTERS' => [ | |
140 { | |
141 'ENTRIES' => [ | |
142 { | |
143 'CLUSTER_ID' => 1, | |
144 'NB_MASS' => 14, | |
145 'MZ_DELTA' => '-0.19', | |
146 'LM_ID' => 'LMGP06050024', | |
147 'ENTRY_SYSTNAME' => '1-docosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
148 'ENTRY_COMMONNAME' => 'PI(22:0/0:0)', | |
149 'NB_CLUSTER_BY_MASS' => 1, | |
150 'NB_ENTRY_BY_MASS' => 1, | |
151 'ENTRY_FORMULA' => 'C31H61O12P', | |
152 'COLOR' => 'white' | |
153 } | |
154 ], | |
155 'NB_MASS' => 14, | |
156 'CLUSTER_DELTA' => '-0.19', | |
157 'CLUSTER_TOTAL' => 1, | |
158 'CLUSTER_NAME' => 'PI_22:0', | |
159 'COLOR' => 'white', | |
160 'PARENT_ID' => '14_0_0', | |
161 'NB_CLUSTER_BY_MASS' => 1, | |
162 'NB_ENTRY_BY_MASS' => 0, | |
163 'CLUSTER_FORMULA' => 'C31H61O12P' | |
164 } | |
165 ], | |
166 'TRANSFO_TYPE' => 'Init_MZ', | |
167 'COLOR' => 'grey-bolt' | |
168 } | |
169 ], | |
170 'COLOR' => 'white', | |
171 'NB_CLUSTER_BY_MASS' => 0, | |
172 'NB_ENTRY_BY_MASS' => 0, | |
173 'TOTAL' => 1, | |
174 'NB_MASS' => 14, | |
175 'MASS' => '656.5802' | |
176 }, | |
177 { | |
178 'NB_ENTRY_BY_MASS' => 0, | |
179 'TOTAL' => 1, | |
180 'NB_CLUSTER_BY_MASS' => 0, | |
181 'NB_MASS' => 15, | |
182 'MASS' => '656.5886', | |
183 'TRANSFORMS' => [ | |
184 { | |
185 'COLOR' => 'green-bolt', | |
186 'TRANSFO_TYPE' => 'Init_MZ', | |
187 'CLUSTERS' => [ | |
188 { | |
189 'ENTRIES' => [ | |
190 { | |
191 'ENTRY_FORMULA' => 'C31H61O12P', | |
192 'NB_ENTRY_BY_MASS' => 1, | |
193 'NB_CLUSTER_BY_MASS' => 1, | |
194 'COLOR' => 'green', | |
195 'LM_ID' => 'LMGP06050024', | |
196 'CLUSTER_ID' => 1, | |
197 'NB_MASS' => 15, | |
198 'MZ_DELTA' => '-0.20', | |
199 'ENTRY_SYSTNAME' => '1-docosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
200 'ENTRY_COMMONNAME' => 'PI(22:0/0:0)' | |
201 } | |
202 ], | |
203 'CLUSTER_DELTA' => '-0.20', | |
204 'NB_MASS' => 15, | |
205 'CLUSTER_TOTAL' => 1, | |
206 'CLUSTER_NAME' => 'PI_22:0', | |
207 'COLOR' => 'green', | |
208 'PARENT_ID' => '15_0_0', | |
209 'NB_ENTRY_BY_MASS' => 0, | |
210 'NB_CLUSTER_BY_MASS' => 1, | |
211 'CLUSTER_FORMULA' => 'C31H61O12P' | |
212 } | |
213 ] | |
214 } | |
215 ], | |
216 'COLOR' => 'green' | |
217 } | |
218 ] | |
219 } | |
220 ] ), | |
221 [ | |
222 [ | |
223 'MASS', | |
224 'CLUSTER_DELTA', | |
225 'CLUSTER_FORMULA', | |
226 'CLUSTER_NAME', | |
227 'CLUSTER_TOTAL' | |
228 ], | |
229 [ | |
230 '642.5987', | |
231 '-0.23', | |
232 'C30H59O12P', | |
233 'PI_21:0', | |
234 1 | |
235 ], | |
236 [ | |
237 '656.5718', | |
238 '-0.18', | |
239 'C31H61O12P', | |
240 'PI_22:0', | |
241 1 | |
242 ], | |
243 [ | |
244 '656.5802', | |
245 '-0.19', | |
246 'C31H61O12P', | |
247 'PI_22:0', | |
248 1 | |
249 ], | |
250 [ | |
251 '656.5886', | |
252 '-0.20', | |
253 'C31H61O12P', | |
254 'PI_22:0', | |
255 1 | |
256 ] | |
257 ], | |
258 'Method \'convert_tbody_to_globalmatrix\' works with a list of headers and a wellformed tbody_object and return a well formed matrix'); | |
0
e8bd49794291
Init repository with last lipidmaps_textsearch master version
fgiacomoni
parents:
diff
changeset
|
259 |
2 | 260 print "\n** Test $current_test convert_tbody_to_globalmatrix with no headers but with a tbody_object **\n" ; $current_test++; |
261 is_deeply( convert_tbody_to_globalmatrixTest( | |
262 undef, | |
263 [ | |
264 { | |
265 'PAGE_NB' => 1, | |
266 'MASSES' => [ | |
267 { | |
268 'TRANSFORMS' => [ | |
269 { | |
270 'COLOR' => 'grey-bolt', | |
271 'TRANSFO_TYPE' => 'Init_MZ', | |
272 'CLUSTERS' => [ | |
273 { | |
274 'CLUSTER_FORMULA' => 'C30H59O12P', | |
275 'NB_ENTRY_BY_MASS' => 0, | |
276 'NB_CLUSTER_BY_MASS' => 1, | |
277 'PARENT_ID' => '10_0_0', | |
278 'COLOR' => 'white', | |
279 'CLUSTER_NAME' => 'PI_21:0', | |
280 'CLUSTER_TOTAL' => 1, | |
281 'NB_MASS' => 10, | |
282 'CLUSTER_DELTA' => '-0.23', | |
283 'ENTRIES' => [ | |
284 { | |
285 'COLOR' => 'white', | |
286 'ENTRY_FORMULA' => 'C30H59O12P', | |
287 'NB_CLUSTER_BY_MASS' => 1, | |
288 'NB_ENTRY_BY_MASS' => 1, | |
289 'ENTRY_COMMONNAME' => 'PI(21:0/0:0)', | |
290 'ENTRY_SYSTNAME' => '1-heneicosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
291 'LM_ID' => 'LMGP06050025', | |
292 'MZ_DELTA' => '-0.23', | |
293 'NB_MASS' => 10, | |
294 'CLUSTER_ID' => 1 | |
295 } | |
296 ] | |
297 } | |
298 ] | |
299 } | |
300 ], | |
301 'COLOR' => 'white', | |
302 'MASS' => '642.5987', | |
303 'TOTAL' => 1, | |
304 'NB_ENTRY_BY_MASS' => 0, | |
305 'NB_CLUSTER_BY_MASS' => 0, | |
306 'NB_MASS' => 10 | |
307 }, | |
308 { | |
309 'COLOR' => 'green', | |
310 'TRANSFORMS' => [ | |
311 { | |
312 'TRANSFO_TYPE' => 'Init_MZ', | |
313 'CLUSTERS' => [ | |
314 { | |
315 'ENTRIES' => [ | |
316 { | |
317 'LM_ID' => 'LMGP06050024', | |
318 'NB_MASS' => 13, | |
319 'CLUSTER_ID' => 1, | |
320 'MZ_DELTA' => '-0.18', | |
321 'ENTRY_COMMONNAME' => 'PI(22:0/0:0)', | |
322 'ENTRY_SYSTNAME' => '1-docosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
323 'ENTRY_FORMULA' => 'C31H61O12P', | |
324 'NB_ENTRY_BY_MASS' => 1, | |
325 'NB_CLUSTER_BY_MASS' => 1, | |
326 'COLOR' => 'green' | |
327 } | |
328 ], | |
329 'CLUSTER_DELTA' => '-0.18', | |
330 'NB_MASS' => 13, | |
331 'CLUSTER_TOTAL' => 1, | |
332 'COLOR' => 'green', | |
333 'CLUSTER_NAME' => 'PI_22:0', | |
334 'PARENT_ID' => '13_0_0', | |
335 'NB_CLUSTER_BY_MASS' => 1, | |
336 'NB_ENTRY_BY_MASS' => 0, | |
337 'CLUSTER_FORMULA' => 'C31H61O12P' | |
338 } | |
339 ], | |
340 'COLOR' => 'green-bolt' | |
341 } | |
342 ], | |
343 'MASS' => '656.5718', | |
344 'NB_MASS' => 13, | |
345 'TOTAL' => 1, | |
346 'NB_ENTRY_BY_MASS' => 0, | |
347 'NB_CLUSTER_BY_MASS' => 0 | |
348 }, | |
349 { | |
350 'TRANSFORMS' => [ | |
351 { | |
352 'CLUSTERS' => [ | |
353 { | |
354 'ENTRIES' => [ | |
355 { | |
356 'CLUSTER_ID' => 1, | |
357 'NB_MASS' => 14, | |
358 'MZ_DELTA' => '-0.19', | |
359 'LM_ID' => 'LMGP06050024', | |
360 'ENTRY_SYSTNAME' => '1-docosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
361 'ENTRY_COMMONNAME' => 'PI(22:0/0:0)', | |
362 'NB_CLUSTER_BY_MASS' => 1, | |
363 'NB_ENTRY_BY_MASS' => 1, | |
364 'ENTRY_FORMULA' => 'C31H61O12P', | |
365 'COLOR' => 'white' | |
366 } | |
367 ], | |
368 'NB_MASS' => 14, | |
369 'CLUSTER_DELTA' => '-0.19', | |
370 'CLUSTER_TOTAL' => 1, | |
371 'CLUSTER_NAME' => 'PI_22:0', | |
372 'COLOR' => 'white', | |
373 'PARENT_ID' => '14_0_0', | |
374 'NB_CLUSTER_BY_MASS' => 1, | |
375 'NB_ENTRY_BY_MASS' => 0, | |
376 'CLUSTER_FORMULA' => 'C31H61O12P' | |
377 } | |
378 ], | |
379 'TRANSFO_TYPE' => 'Init_MZ', | |
380 'COLOR' => 'grey-bolt' | |
381 } | |
382 ], | |
383 'COLOR' => 'white', | |
384 'NB_CLUSTER_BY_MASS' => 0, | |
385 'NB_ENTRY_BY_MASS' => 0, | |
386 'TOTAL' => 1, | |
387 'NB_MASS' => 14, | |
388 'MASS' => '656.5802' | |
389 }, | |
390 { | |
391 'NB_ENTRY_BY_MASS' => 0, | |
392 'TOTAL' => 1, | |
393 'NB_CLUSTER_BY_MASS' => 0, | |
394 'NB_MASS' => 15, | |
395 'MASS' => '656.5886', | |
396 'TRANSFORMS' => [ | |
397 { | |
398 'COLOR' => 'green-bolt', | |
399 'TRANSFO_TYPE' => 'Init_MZ', | |
400 'CLUSTERS' => [ | |
401 { | |
402 'ENTRIES' => [ | |
403 { | |
404 'ENTRY_FORMULA' => 'C31H61O12P', | |
405 'NB_ENTRY_BY_MASS' => 1, | |
406 'NB_CLUSTER_BY_MASS' => 1, | |
407 'COLOR' => 'green', | |
408 'LM_ID' => 'LMGP06050024', | |
409 'CLUSTER_ID' => 1, | |
410 'NB_MASS' => 15, | |
411 'MZ_DELTA' => '-0.20', | |
412 'ENTRY_SYSTNAME' => '1-docosanoyl-glycero-3-phospho-(1\'-myo-inositol)', | |
413 'ENTRY_COMMONNAME' => 'PI(22:0/0:0)' | |
414 } | |
415 ], | |
416 'CLUSTER_DELTA' => '-0.20', | |
417 'NB_MASS' => 15, | |
418 'CLUSTER_TOTAL' => 1, | |
419 'CLUSTER_NAME' => 'PI_22:0', | |
420 'COLOR' => 'green', | |
421 'PARENT_ID' => '15_0_0', | |
422 'NB_ENTRY_BY_MASS' => 0, | |
423 'NB_CLUSTER_BY_MASS' => 1, | |
424 'CLUSTER_FORMULA' => 'C31H61O12P' | |
425 } | |
426 ] | |
427 } | |
428 ], | |
429 'COLOR' => 'green' | |
430 } | |
431 ] | |
432 } | |
433 ] ), | |
434 [ | |
435 [ | |
436 'MASS', | |
437 'CLUSTER_DELTA', | |
438 'CLUSTER_FORMULA', | |
439 'CLUSTER_NAME', | |
440 'CLUSTER_TOTAL' | |
441 ], | |
442 [ | |
443 '642.5987', | |
444 '-0.23', | |
445 'C30H59O12P', | |
446 'PI_21:0', | |
447 1 | |
448 ], | |
449 [ | |
450 '656.5718', | |
451 '-0.18', | |
452 'C31H61O12P', | |
453 'PI_22:0', | |
454 1 | |
455 ], | |
456 [ | |
457 '656.5802', | |
458 '-0.19', | |
459 'C31H61O12P', | |
460 'PI_22:0', | |
461 1 | |
462 ], | |
463 [ | |
464 '656.5886', | |
465 '-0.20', | |
466 'C31H61O12P', | |
467 'PI_22:0', | |
468 1 | |
469 ] | |
470 ], | |
471 'Method \'convert_tbody_to_globalmatrix\' works with no given list of headers and a wellformed tbody_object and return a well formed matrix'); |