Skip to content

Remove HDF5 and Crawdad support - #10937

Merged
timosachsenberg merged 1 commit into
developfrom
remove-hdf5-crawdad
Nov 18, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
remove-hdf5-crawdad

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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 module
  • src/openms/include/OpenMS/FORMAT/HDF5Connector.h - HDF5 file adapter class
  • src/openms/source/FORMAT/HDF5Connector.cpp - HDF5 file adapter implementation
  • src/tests/class_tests/openms/source/HDF5_test.cpp - HDF5 unit tests

Modified files:

  • CMakeLists.txt - Removed HDF5 option handling
  • CMakePresets.json - Removed WITH_HDF5 preset configuration
  • cmake/cmake_findExternalLibs.cmake - Removed HDF5 and Crawdad library detection
  • src/openms/CMakeLists.txt - Removed HDF5 dependency linking
  • src/openms/include/OpenMS/config.h.in - Removed WITH_CRAWDAD define
  • src/openms/include/OpenMS/ANALYSIS/OPENSWATH/PeakPickerChromatogram.h - Removed Crawdad includes
  • src/openms/source/ANALYSIS/OPENSWATH/PeakPickerChromatogram.cpp - Removed Crawdad peak picking method and implementation
  • src/openms/source/ANALYSIS/OPENSWATH/PeakPickerMobilogram.cpp - Removed Crawdad method reference
  • src/tests/class_tests/openms/CMakeLists.txt - Removed HDF5 test linking
  • src/tests/class_tests/openms/executables.cmake - Removed HDF5 test executable
  • src/tests/class_tests/openms/source/PeakPickerChromatogram_test.cpp - Removed Crawdad test cases
  • src/openms/include/OpenMS/FORMAT/sources.cmake - Removed HDF5Connector header
  • src/openms/source/FORMAT/sources.cmake - Removed HDF5Connector source
  • vcpkg.json - Removed HDF5 feature definition
  • dockerfiles/Dockerfile - Removed libhdf5-dev dependency
  • AGENTS.md - Updated documentation to remove HDF5 references
  • doc/doxygen/install/install-vcpkg.doxygen - Updated installation docs
  • doc/openms/docs/manual/develop/developer-guidelines-for-adding-new-dependent-libraries.md - Updated guidelines
  • doc/openms/docs/manual/develop/link-external-code-to-openms.md - Updated linking documentation
  • cmake/install_macros.cmake - Removed the CrawdadWrapper.h entry from the public-include allowlist
  • cmake/OpenMSConfig.cmake.in - Removed HDF5 configuration
  • Test configuration files - Removed Crawdad method references from test INI files

Rationale

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 PeakPickerChromatogram now supports only the "legacy" and "corrected" methods.

Behaviour changes

  • WITH_HDF5 and WITH_CRAWDAD no longer exist, and the installed CMake package no longer reports OpenMS_WITH_HDF5.
  • The class HDF5Connector is removed. It only opened and closed a file and had no callers or pyOpenMS binding.
  • crawdad is no longer a valid value of the method parameter of PeakPickerChromatogram and PeakPickerMobilogram. In PeakPickerChromatogram it threw "not compiled with crawdad" in every supported build; PeakPickerMobilogram had no code path for it.
  • Deliberately untouched: the HDF5 mentions in CHANGELOG (notes of released versions) and in share/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.

  • Debug build: configure and all 2,962 build steps succeed. Full ctest: 3,339 of 3,438 pass, 99 fail:
    • 98 TOPP_ProteomicsLFQ_* tests: 30 runs of the tool stop on the OPENMS_PRECONDITION in MassTraceDetection.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 the OPENSWATH_PRECONDITION in MRMScoring.cpp:526.
    • develop at aea485e, built the same way, fails IonMobilityScoring_test, TOPP_ProteomicsLFQ_CalcMass and TOPP_ProteomicsLFQ_1 (the three that were run there) with the same messages. This PR touches none of these files.
  • Release build of this branch: the 154 tests matching ProteomicsLFQ, IonMobilityScoring_test, PeakPickerChromatogram, PeakPickerMobilogram and OpenSwathAnalyzer all pass. The full Release suite was not run locally.

Checklist

  • New and existing unit tests pass locally with my changes

AI use

  • I have read the OpenMS AI Policy, and I understand, have reviewed and tested every change in this PR and can explain it in my own words
  • Substantial AI use in PR (e.g. agentic tools wrote significant parts); commits carry a Co-authored-by: trailer, and the description above explains the design intent and rationale

Generated by Claude Code

Summary by CodeRabbit

  • Breaking Changes
    • HDF5 support is no longer available in builds, and the optional HDF5 build configuration has been removed.
    • The Crawdad peak-picking method is no longer available for chromatogram or mobilogram peak picking. Choose legacy or corrected instead.

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
@jpfeuffer

Copy link
Copy Markdown
Contributor

agreed. thanks.

@timosachsenberg
timosachsenberg removed the request for review from poshul November 18, 2026 14:26
@timosachsenberg
timosachsenberg enabled auto-merge (squash) November 18, 2026 14:26
@timosachsenberg
timosachsenberg merged commit d34b0d2 into develop Nov 18, 2026
9 of 15 checks passed
@timosachsenberg
timosachsenberg deleted the remove-hdf5-crawdad branch 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants