Skip to content

Commit f40e952

Browse files
committed
parse ion mobility (IM) from idxml to PSM obj
1 parent fcf34e9 commit f40e952

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
@@ -187,7 +187,7 @@ def _parse_psm(
187187
score=peptide_hit.getScore(),
188188
precursor_mz=peptide_id.getMZ(),
189189
retention_time=peptide_id.getRT(),
190-
# NOTE: ion mobility will be supported by OpenMS in the future
190+
ion_mobility=float(peptide_id.getMetaValue("IM")) if peptide_id.getMetaValue("IM") is not None else None
191191
protein_list=[
192192
accession.decode() for accession in peptide_hit.extractProteinAccessionsSet()
193193
],

0 commit comments

Comments
 (0)