changeset 16:53e1eee93430

Last tested version
author pieter.lukasse@wur.nl
date Fri, 24 Jan 2014 10:38:31 +0100
parents 777c1c2a17a2
children eefa842507cd
files MsClust.jar rankfilter_GCMS/test/test_pdfread.py test/integration_tests.py test/test_library_lookup.py
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
Binary file MsClust.jar has changed
--- a/rankfilter_GCMS/test/test_pdfread.py	Tue Jan 21 16:50:15 2014 +0100
+++ b/rankfilter_GCMS/test/test_pdfread.py	Fri Jan 24 10:38:31 2014 +0100
@@ -17,7 +17,7 @@
         '''
         Tests the reading and parsing of a NIST PDF file
         '''
-        [hitlist, hitlist_missed] = pdfread.getPDF(self.nist_pdf)
+        [hitlist, hitlist_missed] = pdfread.getPDF(self.nist_pdf, True)
         rows = [hitlist[row] for row in hitlist.keys()]
         data = [set(row) for row in zip(*rows)]
         expected_element = set(('12.3', ' Sucrose ', '14', 'undef', ' standards 2009', ' 660', 'not_def',
--- a/test/integration_tests.py	Tue Jan 21 16:50:15 2014 +0100
+++ b/test/integration_tests.py	Fri Jan 24 10:38:31 2014 +0100
@@ -119,7 +119,7 @@
 
         #Build up arguments and run
         input_txt = resource_filename(__name__, "data/integration/NIST_identification_results_tabular.txt")
-        library = resource_filename(__name__, "data/integration/Library_RI_DB_capillary_columns-noDuplicates.txt")
+        library = resource_filename(__name__, "../repositories/PRIMS-metabolomics/RI_DB_libraries/Library_RI_DB_capillary_columns-noDuplicates.txt")
         regress_model = resource_filename(__name__, "data/integration/regression_MODEL_for_columns.txt")
         sys.argv = ['test',
                     library,
--- a/test/test_library_lookup.py	Tue Jan 21 16:50:15 2014 +0100
+++ b/test/test_library_lookup.py	Fri Jan 24 10:38:31 2014 +0100
@@ -147,9 +147,9 @@
         '''
         Tests the match_library.py functionality
         '''
-        riqc_libs_dir = resource_filename(__name__, "../repositories")
+        riqc_libs_dir = resource_filename(__name__, "../repositories/PRIMS-metabolomics/RI_DB_libraries")
         get_library_files_output = match_library.get_directory_files(riqc_libs_dir)
-        self.assertEqual(4, len(get_library_files_output))
+        self.assertEqual(1, len(get_library_files_output))
         self.assertEqual("Library_RI_DB_capillary_columns-noDuplicates", get_library_files_output[0][0])
         #TODO change assert below to assert that the result is a file, so the test can run on other dirs as well:
         #self.assertEqual("E:\\workspace\\PRIMS-metabolomics\\python-tools\\tools\\GCMS\\test\\data\\riqc_libs\\RI DB library (capillary columns) Dec.2012.txt", get_library_files_output[0][1])