Skip to content

Commit

Permalink
added config to debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Jan 3, 2024
1 parent 50a4b42 commit 4c81e08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ms2rescore/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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)

Expand Down

0 comments on commit 4c81e08

Please sign in to comment.