Repository navigation
Remove HDF5 and Crawdad support - #10937
Merged
Merged
Conversation
HDF5 (WITH_HDF5, default OFF) only built HDF5Connector, a class that opens and closes a file and has no callers or pyOpenMS binding, and HDF5_test, which is the HDF Group's example program and tests no OpenMS class. Remove both, the option, the bundled FindHDF5.cmake, the hdf5 vcpkg feature, libhdf5-dev from the Docker image and OpenMS_WITH_HDF5 from the installed CMake package configuration. Crawdad (WITH_CRAWDAD) was never declared as an option and had no Find module or vcpkg port, so the code behind it could not be built by any supported configuration. Remove the build wiring and the #ifdef branches of PeakPickerChromatogram. "crawdad" is no longer a valid value of the 'method' parameter of PeakPickerChromatogram (where it threw "not compiled with crawdad") and PeakPickerMobilogram (which had no code path for it); "legacy" and "corrected" remain. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_0149aXmZshquDiBvnx7XKwhb
Contributor
|
agreed. thanks. |
timosachsenberg
enabled auto-merge (squash)
November 18, 2026 14:26
timosachsenberg
disabled auto-merge
November 18, 2026 14:27
timosachsenberg
pushed a commit
that referenced
this pull request
Nov 25, 2026
Brings in the boost-locale overlay for CMake 4.5 (#10904), without which vcpkg's boost-locale no longer configures on the Windows runners (CMake 4.5.0; build-wheels-windows failed in its configure). Conflict: CMakeLists.txt, develop removed WITH_HDF5 (#10937); this branch keeps only its option WITH_CURL there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0149aXmXLttDcVnqdHzuucnY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR removes HDF5 and Crawdad library support from OpenMS. These dependencies were not actively used in the codebase and added unnecessary build complexity.
Changes
Removed files:
cmake/Modules/FindHDF5.cmake- Custom HDF5 CMake finder modulesrc/openms/include/OpenMS/FORMAT/HDF5Connector.h- HDF5 file adapter classsrc/openms/source/FORMAT/HDF5Connector.cpp- HDF5 file adapter implementationsrc/tests/class_tests/openms/source/HDF5_test.cpp- HDF5 unit testsModified files:
CMakeLists.txt- Removed HDF5 option handlingCMakePresets.json- RemovedWITH_HDF5preset configurationcmake/cmake_findExternalLibs.cmake- Removed HDF5 and Crawdad library detectionsrc/openms/CMakeLists.txt- Removed HDF5 dependency linkingsrc/openms/include/OpenMS/config.h.in- RemovedWITH_CRAWDADdefinesrc/openms/include/OpenMS/ANALYSIS/OPENSWATH/PeakPickerChromatogram.h- Removed Crawdad includessrc/openms/source/ANALYSIS/OPENSWATH/PeakPickerChromatogram.cpp- Removed Crawdad peak picking method and implementationsrc/openms/source/ANALYSIS/OPENSWATH/PeakPickerMobilogram.cpp- Removed Crawdad method referencesrc/tests/class_tests/openms/CMakeLists.txt- Removed HDF5 test linkingsrc/tests/class_tests/openms/executables.cmake- Removed HDF5 test executablesrc/tests/class_tests/openms/source/PeakPickerChromatogram_test.cpp- Removed Crawdad test casessrc/openms/include/OpenMS/FORMAT/sources.cmake- Removed HDF5Connector headersrc/openms/source/FORMAT/sources.cmake- Removed HDF5Connector sourcevcpkg.json- Removed HDF5 feature definitiondockerfiles/Dockerfile- Removed libhdf5-dev dependencyAGENTS.md- Updated documentation to remove HDF5 referencesdoc/doxygen/install/install-vcpkg.doxygen- Updated installation docsdoc/openms/docs/manual/develop/developer-guidelines-for-adding-new-dependent-libraries.md- Updated guidelinesdoc/openms/docs/manual/develop/link-external-code-to-openms.md- Updated linking documentationcmake/install_macros.cmake- Removed theCrawdadWrapper.hentry from the public-include allowlistcmake/OpenMSConfig.cmake.in- Removed HDF5 configurationRationale
HDF5 and Crawdad were optional dependencies that were not actively used in the codebase. Removing them simplifies the build system and reduces maintenance burden. The peak picking functionality in
PeakPickerChromatogramnow supports only the "legacy" and "corrected" methods.Behaviour changes
WITH_HDF5andWITH_CRAWDADno longer exist, and the installed CMake package no longer reportsOpenMS_WITH_HDF5.HDF5Connectoris removed. It only opened and closed a file and had no callers or pyOpenMS binding.crawdadis no longer a valid value of themethodparameter ofPeakPickerChromatogramandPeakPickerMobilogram. InPeakPickerChromatogramit threw "not compiled with crawdad" in every supported build;PeakPickerMobilogramhad no code path for it.CHANGELOG(notes of released versions) and inshare/OpenMS/CV/psi-ms.obo(official PSI-MS terms).Local testing
Ubuntu 24.04, GCC 13.3, dependencies as in
dockerfiles/Dockerfile,WITH_THERMO_RAW=OFF,WITH_OPENTIMS=OFF.ctest: 3,339 of 3,438 pass, 99 fail:TOPP_ProteomicsLFQ_*tests: 30 runs of the tool stop on theOPENMS_PRECONDITIONinMassTraceDetection.cpp:199("requires input spectra to be sorted by retention time"); the other 68 are follow-up steps of the same test chains (comparisons and later stages that depend on the output of a failed run).IonMobilityScoring_test: aborts on theOPENSWATH_PRECONDITIONinMRMScoring.cpp:526.developataea485e, built the same way, failsIonMobilityScoring_test,TOPP_ProteomicsLFQ_CalcMassandTOPP_ProteomicsLFQ_1(the three that were run there) with the same messages. This PR touches none of these files.ProteomicsLFQ,IonMobilityScoring_test,PeakPickerChromatogram,PeakPickerMobilogramandOpenSwathAnalyzerall pass. The full Release suite was not run locally.Checklist
AI use
Co-authored-by:trailer, and the description above explains the design intent and rationaleGenerated by Claude Code
Summary by CodeRabbit
legacyorcorrectedinstead.