Skip to content

Commit 1d63d25

Browse files
committed
update,io:sage: add ion mobility data to PSM obj for sage reader
1 parent 224f401 commit 1d63d25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

psm_utils/io/sage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def _get_peptide_spectrum_match(self, psm_dict) -> PSM:
7070
score=float(psm_dict[self.score_column]),
7171
precursor_mz=self._parse_precursor_mz(psm_dict["expmass"], psm_dict["charge"]),
7272
retention_time=float(psm_dict["rt"]),
73+
ion_mobility=float(psm_dict["ion_mobility"]),
7374
protein_list=psm_dict["proteins"].split(";"),
7475
source="sage",
7576
rank=int(float(psm_dict["rank"])),
@@ -143,6 +144,7 @@ def __iter__(self) -> Iterable[PSM]:
143144
"delta_rt_model",
144145
"aligned_rt",
145146
"predicted_rt",
147+
"predicted_mobility",
146148
"matched_peaks",
147149
"longest_b",
148150
"longest_y",

0 commit comments

Comments
 (0)