From 96a67d17d24ec5264c82128b8a7aa51966dffe59 Mon Sep 17 00:00:00 2001 From: Mario Picciani Date: Tue, 31 Oct 2023 23:19:57 +0100 Subject: [PATCH] added a workaround for misisng collision column --- spectrum_io/raw/msraw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spectrum_io/raw/msraw.py b/spectrum_io/raw/msraw.py index 578aca0..a9ba15b 100644 --- a/spectrum_io/raw/msraw.py +++ b/spectrum_io/raw/msraw.py @@ -136,6 +136,10 @@ def read_mzml( """ file_list = MSRaw.get_file_list(source, ext) + # this is a temporary fix until this is changed in spectrum_fundamentals + global MZML_DATA_COLUMNS + MZML_DATA_COLUMNS = MZML_DATA_COLUMNS + ["COLLISION_ENERGY"] + if package == "pymzml": data = MSRaw._read_mzml_pymzml(file_list, scanidx, *args, **kwargs) elif package == "pyteomics":