Skip to content

Commit 6258c87

Browse files
authored
Merge pull request #109 from jonasscheid/parse-im-idxml
Parse ion mobility from idXML to PSM object
2 parents 24f2a00 + e89ea96 commit 6258c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psm_utils/io/idxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _parse_psm(
194194
score=peptide_hit.getScore(),
195195
precursor_mz=peptide_id.getMZ(),
196196
retention_time=peptide_id.getRT(),
197-
# NOTE: ion mobility will be supported by OpenMS in the future
197+
ion_mobility=float(im) if (im := peptide_id.getMetaValue("IM")) is not None else None,
198198
protein_list=[
199199
accession.decode() for accession in peptide_hit.extractProteinAccessionsSet()
200200
],

0 commit comments

Comments
 (0)