Skip to content

Commit

Permalink
added debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Feb 6, 2024
1 parent ceed348 commit fcd393c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions ms2rescore/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ def rescore(configuration: Dict, psm_list: Optional[PSMList] = None) -> None:
)

# TODO: avoid hard coding feature generators in some way
rt_required = "deeplc" in config["feature_generators"] and None in psm_list["retention_time"]
im_required = ("ionmob" or "im2deep" in config["feature_generators"]) and None in psm_list[
"ion_mobility"
]
rt_required = ("deeplc" in config["feature_generators"]) and (
None in psm_list["retention_time"]
)
im_required = ("ionmob" or "im2deep" in config["feature_generators"]) and (
None in psm_list["ion_mobility"]
)
logger.debug(f"RT required: {rt_required}, IM required: {im_required}")

if rt_required or im_required:
logger.info("Parsing missing retention time and/or ion mobility values from spectra...")
get_missing_values(config, psm_list, missing_rt=rt_required, missing_im=im_required)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies = [
"numpy>=1.16.0",
"pandas>=1.0",
"rich>=12",
"pyteomics>=4.1.0",
"pyteomics>=4.1.0, <4.7",
"lxml>=4.5",
"ms2pip>=4.0.0-dev5",
"click>=7",
Expand Down

0 comments on commit fcd393c

Please sign in to comment.