Skip to content

Commit

Permalink
change name of ion mobility param mgf reader
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Oct 2, 2023
1 parent b8d41bc commit 8069034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ms2rescore/parse_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def _parse_values_from_mgf(
else r"(.*)",
spectrum["params"]["title"],
).group()
] = float(spectrum["params"]["ionmobility"])
] = float(
spectrum["params"]["ion_mobility"]
) # http://www.matrixscience.com/help/data_file_help.html
except KeyError:
raise ParsingError(
f"Could not parse ion mobility key `ionmobility` from spectrum file for run {run}."
Expand Down

0 comments on commit 8069034

Please sign in to comment.