Skip to content

Replace XML I/O and converters with a streamlined interface; add I-spline PEP calibration - #399

Merged
percolator merged 74 commits into
percolator:masterfrom
statisticalbiotechnology:master
Apr 23, 2026
Merged

percolator merged 74 commits into
percolator:masterfrom
statisticalbiotechnology:master

Conversation

@percolator

@percolator percolator commented Apr 23, 2026 •

Copy link
Copy Markdown
Owner

Major changes

Remove XML input support and all converter tools

The XMLInterface, all src/converters/ tools (Sqt2Pin, Sequest2Pin, Tandem2Pin, Msgfplus2Pin, MSToolkit, etc.), the associated XML schemas, and the large pin.xml test fixture have been removed. The XSD code-generation tool used for XML binding does not support modern C++ standards, making it incompatible with the rest of the build. Input is now handled exclusively through the tab-separated PIN format. This eliminates ~800 k lines of legacy code and several external dependencies (Xerces-C, XSD, TokyoCabinet).

New monotone I-spline regression for PEP calibration

Replaces ad-hoc isotonic/PAVA-only calibration with a full I-spline regression framework:

  • ISplineTRRRegressor.h — trust-region constrained QP fitting non-negative I-spline coefficients to enforce monotonicity, with ridge and second-difference smoothing penalties
  • MonotoneRegressor.h/cpp, PAVARegressor.h — common interface allowing the caller to select calibration method
    Revised IsotonicPEP to dispatch through the new interface
  • Build system and CI modernisation
  • Updated GitHub Actions (actions/checkout v6, Boost 1.87.0), fixed VS 2022 / MSVC toolset detection, removed CMake find-modules for dropped dependencies, and simplified CMakeLists.txt accordingly.

Performance fixes

Fix size_t underflow in fold-reserve path when xval_fold=1 (RESET algorithm)
Reduce repeated heap allocations in getScoreLabelPairs and getInitDirection
Replace bounds-checked .at() calls with [] in hot loops
Documentation
Added doc/generate_interface_doc.py for automated CLI documentation generation and updated the CLI reference accordingly.

Summary by CodeRabbit

  • New Features

    • Automated interface documentation generation and site-update workflow.
    • New monotone regression options for probability estimation (PAVA and I‑spline TRR).
  • Removals

    • XML input/output and XML-based tooling removed — tool no longer produces or validates XML outputs.
    • Legacy converter/reader/toolkit components and related helper utilities removed.
  • Updates

    • Modernized CI/build tooling, raised CMake/C++ requirements, updated Boost, and standardized portable artifact names.
  • Improvements

    • Simplified cross‑platform build pipelines and unified test execution.

Loading
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.

1 participant