Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Dec 18, 2024
1 parent 8dd7d3c commit 93d17c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
14 changes: 4 additions & 10 deletions alphadia/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,11 @@ def run(*args, **kwargs):
return
reporting.init_logging(output_directory)

raw_path_list = parse_raw_path_list(args, config)

quant_dir = args.quant_dir
library_path = args.library
fasta_path_list = args.fasta

cli_params_config = {
ConfigKeys.RAW_PATH_LIST: raw_path_list,
ConfigKeys.LIBRARY_PATH: library_path,
ConfigKeys.FASTA_PATH_LIST: fasta_path_list,
ConfigKeys.QUANT_DIR: quant_dir,
ConfigKeys.RAW_PATH_LIST: parse_raw_path_list(args, config),
ConfigKeys.LIBRARY_PATH: args.library,
ConfigKeys.FASTA_PATH_LIST: args.fasta,
ConfigKeys.QUANT_DIR: args.quant_dir,
}

# TODO rename all output_directory, output_folder => output_path, quant_dir->quant_path (except cli parameter)
Expand Down
11 changes: 5 additions & 6 deletions alphadia/search_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,14 @@ def run_plan(self):
self._library_step_output_dir
)

mbr_step_library_path = str(
self._library_step_output_dir / f"{SearchPlanOutput.LIBRARY_OUTPUT}.hdf"
)

mbr_step_extra_config = (
self._multistep_config[MBR_STEP_NAME]
| optimized_values_config
| {
ConfigKeys.LIBRARY_PATH: str(
self._library_step_output_dir
/ f"{SearchPlanOutput.LIBRARY_OUTPUT}.hdf"
)
}
| {ConfigKeys.LIBRARY_PATH: mbr_step_library_path}
)
self.run_step(
self._output_dir,
Expand Down

0 comments on commit 93d17c6

Please sign in to comment.