Skip to content

Commit

Permalink
Update psm_utils/io/idxml.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Velghe <kevin@paretje.be>
  • Loading branch information
jonasscheid and paretje authored Jan 17, 2025
1 parent 1e53b84 commit 17f0486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psm_utils/io/idxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _parse_psm(
score=peptide_hit.getScore(),
precursor_mz=peptide_id.getMZ(),
retention_time=peptide_id.getRT(),
ion_mobility=float(peptide_id.getMetaValue("IM")) if peptide_id.getMetaValue("IM") is not None else None
ion_mobility=float(im) if (im := peptide_id.getMetaValue("IM")) is not None else None,
protein_list=[
accession.decode() for accession in peptide_hit.extractProteinAccessionsSet()
],
Expand Down

0 comments on commit 17f0486

Please sign in to comment.