@@ -169,9 +169,9 @@ def run_lipidomics_workflow(
169169 file_paths ,
170170 output_directory ,
171171 corems_params ,
172+ db_location ,
172173 scan_translator_path ,
173- cores ,
174- db_location = None
174+ cores
175175 ):
176176 """Run the lipidomics workflow
177177
@@ -185,13 +185,12 @@ def run_lipidomics_workflow(
185185 The directory where the output files will be stored
186186 corems_params : str
187187 The path corems parameters toml file
188+ db_location : str
189+ The path to the sqlite database for lipid spectra searching
188190 scan_translator_path : str
189191 The path to the scan translator file
190192 cores : int
191193 The number of cores to use for processing
192- db_location : str | None
193- The path to the sqlite database for lipid spectra searching
194- No longer used, only present for compatibility
195194 """
196195 if paramaters_file is not None :
197196 if cores is not None or file_paths is not None :
@@ -214,10 +213,14 @@ def run_lipidomics_workflow(
214213 "Must provide an output directory if not using a parameters file"
215214 )
216215 return
216+ if db_location is None :
217+ click .echo ("No database path provided" )
218+ return
217219 run_lcms_lipidomics_workflow (
218220 file_paths = file_paths ,
219221 output_directory = output_directory ,
220222 corems_toml_path = corems_params ,
223+ db_location = db_location ,
221224 scan_translator_path = scan_translator_path ,
222225 cores = cores ,
223226 )
@@ -342,4 +345,4 @@ def run_lcmsmetab_workflow(
342345 msp_file_path = msp_file_path ,
343346 scan_translator_path = scan_translator_path ,
344347 cores = cores ,
345- )
348+ )
0 commit comments