We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
io.pepxml
spectrum_query
search_hit
1 parent c5960ee commit 3526593Copy full SHA for 3526593
2 files changed
psm_utils/__init__.py
@@ -1,6 +1,6 @@
1
"""Common utilities for parsing and handling PSMs, and search engine results."""
2
3
-__version__ = "1.5.1"
+__version__ = "1.5.2"
4
__all__ = ["Peptidoform", "PSM", "PSMList"]
5
6
from warnings import filterwarnings
psm_utils/io/pepxml.py
@@ -73,6 +73,8 @@ def _infer_score_name(self) -> str | None:
73
# Get scores from first PSM
74
with pepxml.read(str(self.filename)) as reader:
75
for spectrum_query in reader:
76
+ if "search_hit" not in spectrum_query:
77
+ continue
78
score_keys = spectrum_query["search_hit"][0]["search_score"].keys()
79
break
80
else:
0 commit comments