Mercurial > repos > pieterlukasse > prims_metabolomics
comparison match_library.py @ 41:e67149fbff20
small changes/improvements;
new metams and xcms tools
author | pieter.lukasse@wur.nl |
---|---|
date | Thu, 06 Nov 2014 16:14:44 +0100 |
parents | eabfda6213ae |
children |
comparison
equal
deleted
inserted
replaced
40:a7b609941846 | 41:e67149fbff20 |
---|---|
106 returns the list of .txt files found as a dictionary | 106 returns the list of .txt files found as a dictionary |
107 with file name and full path so that it can | 107 with file name and full path so that it can |
108 fill a Galaxy drop-down combo box. | 108 fill a Galaxy drop-down combo box. |
109 | 109 |
110 ''' | 110 ''' |
111 files = glob.glob(dir_name + "/*.txt") | 111 files = glob.glob(dir_name + "/*.*") |
112 if len(files) == 0: | 112 if len(files) == 0: |
113 # Configuration error: no library files found in <galaxy-home-dir>/" + dir_name : | 113 # Configuration error: no library files found in <galaxy-home-dir>/" + dir_name : |
114 galaxy_output = [("Configuration error: expected file not found in <galaxy-home-dir>/" + dir_name, "", False)] | 114 galaxy_output = [("Configuration error: expected file not found in <galaxy-home-dir>/" + dir_name, "", False)] |
115 else: | 115 else: |
116 galaxy_output = [(str(get_file_name_no_ext(file_name)), str(os.path.abspath(file_name)), False) for file_name in files] | 116 galaxy_output = [(str(get_file_name_no_ext(file_name)), str(os.path.abspath(file_name)), False) for file_name in files] |