Skip to content

Commit

Permalink
properly parse IM from idXML
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasscheid authored and fcyu committed Jan 17, 2025
1 parent bd78bcc commit 0780acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easypqp/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def parse_idxml(self):
'massdiff': float(0),
'precursor_charge': int(p.getHits()[0].getCharge()),
'retention_time': float(p.getRT()),
'ion_mobility': float(0),
'ion_mobility': float(p.getMetaValue("IM")) if p.getMetaValue("IM") is not None else np.nan,
'modified_peptide': p.getHits()[0].getSequence().toUniModString().decode("utf-8"),
'peptide_sequence': p.getHits()[0].getSequence().toUnmodifiedString().decode("utf-8"),
'modifications': '-',
Expand All @@ -578,7 +578,7 @@ def parse_idxml(self):
'massdiff': float(0),
'precursor_charge': int(p.getHits()[0].getCharge()),
'retention_time': float(p.getRT()),
'ion_mobility': float(0),
'ion_mobility': float(p.getMetaValue("IM")) if p.getMetaValue("IM") is not None else np.nan,
'modified_peptide': p.getHits()[0].getSequence().toUniModString(),
'peptide_sequence': p.getHits()[0].getSequence().toUnmodifiedString(),
'modifications': '-',
Expand Down

0 comments on commit 0780acb

Please sign in to comment.