From 4c81e08d38b7699a22d45a41708c929ae9346062 Mon Sep 17 00:00:00 2001 From: ArthurDeclercq Date: Wed, 3 Jan 2024 14:11:44 +0100 Subject: [PATCH] added config to debug logging --- ms2rescore/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ms2rescore/core.py b/ms2rescore/core.py index fffb1902..515685aa 100644 --- a/ms2rescore/core.py +++ b/ms2rescore/core.py @@ -27,6 +27,9 @@ def rescore(configuration: Dict, psm_list: Optional[PSMList] = None) -> None: PSMList object containing PSMs. If None, PSMs will be read from configuration ``psm_file``. """ + logger.debug( + f"Running MSĀ²Rescore with following configuration: {json.dumps(configuration, indent=4)}" + ) config = configuration["ms2rescore"] output_file_root = config["output_path"] @@ -35,7 +38,7 @@ def rescore(configuration: Dict, psm_list: Optional[PSMList] = None) -> None: json.dump(configuration, f, indent=4) logger.debug("Using %i of %i available CPUs.", int(config["processes"]), int(cpu_count())) - + exit() # Parse PSMs psm_list = parse_psms(config, psm_list)