@@ -218,14 +218,14 @@ def test_hdf5_peak_matrix_to_txt(self):
218
218
attr_name = "intensity" , rsd_tags = (), delimiter = "\t " , samples_in_rows = True , comprehensive = False )
219
219
with open (to_test_result ("pm_mzml_triplicates.txt" ), "rU" ) as test_result :
220
220
ln = test_result .readline ().split ("\t " )[:5 ]
221
- self .assertEqual (ln [0 ], "m/z " )
221
+ self .assertEqual (ln [0 ], "mz " )
222
222
self .assertTrue (np .allclose (map (float ,ln [1 :]), [74.0166655257 , 74.0198337519 , 74.0200238089 , 74.0202012645 ], atol = 1e-10 ))
223
223
224
224
hdf5_peak_matrix_to_txt (to_test_data ("MTBLS79_mzml_peak_matrix.hdf5" ), to_test_result ("pm_mzml_triplicates_comprehensive.txt" ),
225
225
attr_name = "intensity" , rsd_tags = (Tag ("QC" , "classLabel" ),), delimiter = "\t " , samples_in_rows = True , comprehensive = True )
226
226
with open (to_test_result ("pm_mzml_triplicates_comprehensive.txt" ), "rU" ) as test_result :
227
227
ln = test_result .readline ().split ("\t " )[:8 ]
228
- self .assertEquals (ln [:- 2 ], ['m/z ' , 'missing values' , 'tags_batch' , 'tags_replicate' , 'tags_injectionOrder' , 'tags_classLabel' ])
228
+ self .assertEquals (ln [:- 2 ], ['mz ' , 'missing values' , 'tags_batch' , 'tags_replicate' , 'tags_injectionOrder' , 'tags_classLabel' ])
229
229
self .assertTrue (np .isclose (float (ln [- 1 ]), 74.0166655257 ))
230
230
231
231
hdf5_peak_matrix_to_txt (to_test_data ("MTBLS79_mzml_peak_matrix.hdf5" ), to_test_result ("pm_mzml_triplicates_snr.txt" ),
@@ -239,7 +239,7 @@ def test_hdf5_peak_matrix_to_txt(self):
239
239
attr_name = "intensity" , rsd_tags = (Tag ("QC" , "classLabel" ),), delimiter = "\t " , samples_in_rows = False , comprehensive = True )
240
240
with open (to_test_result ("pm_mzml_triplicates_comprehensive_T.txt" ), "rU" ) as test_result :
241
241
self .assertEquals (test_result .readline ().split ("\t " )[0 :5 ],
242
- ['m/z ' , 'present' , 'occurrence' , 'purity' , 'rsd_QC' ])
242
+ ['mz ' , 'present' , 'occurrence' , 'purity' , 'rsd_QC' ])
243
243
244
244
245
245
def test_create_sample_list (self ):
0 commit comments