@@ -22,7 +22,6 @@ _config.init_global(config)
2222
2323out_dir = _config .config .out_dir
2424algorithm_params = _config .config .algorithm_params
25- algorithm_directed = _config .config .algorithm_directed
2625pca_params = _config .config .pca_params
2726hac_params = _config .config .hac_params
2827container_settings = _config .config .container_settings
@@ -273,16 +272,12 @@ rule reconstruct:
273272 run :
274273 # Create a copy so that the updates are not written to the parameters logfile
275274 params = reconstruction_params (wildcards .algorithm , wildcards .params ).copy ()
276- # Add the input files
277- params .update (dict (zip (runner .get_required_inputs (wildcards .algorithm ), * {input }, strict = True )))
278- # Add the output file
279- # All run functions can accept a relative path to the output file that should be written that is called 'output_file'
280- params ['output_file' ] = output .pathway_file
281- # Remove the default placeholder parameter added for algorithms that have no parameters
282- if 'spras_placeholder' in params :
283- params .pop ('spras_placeholder' )
284- params ['container_settings' ] = container_settings
285- runner .run (wildcards .algorithm , params )
275+ # Declare the input files as a dictionary.
276+ inputs = dict (zip (runner .get_required_inputs (wildcards .algorithm ), * {input }, strict = True ))
277+ # Remove the _spras_run_name parameter added for keeping track of the run name for parameters.yml
278+ if '_spras_run_name' in params :
279+ params .pop ('_spras_run_name' )
280+ runner .run (wildcards .algorithm , inputs , output .pathway_file , params , container_settings )
286281
287282# Original pathway reconstruction output to universal output
288283# Use PRRunner as a wrapper to call the algorithm-specific parse_output
0 commit comments