You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
msconvert: representation of ion mobility changed #8732
ProteoWizard creators have changed the representation of ion mobility in their files, and as a result, NuXL stopped assigning ion mobility from the mzML files (with the same tunings) generated by the new version of MSConvert. Two exemplary mzML files are attached to the zip file to be downloaded. I also included snippets from the mzML files with the difference as a text file. In the new version, CCS is reported instead of 1/K0. This should be accounted for in the web version and in the new versions of OpenMS. Ideally, to save both options, if it's possible.
#7851 - feature: split experiments by FAIMS CV [merged] #7958 - improve compatibility with mzTabM standard [merged] #7981 - refactor: move basename member out of PeptideIdentification into MetaValues [merged] #8074 - Up to 40% faster mzML reading [merged]
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
I've analyzed the OpenMS codebase to understand the impact of this change. Here's a comprehensive summary and proposed fix.
Problem Summary
Old MSConvert (v3.0.24333) outputs:
<cvParamcvRef="MS"accession="MS:1002815"name="inverse reduced ion mobility"value="1.1055830536289999"unitCvRef="MS"unitAccession="MS:1002814"unitName="volt-second per square centimeter"/>
Update getMS2IMType() (~line 4555) to recognize CCS:
// Add CCS as a valid IM typeif (IM_unit == DriftTimeUnit::CCS) {
return DriftTimeUnit::CCS; // Already in CCS format
}
Update convertVSSCToCCS() usage (~lines 5199 and 5964):
// Only convert if input is VSSC (1/K0), skip if already CCSif (IM_unit == DriftTimeUnit::VSSC) {
convertVSSCToCCS(spectra);
}
// If IM_unit == DriftTimeUnit::CCS, data is already in correct format
Update getIMUnit() to recognize CCS arrays if needed.
Testing
Add test cases with mzML files containing both formats:
src/tests/topp/ - Add test mzML with MS:1002954 (CCS format)
Verify round-trip: read CCS → write CCS → read back
Backward Compatibility
This change is fully backward compatible:
Existing files with MS:1002815 (1/K0) continue to work unchanged
New files with MS:1002954 (CCS) will now be parsed correctly
Both formats can coexist in the codebase
Priority
High - This affects all users processing data from instruments using newer MSConvert versions (3.0.26007+), particularly Bruker timsTOF users running NuXL cross-linking workflows.
I've implemented CCS (collisional cross sectional area) support in OpenMS. Here's a summary of all changes:
Core Changes (10 files modified)
1. Enum Definitions
IMTypes.h: Added CCS to DriftTimeUnit enum
IMTypes.cpp: Added "CCS" string representation and fromIMUnit() conversion
CommonEnums.h: Added IM_CCS to DIM_UNIT enum with display names
2. mzML I/O (MzMLHandler.cpp)
Reading: Added parsing of CV term MS:1002954 (collisional cross sectional area) at both precursor and scan levels
Writing: Added output of CCS values with proper CV term, unit (UO:0000324 square angstrom), and unit reference
3. Ion Mobility Data Handling
IMDataConverter.cpp: Updated getIMUnit() to recognize CCS from CV terms and unit annotations
4. NuXL Tool (OpenNuXL.cpp)
Modified to skip CCS→CCS conversion when data is already in CCS format (from newer MSConvert)
Added log message: "Ion Mobility already in CCS format, no conversion needed."
5. Python Bindings
IMTypes.pxd: Added CCS to Cython enum declaration
MSSpectrum.pyx: Updated documentation to include CCS enum value (4)
6. Parameter Documentation Updates
OpenSwathWorkflow.cpp: Updated IM extraction window parameters to mention CCS
PeakPickerIM.cpp: Added warnings about tolerance values being in 1/K0 units, with guidance for CCS data
Backward Compatibility
All changes are fully backward compatible:
Existing files with MS:1002815 (1/K0) continue to work unchanged
New files with MS:1002954 (CCS) are now parsed correctly
Both formats can coexist
Testing Notes
The implementation correctly handles the two sample files provided:
Old MSConvert (v3.0.24333): Uses MS:1002815 → parsed as DriftTimeUnit::VSSC
New MSConvert (v3.0.26007): Uses MS:1002954 → parsed as DriftTimeUnit::CCS
Known Limitations (documented for future work)
PeakPickerIM: Default tolerances (0.0006 and 0.1) are optimized for 1/K0 values. Users with CCS data need to adjust these manually (documented in parameter descriptions).
OpenSWATH: IM extraction windows need to be specified in the appropriate unit for the library being used.
Activity
coderabbitai commentedon Feb 3, 2026
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Related PRs
#7851 - feature: split experiments by FAIMS CV [merged]
#7958 - improve compatibility with mzTabM standard [merged]
#7981 - refactor: move basename member out of PeptideIdentification into MetaValues [merged]
#8074 - Up to 40% faster mzML reading [merged]
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
timosachsenberg commentedon Feb 3, 2026
Analysis and Implementation Plan
I've analyzed the OpenMS codebase to understand the impact of this change. Here's a comprehensive summary and proposed fix.
Problem Summary
Old MSConvert (v3.0.24333) outputs:
New MSConvert (v3.0.26007) outputs:
Root Cause
OpenMS's
MzMLHandler.cpponly recognizes these CV terms for ion mobility:MS:1002476- ion mobility drift time (milliseconds) ✅MS:1002815- inverse reduced ion mobility (1/K0) ✅MS:1001581- FAIMS compensation voltage ✅MS:1002954- collisional cross sectional area (CCS) ❌ NOT PARSEDWhen new MSConvert files are loaded, the CCS values are completely ignored, resulting in
drift_time_ = -1(not set).Files Requiring Changes
1.
src/openms/include/OpenMS/IONMOBILITY/IMTypes.hAdd CCS to the
DriftTimeUnitenum:2.
src/openms/source/IONMOBILITY/IMTypes.cppAdd string representation:
3.
src/openms/source/FORMAT/HANDLERS/MzMLHandler.cppReading (2 locations - precursor level ~line 1711 and scan level ~line 2129):
Writing (2 locations - precursor ~line 3872 and spectrum ~line 5211):
4.
src/openms/include/OpenMS/CONCEPT/CommonEnums.hAdd CCS dimension unit:
5.
src/topp/OpenNuXL.cppUpdate
getMS2IMType()(~line 4555) to recognize CCS:Update
convertVSSCToCCS()usage (~lines 5199 and 5964):6.
src/openms/source/IONMOBILITY/IMDataConverter.cppUpdate
getIMUnit()to recognize CCS arrays if needed.Testing
Add test cases with mzML files containing both formats:
src/tests/topp/- Add test mzML with MS:1002954 (CCS format)Backward Compatibility
This change is fully backward compatible:
Priority
High - This affects all users processing data from instruments using newer MSConvert versions (3.0.26007+), particularly Bruker timsTOF users running NuXL cross-linking workflows.
🤖 Generated with Claude Code
timosachsenberg commentedon Feb 3, 2026
Implementation Complete
I've implemented CCS (collisional cross sectional area) support in OpenMS. Here's a summary of all changes:
Core Changes (10 files modified)
1. Enum Definitions
IMTypes.h: AddedCCStoDriftTimeUnitenumIMTypes.cpp: Added "CCS" string representation andfromIMUnit()conversionCommonEnums.h: AddedIM_CCStoDIM_UNITenum with display names2. mzML I/O (MzMLHandler.cpp)
MS:1002954(collisional cross sectional area) at both precursor and scan levelsUO:0000324square angstrom), and unit reference3. Ion Mobility Data Handling
IMDataConverter.cpp: UpdatedgetIMUnit()to recognize CCS from CV terms and unit annotations4. NuXL Tool (OpenNuXL.cpp)
5. Python Bindings
IMTypes.pxd: AddedCCSto Cython enum declarationMSSpectrum.pyx: Updated documentation to include CCS enum value (4)6. Parameter Documentation Updates
OpenSwathWorkflow.cpp: Updated IM extraction window parameters to mention CCSPeakPickerIM.cpp: Added warnings about tolerance values being in 1/K0 units, with guidance for CCS dataBackward Compatibility
All changes are fully backward compatible:
MS:1002815(1/K0) continue to work unchangedMS:1002954(CCS) are now parsed correctlyTesting Notes
The implementation correctly handles the two sample files provided:
MS:1002815→ parsed asDriftTimeUnit::VSSCMS:1002954→ parsed asDriftTimeUnit::CCSKnown Limitations (documented for future work)
🤖 Generated with Claude Code
Add CCS (collisional cross section) support for ion mobility data
Add CCS (collisional cross section) support for ion mobility data
Add CCS (collisional cross section) support for ion mobility data (#8735
Add CCS (collisional cross section) support for ion mobility data (#8735