Skip to content

perf: OpenSwath scoring speedups, vectorization, and IM debugging controls - #8787

Merged
timosachsenberg merged 4 commits into
developfrom
feature/xcorr-speedup
Feb 24, 2026
Merged

timosachsenberg merged 4 commits into
developfrom
feature/xcorr-speedup

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

XCorr scoring speedups

  • Cap maxdelay at 10 data points in all MRMScoring cross-correlation call sites. Previously maxdelay = N (full chromatogram length, typically ~150), computing 301 lags when only lags within ~10 points (~18-30 seconds) are physically meaningful for coelution scoring. This reduces the outer loop from ~300 to 21 iterations, changing per-pair complexity from O(N²) to O(N).
  • Remove branch in calculateCrossCorrelation inner loop by precomputing start/end bounds instead of if (j < 0 || j >= datasize) continue. This enables compiler auto-vectorization (SSE/AVX) of the dot-product loop.
  • XCorr computation accounts for ~25-35% of OpenSWATH scoring wall time, so these changes target the dominant bottleneck.

Eigen vectorization

  • Vectorize OpenSwath scoring hot paths with Eigen and consolidate math APIs.

IM debugging controls and fixes

New parameter: Debugging:disable_features — a string list that selectively disables IM features for benchmarking:

Value Effect
no_IM_calibration Skip ion mobility calibration by iRT peptides (forces irt_im_extraction_window = -1)
no_IM_windowing Extract chromatograms over the full IM range and disable PASEF window matching. Does not affect IM calibration (use no_IM_calibration for that)

Changed default: Scoring:Scores:use_ion_mobility_scores — changed from "false" to "auto":

Value Behavior
auto (new default) Automatically enabled for PASEF data, disabled otherwise
true Always enabled — explicit user intent is respected
false Always disabled — explicit user intent is respected, never auto-overridden

This fixes a bug where the previous auto-enable code checked == "false" but could not distinguish "user explicitly set false" from "default is false", silently overriding user intent for PASEF data.

Bug fix: per-run state leaking in multi-run mode — pasef and feature_finder_param are now reset/copied at the start of each run iteration, matching the existing pattern for cp_current/cp_ms1_current/cp_irt_current. Previously, auto-detection and scoring overrides from run N could carry into run N+1.

Details

XCorr

A new static constexpr int XCORR_MAX_DELAY = 10 is used at all 7 normalizedCrossCorrelationPost call sites in MRMScoring.cpp as std::min(XCORR_MAX_DELAY, static_cast<int>(data.size())). Call sites outside the hot scoring loop (MasstraceCorrelator, MRMTransitionGroupPicker) are left unchanged.

Score values change slightly since fewer lags are computed, but the scores at small lags (which determine coelution and shape scores) are numerically identical. Reference files updated accordingly.

IM flag interactions

  • no_IM_windowing forces pasef = false, so auto IM scoring resolves to false. To get IM scoring without PASEF windowing, explicitly set -Scoring:Scores:use_ion_mobility_scores true.
  • no_IM_calibration has no effect on IM scoring or windowing.
  • All combinations are valid for isolating individual IM effects in benchmarks.

Test plan

  • MRMScoring_test — all sections pass (updated expectations for array size 23→21 and aggregate scores)
  • Scoring_test — passes (uses maxdelay=2, unaffected)
  • OpenSwathScoring_test — passes
  • MRMFeatureFinderScoring_test — passes
  • TOPP_OpenSwathWorkflow — 76/76 pass (12 reference featureXML files regenerated)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Automatic PASEF detection and options to disable ion-mobility extraction/calibration per run.
  • Bug Fixes

    • More robust correlation and spectral-angle calculations with NaN handling and normalized lag limits.
  • Performance

    • Faster, vectorized scoring computations and reduced duplicate work for cross-correlation and mutual-information scores.
  • Chores

    • Updated test fixtures and expected outputs to reflect recalibrated scoring and identifier/value adjustments.

@jpfeuffer jpfeuffer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me

…oop branch

Two optimizations to cross-correlation computation in OpenSWATH scoring:

1. Cap maxdelay at 10 data points (~18-30s depending on cycle time) instead
   of N (full chromatogram length). Lags beyond this range are physically
   meaningless for coelution scoring. Reduces outer-loop iterations from
   ~300 to 21, changing complexity from O(N²) to O(N) per pair.

2. Rewrite calculateCrossCorrelation inner loop to be branch-free by
   precomputing start/end bounds instead of using if/continue. Enables
   compiler auto-vectorization (SSE/AVX).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@coderabbitai

coderabbitai Bot commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds XCORR_MAX_DELAY and weightedTriangularSum helpers; refactors many scoring routines to use Eigen/vector overloads and capped cross-correlation lag; moves StatsHelpers implementations to .cpp with explicit instantiations; updates OpenSwathWorkflow for per-run params and automatic PASEF detection; refreshes many tests/fixtures.

Changes

Cohort / File(s) Summary
MRM scoring (OpenMS)
src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp
Add XCORR_MAX_DELAY = 10; add weightedTriangularSum overloads; cap XCorr lag usage; replace ad-hoc accumulators with weightedTriangularSum/Eigen-based sums across many score calculations.
Scoring core (OpenSwathAlgo)
src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp, src/openswathalgo/include/.../Scoring.h
Introduce Eigen-backed vector overloads (SpectralAngle, NormalizedManhattanDist, RMSD); add normalize_sum(std::vector<double>&); deprecate legacy C-array APIs; refactor cross-correlation and normalization to use Eigen maps.
Stats helpers / instantiations
src/openswathalgo/include/.../StatsHelpers.h, src/openswathalgo/source/.../StatsHelpers.cpp
Move/define norm and manhattanDist implementations to .cpp using Eigen; add exported explicit template instantiations and dotProd instantiations.
MRM/DIAScoring consumers
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp
Replace cor_pearson use with OpenMS::Math::pearsonCorrelationCoefficient; add NaN guard.
Workflow tool behavior
src/topp/OpenSwathWorkflow.cpp, src/openms/include/OpenMS/APPLICATIONS/OpenSwathBase.h
Add debug flag to disable IM calibration/windowing; per-run feature_finder_param_run handling; automatic PASEF detection and enforcement; validate precursor IM presence for PASEF; removed pasef parameter from loadSwathFiles.
Unit tests
src/tests/class_tests/openms/source/MRMScoring_test.cpp
Adjust expected XCorr sizes (23→21), remap index expectations, and update coelution score expectations to reflect capped-lag behavior.
TOPP tests / invocations
src/tests/topp/CMakeLists.txt
Set -Scoring:Scores:use_ion_mobility_scores "true" explicitly for several TOPP OpenSwath tests.
Test fixtures
src/tests/topp/OpenSwathWorkflow_*.featureXML, src/tests/topp/FeatureFinderIdentification_5_candidates.featureXML, src/tests/topp/ProteomicsLFQ_9_out.consensusXML, src/tests/topp/OpenSwathWorkflow_27_expected.featureXML
Extensive fixture updates: many feature/featureMap IDs rewritten and numerous numeric score/value adjustments (precision/path updates) to match new scoring outputs; no public API signature changes.

Sequence Diagram(s)

sequenceDiagram
    participant Workflow as OpenSwathWorkflow
    participant Maps as SWATH_Maps
    participant FFParam as FeatureFinderParam_Run
    participant Validator as IMValidator
    participant Scoring as ScoringModule

    Workflow->>Maps: inspect maps for IM/PASEF windows
    Maps-->>Workflow: PASEF present? (yes/no)
    alt PASEF
      Workflow->>FFParam: clone per-run params
      Workflow->>FFParam: apply no_IM_windowing / no_IM_calibration overrides
      Workflow->>Validator: ensure transitions have precursor_im
      Validator-->>Workflow: valid / error
      Workflow->>Scoring: enable ion-mobility scoring
    else Non-PASEF
      Workflow->>Scoring: disable ion-mobility scoring
    end
    Workflow->>Scoring: run scoring (uses XCORR_MAX_DELAY, Eigen helpers)
    Scoring-->>Workflow: scoring results
Loading

Possibly related PRs

Suggested labels

enhancement, OpenSwathAlgo, Review effort [1-5]: 3

Suggested reviewers

  • jcharkow

Poem

"I'm a rabbit in the codewood, hopping swift and bright,
Ten lags I cap, triangular sums snug through the night,
Eigen hums, tests refreshed, IDs set anew,
PASEF finds its path and scoring knows what to do,
Hooray — the meadow of metrics sleeps polite!" 🐇

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 9.62% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main changes: performance improvements via XCorr speedups and vectorization, plus new IM debugging controls. It accurately reflects the core objectives without being overly broad.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/xcorr-speedup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
src/tests/class_tests/openms/source/MRMScoring_test.cpp (1)

239-281: No test coverage for data with N > XCORR_MAX_DELAY.

All mock data uses 11-sample vectors. Since min(10, 11) = 10, the test exercises the capped path by only one sample. A test with, say, 50-sample data would more explicitly validate that the lag is hard-capped at 10 regardless of input length, and that correlation values at lags > 10 are never computed.

Would you like me to draft a test case with longer data that explicitly asserts the cap behaviour (data.size() = 21 would give maxdelay = min(10,21) = 10 ⇒ still 21 elements)?

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/tests/class_tests/openms/source/MRMScoring_test.cpp` around lines 239 -
281, The test currently only uses 11-sample mock vectors which barely exercises
the XCORR_MAX_DELAY cap; add a new unit test that constructs mock data with N >
XCORR_MAX_DELAY (e.g., 21 or 50 samples), calls
MRMScoring::initializeXCorrPrecursorContrastMatrix with that MockMRMFeature,
then inspects mrmscore.getXCorrPrecursorContrastMatrix() to assert that the
computed cross-correlation lags are capped at XCORR_MAX_DELAY (no values
computed for lags > XCORR_MAX_DELAY) and that values for lags within the cap are
computed; create the test alongside initializeXCorrPrecursorContrastMatrix using
a distinct BOOST_AUTO_TEST_CASE name (e.g.,
initializeXCorrPrecursorContrastMatrix_NGreaterThanXcorrMaxDelay) and reuse
fill_mock_objects2/MockMRMFeature to produce the longer vectors and the same
assertions pattern as the existing test.
src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp (1)

22-25: XCORR_MAX_DELAY is well-placed and consistently applied.

static constexpr in the .cpp file correctly restricts visibility to this translation unit. All seven normalizedCrossCorrelationPost call sites apply std::min(XCORR_MAX_DELAY, static_cast<int>(...size())) consistently.

One forward-looking note: the constant is currently not tunable at runtime or even at build time. If future users need a wider lag window (e.g., lower-resolution instruments with broader chromatographic peaks), this will require a recompile. Exposing it as a parameter or at minimum as a named build-time option could help — though for now the current design is the right trade-off.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 22 - 25,
XCORR_MAX_DELAY is currently a compile-time-only constant limiting
cross-correlation lag; make it configurable by exposing it as either (a) a
runtime parameter passed into normalizedCrossCorrelationPost (and propagated
from callers that call normalizedCrossCorrelationPost) or (b) a build-time
option (e.g., a configurable macro or CMake option) so users can increase the
lag without editing the source. Modify the definition of XCORR_MAX_DELAY to be
set from the chosen configuration mechanism and update all call sites that use
std::min(XCORR_MAX_DELAY, static_cast<int>(...size())) and the
normalizedCrossCorrelationPost signature to accept the configurable max_delay
parameter so the new value is applied consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/tests/topp/ProteomicsLFQ_9_out.consensusXML`:
- Line 228: The updated ProteomicsLFQ_9_out.consensusXML contains unexplained
numeric drift in consensusElement centroid attributes (it, rt, mz) across many
entries (e.g., centroid it change on line with mz ~666.301876 in
ProteomicsLFQ_9), which likely came from regenerating the fixture with a
different binary/build or non-deterministic FP behavior; reproduce by rerunning
the LFQ/DDA test generation with the exact previous commit's binary and
environment (same shared libraries, compiler flags, and RNG seeds) to confirm
the root cause, then either revert ProteomicsLFQ_9_out.consensusXML to the
previous committed version if drift is spurious or update the test fixture with
a short note in the test metadata documenting the specific cause (binary/build
id, lib versions, or non-determinism) so only intended XCorr/OpenSWATH changes
remain in the PR.

---

Nitpick comments:
In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp`:
- Around line 22-25: XCORR_MAX_DELAY is currently a compile-time-only constant
limiting cross-correlation lag; make it configurable by exposing it as either
(a) a runtime parameter passed into normalizedCrossCorrelationPost (and
propagated from callers that call normalizedCrossCorrelationPost) or (b) a
build-time option (e.g., a configurable macro or CMake option) so users can
increase the lag without editing the source. Modify the definition of
XCORR_MAX_DELAY to be set from the chosen configuration mechanism and update all
call sites that use std::min(XCORR_MAX_DELAY, static_cast<int>(...size())) and
the normalizedCrossCorrelationPost signature to accept the configurable
max_delay parameter so the new value is applied consistently.

In `@src/tests/class_tests/openms/source/MRMScoring_test.cpp`:
- Around line 239-281: The test currently only uses 11-sample mock vectors which
barely exercises the XCORR_MAX_DELAY cap; add a new unit test that constructs
mock data with N > XCORR_MAX_DELAY (e.g., 21 or 50 samples), calls
MRMScoring::initializeXCorrPrecursorContrastMatrix with that MockMRMFeature,
then inspects mrmscore.getXCorrPrecursorContrastMatrix() to assert that the
computed cross-correlation lags are capped at XCORR_MAX_DELAY (no values
computed for lags > XCORR_MAX_DELAY) and that values for lags within the cap are
computed; create the test alongside initializeXCorrPrecursorContrastMatrix using
a distinct BOOST_AUTO_TEST_CASE name (e.g.,
initializeXCorrPrecursorContrastMatrix_NGreaterThanXcorrMaxDelay) and reuse
fill_mock_objects2/MockMRMFeature to produce the longer vectors and the same
assertions pattern as the existing test.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 61cdea9 and e167c13.

📒 Files selected for processing (17)
  • src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp
  • src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp
  • src/tests/class_tests/openms/source/MRMScoring_test.cpp
  • src/tests/topp/FeatureFinderIdentification_5_candidates.featureXML
  • src/tests/topp/OpenSwathWorkflow_16_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_17_b_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_17_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_18_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_19_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_20_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_21_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_22_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_24_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_25_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_27_expected.featureXML
  • src/tests/topp/OpenSwathWorkflow_3_output.featureXML
  • src/tests/topp/ProteomicsLFQ_9_out.consensusXML

@jcharkow

Copy link
Copy Markdown
Collaborator

Seems to make sense however unsure if 10 will always make sense if sampling speed is really quick. Would there be a way to estimate this max delay? Will look in more detail later.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

I think if you have a proper peak shape it is typically +-1 scan. if not it is more random

Replace hand-rolled numeric loops with Eigen operations in Scoring.cpp,
StatsHelpers.cpp, and MRMScoring.cpp. Deprecate raw-pointer interfaces
in favor of std::vector overloads. Switch cor_pearson to the more
numerically stable Math::pearsonCorrelationCoefficient. Add
weightedTriangularSum helper using Eigen selfadjointView for zero-copy
quadratic form computation on upper-triangular matrices.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

♻️ Duplicate comments (16)
src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp (1)

29-37: Same size-type concern for normalize_sum overloads.
Please propagate the OpenMS size-type change here as well.

As per coding guidelines, use OpenMS primitive types from OpenMS/CONCEPT/Types.h (e.g., Size, SignedSize) instead of standard types like int, unsigned int for STL container sizes.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp` around lines 29 -
37, The two overloads of normalize_sum should use OpenMS size types instead of
unsigned int: change the parameter type in normalize_sum(double x[], unsigned
int n) and the backend call to detail::normalize_sum_impl to use OpenMS::Size
(or the project alias Size from OpenMS/CONCEPT/Types.h), and update the vector
overload to static_cast<Size>(x.size()); ensure the file includes
OpenMS/CONCEPT/Types.h or the appropriate header so Size is available and call
detail::normalize_sum_impl(x.data(), static_cast<Size>(x.size())).
src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp (10)

785-790: Downstream of weightedTriangularSum helper.
Covered by the helper comment above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 785 - 790,
The comment here is a duplicate of the helper's documentation; remove the
redundant downstream comment and keep just the helper-level explanation: in
MRMScoring::calcMIWeightedScore (which calls weightedTriangularSum with
mi_matrix_ and normalized_library_intensity) delete the duplicate comment block
so only the helper weightedTriangularSum retains the explanatory comment,
leaving the function body unchanged except for removing the redundant note.

449-454: Downstream of weightedTriangularSum helper.
Covered by the helper comment above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 449 - 454,
The comment duplicated the helper's documentation downstream of the
weightedTriangularSum use; update MRMScoring::calcXcorrShapeWeightedScore to
remove the redundant/duplicate comment and rely on the existing
weightedTriangularSum documentation instead (or add a one-line pointer note).
Ensure the implementation still enforces the precondition
(OPENSWATH_PRECONDITION) and call to
weightedTriangularSum(xcorr_matrix_max_peak_sec_, normalized_library_intensity)
remains unchanged.

208-209: Same maxdelay cap as above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 208 - 209,
The call filling xcorr_precursor_contrast_matrix_ uses
Scoring::normalizedCrossCorrelationPost with a max-delay argument but does not
apply the same XCORR_MAX_DELAY cap logic used earlier; update this call so the
delay parameter uses the identical min(XCORR_MAX_DELAY,
static_cast<int>(...size())) expression (the same cap used above) for the
relevant intensity vector(s) passed to Scoring::normalizedCrossCorrelationPost
to ensure consistent delay capping.

265-266: Same maxdelay cap as above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 265 - 266,
The cross-correlation call at xcorr_precursor_combined_matrix_ uses
std::min(XCORR_MAX_DELAY, static_cast<int>(combined_intensity[i].size())) only,
duplicating the previous max-delay cap; update the delay cap to mirror the
earlier logic by taking the minimum of XCORR_MAX_DELAY and the lengths of both
series (combined_intensity[i].size() and combined_intensity[j].size()) before
calling Scoring::normalizedCrossCorrelationPost so the delay bound respects both
signals.

131-132: Same maxdelay cap as above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 131 - 132,
The call to Scoring::normalizedCrossCorrelationPost uses
std::min(XCORR_MAX_DELAY, static_cast<int>(intensity[i].size())) but should use
the same max-delay cap logic as earlier; change this to cap by the signal length
minus one (and guard against zero length) so replace the min argument with
std::max(0, std::min(XCORR_MAX_DELAY, static_cast<int>(intensity[i].size()) -
1)) (affecting normalizedCrossCorrelationPost call that sets xcorr_matrix_(i,
j)) and keep the subsequent Scoring::xcorrArrayGetMaxPeak call unchanged so the
delay bound matches the rest of the code.

232-233: Same maxdelay cap as above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 232 - 233,
The second call to Scoring::normalizedCrossCorrelationPost uses a different/max
delay cap than the earlier call; replace the inline std::min(XCORR_MAX_DELAY,
static_cast<int>(tmp_data_precursor[i].size())) expression with the same
max-delay logic used above (i.e., reuse the same computed maxDelay variable or
the identical std::min expression used earlier) so both
normalizedCrossCorrelationPost calls use the identical delay cap; target the
call that sets xcorr_precursor_contrast_matrix_(i, j) and align its max-delay
argument with the earlier occurrence.

161-162: Same maxdelay cap as above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 161 - 162,
The max-delay cap passed to Scoring::normalizedCrossCorrelationPost here should
use the same logic as earlier; replace the current std::min(XCORR_MAX_DELAY,
static_cast<int>(intensityi[i].size())) with the same computation used above
(e.g., std::min(XCORR_MAX_DELAY, static_cast<int>(intensityi[i].size()) - 1))
and ensure you guard against empty vectors (check intensityi[i].size() > 0
before subtracting) so Scoring::normalizedCrossCorrelationPost and subsequent
Scoring::xcorrArrayGetMaxPeak receive the correct max-delay value.

441-446: Downstream of lower-triangle initialization concern.
Covered by the helper comment above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 441 - 446,
The code sums the entire eigenView (em.sum()) but only the upper triangle
contains valid data and the element count calculation is wrong; change to sum
only the upper-triangular elements of xcorr_matrix_max_peak_sec_ (use the Eigen
triangular view on em, e.g., triangularView<Upper>().sum()) and compute the
correct element count as n*(n+1)/2 (use n*(n+1)/2 with appropriate type) before
returning intensities/element_number; refer to xcorr_matrix_max_peak_sec_, em
(OpenMS::eigenView), and element_number when making the fix.

301-306: Downstream of weightedTriangularSum helper.
Covered by the helper comment above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 301 - 306,
The inline comment here is a duplicate of the documentation already provided on
the helper weightedTriangularSum; remove the redundant comment or replace it
with a single-line pointer if you want to keep context (e.g., "uses
weightedTriangularSum for computation"). Update
MRMScoring::calcXcorrCoelutionWeightedScore to simply enforce the
OPENSWATH_PRECONDITION and return weightedTriangularSum(xcorr_matrix_max_peak_,
normalized_library_intensity) without the duplicate comment to avoid noise.

183-184: Same maxdelay cap as above.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 183 - 184,
Compute the max-delay once (as done in the earlier block) and reuse that
variable here instead of duplicating the expression: e.g. create an int
max_delay = std::min(XCORR_MAX_DELAY, static_cast<int>(intensity[i].size()))
before the loop/assignment and pass max_delay to
Scoring::normalizedCrossCorrelationPost when setting xcorr_precursor_matrix_;
this keeps the cap logic consistent with the earlier occurrence and avoids
duplicated expressions.
src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h (3)

88-93: Same Doxygen @param requirement for RMSD overload.
Please add @param[in] tags for both parameters.

As per coding guidelines, use Doxygen documentation with @brief tag (required), followed by blank line and details; use @param[in], @param[out], or @param[in,out] for all parameters.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h` around lines
88 - 93, The Doxygen for the two RootMeanSquareDeviation overloads is missing
parameter documentation and the required layout; update the comment blocks for
both functions (RootMeanSquareDeviation(double x[], double y[], int n) and
RootMeanSquareDeviation(const std::vector<double>& x, const std::vector<double>&
y)) to use a `@brief` line, a blank line, then `@param`[in] tags for each input
parameter (for the C-array overload document x, y and n; for the vector overload
document x and y), following the `@param`[in]/@param[out]/@param[in,out]
convention in the project guidelines.

102-107: Same Doxygen @param requirement for SpectralAngle overload.
Please add @param[in] tags for both parameters.

As per coding guidelines, use Doxygen documentation with @brief tag (required), followed by blank line and details; use @param[in], @param[out], or @param[in,out] for all parameters.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h` around lines
102 - 107, Add missing Doxygen parameter tags for both SpectralAngle overloads:
ensure the comment for OPENSWATHALGO_DLLAPI double SpectralAngle(double x[],
double y[], int n) and for OPENSWATHALGO_DLLAPI double SpectralAngle(const
std::vector<double>& x, const std::vector<double>& y) uses the required `@brief`
line, a blank line, then include `@param`[in] for each input parameter (e.g.
`@param`[in] x, `@param`[in] y and for the C-array overload also `@param`[in] n)
following the `@param`[in], `@param`[out], `@param`[in,out] conventions in the project
guidelines.

134-139: Add Doxygen @param tags for the new normalize_sum(std::vector<double>&) overload.
Please document the in/out parameter.

As per coding guidelines, use Doxygen documentation with @brief tag (required), followed by blank line and details; use @param[in], @param[out], or @param[in,out] for all parameters.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h` around lines
134 - 139, Add Doxygen for the new overload normalize_sum(std::vector<double>&
x): add a required `@brief` line, a blank line, then a short description and a
`@param`[in,out] x describing that the vector is modified in-place (each element
divided by the sum of the vector) and what happens for edge cases; ensure you
follow the same Doxygen style used elsewhere in this header and keep the
deprecated C-array overload comment intact.
src/openswathalgo/source/OPENSWATHALGO/ALGO/StatsHelpers.cpp (1)

91-109: Same size-type concern in manhattanDist.
Please apply the same OpenMS size-type change here.

As per coding guidelines, use OpenMS primitive types from OpenMS/CONCEPT/Types.h (e.g., Size, SignedSize) instead of standard types like int, unsigned int for STL container sizes.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/StatsHelpers.cpp` around lines 91
- 109, In manhattanDist, replace the raw size_t with OpenMS types: compute the
iterator difference into an OpenMS::SignedSize (using std::distance into
SignedSize), handle the zero/negative case early, then cast to OpenMS::Size for
the Eigen::Map length; update the local variable formerly named size and any
uses (itExpBeg/itExpEnd distance and Eigen::Map construction) to use these
OpenMS types so the function adheres to OpenMS/CONCEPT/Types.h conventions.
src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/StatsHelpers.h (1)

77-87: Same instantiation risk for manhattanDist.
Covered by the previous comment; please ensure all uses are limited to the explicitly instantiated iterator types.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/StatsHelpers.h` around
lines 77 - 87, The header currently exposes a generic manhattanDist declaration
(manhattanDist(Texp,...)) which can trigger unwanted template instantiations;
replace that generic declaration with two explicit non-template overloads
matching your extern template instantiations (i.e., declare double
manhattanDist(std::vector<double>::iterator itExpBeg,
std::vector<double>::iterator itExpEnd, std::vector<double>::iterator itTheo)
and double manhattanDist(std::vector<double>::const_iterator itExpBeg,
std::vector<double>::const_iterator itExpEnd,
std::vector<double>::const_iterator itTheo)) so all calls are limited to the
explicitly instantiated iterator types referenced by the extern template
declarations for manhattanDist.
🧹 Nitpick comments (1)
src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp (1)

580-586: Avoid redundant normalize_sum before NormalizedManhattanDist.
The vector overload already normalizes inputs, so the preceding normalize_sum calls add an extra pass in a hot path. Consider removing unless you need the double-normalization behavior explicitly.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp` around lines 580 - 586,
The code currently calls Scoring::normalize_sum(experimental_intensity) and
Scoring::normalize_sum(library_intensity) immediately before calling
Scoring::NormalizedManhattanDist, but NormalizedManhattanDist already performs
normalization, causing a redundant and costly extra pass; remove the two
explicit Scoring::normalize_sum calls and rely on NormalizedManhattanDist's
internal normalization, while keeping calls to Scoring::RootMeanSquareDeviation
and OpenMS::Math::pearsonCorrelationCoefficient unchanged (or if
RMSD/correlation require normalized inputs, replace the two explicit
normalizations with a single normalization step used by those functions only).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h`:
- Around line 74-79: Update the Doxygen for the vector overload
NormalizedManhattanDist(std::vector<double>& x, std::vector<double>& y) to
include parameter tags: add a blank line after the existing `@brief` and then add
`@param`[in,out] x and `@param`[in,out] y (document that inputs are
normalized/mutated via normalize_sum). Ensure the `@brief` remains first, followed
by the blank line and the `@param` lines to satisfy the documentation guidelines.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp`:
- Around line 179-191: The code narrows container sizes to int; replace the
local ints used for container lengths and index bounds with OpenMS types: use
OpenMS::Size for non-negative sizes (replace datasize) and OpenMS::SignedSize
for signed indices/offsets (replace delay, start, end, and loop counters as
needed), update any related arithmetic to use these types, and add `#include`
"OpenMS/CONCEPT/Types.h" at the top; ensure uses of std::max/std::min are
appropriately typed or cast to SignedSize to avoid ambiguous overloads and keep
existing logic in Scoring.cpp unchanged otherwise.
- Around line 18-27: The helper normalize_sum_impl currently takes a raw double*
and unsigned int n; change it to use OpenMS size types and avoid raw
pointer/size pairs by using OpenMS::Size (from OpenMS/CONCEPT/Types.h) and
preferably a std::span<double> parameter (or a reference to a container) instead
of double* + n; update the signature of normalize_sum_impl and its callers to
accept std::span<double> (or span + OpenMS::Size) and construct the Eigen::Map
from span.data() and span.size(), ensuring the function name normalize_sum_impl
is preserved and include the OpenMS Types header.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/StatsHelpers.cpp`:
- Around line 73-90: The norm template uses std::distance and a size_t for size
which conflicts with OpenMS type guidelines; change the local `size` to an
OpenMS signed size type (e.g., OpenMS::SignedSize or OpenMS::Size as
appropriate) by including OpenMS/CONCEPT/Types.h, compute distance into that
OpenMS type, and when constructing the Eigen::Map in function norm<T> cast the
OpenMS size to Eigen::Index (or static_cast<Eigen::Index>) to ensure correct
signedness and compatibility; update uses in
norm<std::vector<double>::const_iterator> and
norm<std::vector<double>::iterator> instantiations if needed.

---

Duplicate comments:
In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp`:
- Around line 785-790: The comment here is a duplicate of the helper's
documentation; remove the redundant downstream comment and keep just the
helper-level explanation: in MRMScoring::calcMIWeightedScore (which calls
weightedTriangularSum with mi_matrix_ and normalized_library_intensity) delete
the duplicate comment block so only the helper weightedTriangularSum retains the
explanatory comment, leaving the function body unchanged except for removing the
redundant note.
- Around line 449-454: The comment duplicated the helper's documentation
downstream of the weightedTriangularSum use; update
MRMScoring::calcXcorrShapeWeightedScore to remove the redundant/duplicate
comment and rely on the existing weightedTriangularSum documentation instead (or
add a one-line pointer note). Ensure the implementation still enforces the
precondition (OPENSWATH_PRECONDITION) and call to
weightedTriangularSum(xcorr_matrix_max_peak_sec_, normalized_library_intensity)
remains unchanged.
- Around line 208-209: The call filling xcorr_precursor_contrast_matrix_ uses
Scoring::normalizedCrossCorrelationPost with a max-delay argument but does not
apply the same XCORR_MAX_DELAY cap logic used earlier; update this call so the
delay parameter uses the identical min(XCORR_MAX_DELAY,
static_cast<int>(...size())) expression (the same cap used above) for the
relevant intensity vector(s) passed to Scoring::normalizedCrossCorrelationPost
to ensure consistent delay capping.
- Around line 265-266: The cross-correlation call at
xcorr_precursor_combined_matrix_ uses std::min(XCORR_MAX_DELAY,
static_cast<int>(combined_intensity[i].size())) only, duplicating the previous
max-delay cap; update the delay cap to mirror the earlier logic by taking the
minimum of XCORR_MAX_DELAY and the lengths of both series
(combined_intensity[i].size() and combined_intensity[j].size()) before calling
Scoring::normalizedCrossCorrelationPost so the delay bound respects both
signals.
- Around line 131-132: The call to Scoring::normalizedCrossCorrelationPost uses
std::min(XCORR_MAX_DELAY, static_cast<int>(intensity[i].size())) but should use
the same max-delay cap logic as earlier; change this to cap by the signal length
minus one (and guard against zero length) so replace the min argument with
std::max(0, std::min(XCORR_MAX_DELAY, static_cast<int>(intensity[i].size()) -
1)) (affecting normalizedCrossCorrelationPost call that sets xcorr_matrix_(i,
j)) and keep the subsequent Scoring::xcorrArrayGetMaxPeak call unchanged so the
delay bound matches the rest of the code.
- Around line 232-233: The second call to
Scoring::normalizedCrossCorrelationPost uses a different/max delay cap than the
earlier call; replace the inline std::min(XCORR_MAX_DELAY,
static_cast<int>(tmp_data_precursor[i].size())) expression with the same
max-delay logic used above (i.e., reuse the same computed maxDelay variable or
the identical std::min expression used earlier) so both
normalizedCrossCorrelationPost calls use the identical delay cap; target the
call that sets xcorr_precursor_contrast_matrix_(i, j) and align its max-delay
argument with the earlier occurrence.
- Around line 161-162: The max-delay cap passed to
Scoring::normalizedCrossCorrelationPost here should use the same logic as
earlier; replace the current std::min(XCORR_MAX_DELAY,
static_cast<int>(intensityi[i].size())) with the same computation used above
(e.g., std::min(XCORR_MAX_DELAY, static_cast<int>(intensityi[i].size()) - 1))
and ensure you guard against empty vectors (check intensityi[i].size() > 0
before subtracting) so Scoring::normalizedCrossCorrelationPost and subsequent
Scoring::xcorrArrayGetMaxPeak receive the correct max-delay value.
- Around line 441-446: The code sums the entire eigenView (em.sum()) but only
the upper triangle contains valid data and the element count calculation is
wrong; change to sum only the upper-triangular elements of
xcorr_matrix_max_peak_sec_ (use the Eigen triangular view on em, e.g.,
triangularView<Upper>().sum()) and compute the correct element count as
n*(n+1)/2 (use n*(n+1)/2 with appropriate type) before returning
intensities/element_number; refer to xcorr_matrix_max_peak_sec_, em
(OpenMS::eigenView), and element_number when making the fix.
- Around line 301-306: The inline comment here is a duplicate of the
documentation already provided on the helper weightedTriangularSum; remove the
redundant comment or replace it with a single-line pointer if you want to keep
context (e.g., "uses weightedTriangularSum for computation"). Update
MRMScoring::calcXcorrCoelutionWeightedScore to simply enforce the
OPENSWATH_PRECONDITION and return weightedTriangularSum(xcorr_matrix_max_peak_,
normalized_library_intensity) without the duplicate comment to avoid noise.
- Around line 183-184: Compute the max-delay once (as done in the earlier block)
and reuse that variable here instead of duplicating the expression: e.g. create
an int max_delay = std::min(XCORR_MAX_DELAY,
static_cast<int>(intensity[i].size())) before the loop/assignment and pass
max_delay to Scoring::normalizedCrossCorrelationPost when setting
xcorr_precursor_matrix_; this keeps the cap logic consistent with the earlier
occurrence and avoids duplicated expressions.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h`:
- Around line 88-93: The Doxygen for the two RootMeanSquareDeviation overloads
is missing parameter documentation and the required layout; update the comment
blocks for both functions (RootMeanSquareDeviation(double x[], double y[], int
n) and RootMeanSquareDeviation(const std::vector<double>& x, const
std::vector<double>& y)) to use a `@brief` line, a blank line, then `@param`[in]
tags for each input parameter (for the C-array overload document x, y and n; for
the vector overload document x and y), following the
`@param`[in]/@param[out]/@param[in,out] convention in the project guidelines.
- Around line 102-107: Add missing Doxygen parameter tags for both SpectralAngle
overloads: ensure the comment for OPENSWATHALGO_DLLAPI double
SpectralAngle(double x[], double y[], int n) and for OPENSWATHALGO_DLLAPI double
SpectralAngle(const std::vector<double>& x, const std::vector<double>& y) uses
the required `@brief` line, a blank line, then include `@param`[in] for each input
parameter (e.g. `@param`[in] x, `@param`[in] y and for the C-array overload also
`@param`[in] n) following the `@param`[in], `@param`[out], `@param`[in,out] conventions
in the project guidelines.
- Around line 134-139: Add Doxygen for the new overload
normalize_sum(std::vector<double>& x): add a required `@brief` line, a blank line,
then a short description and a `@param`[in,out] x describing that the vector is
modified in-place (each element divided by the sum of the vector) and what
happens for edge cases; ensure you follow the same Doxygen style used elsewhere
in this header and keep the deprecated C-array overload comment intact.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/StatsHelpers.h`:
- Around line 77-87: The header currently exposes a generic manhattanDist
declaration (manhattanDist(Texp,...)) which can trigger unwanted template
instantiations; replace that generic declaration with two explicit non-template
overloads matching your extern template instantiations (i.e., declare double
manhattanDist(std::vector<double>::iterator itExpBeg,
std::vector<double>::iterator itExpEnd, std::vector<double>::iterator itTheo)
and double manhattanDist(std::vector<double>::const_iterator itExpBeg,
std::vector<double>::const_iterator itExpEnd,
std::vector<double>::const_iterator itTheo)) so all calls are limited to the
explicitly instantiated iterator types referenced by the extern template
declarations for manhattanDist.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp`:
- Around line 29-37: The two overloads of normalize_sum should use OpenMS size
types instead of unsigned int: change the parameter type in normalize_sum(double
x[], unsigned int n) and the backend call to detail::normalize_sum_impl to use
OpenMS::Size (or the project alias Size from OpenMS/CONCEPT/Types.h), and update
the vector overload to static_cast<Size>(x.size()); ensure the file includes
OpenMS/CONCEPT/Types.h or the appropriate header so Size is available and call
detail::normalize_sum_impl(x.data(), static_cast<Size>(x.size())).

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/StatsHelpers.cpp`:
- Around line 91-109: In manhattanDist, replace the raw size_t with OpenMS
types: compute the iterator difference into an OpenMS::SignedSize (using
std::distance into SignedSize), handle the zero/negative case early, then cast
to OpenMS::Size for the Eigen::Map length; update the local variable formerly
named size and any uses (itExpBeg/itExpEnd distance and Eigen::Map construction)
to use these OpenMS types so the function adheres to OpenMS/CONCEPT/Types.h
conventions.

---

Nitpick comments:
In `@src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp`:
- Around line 580-586: The code currently calls
Scoring::normalize_sum(experimental_intensity) and
Scoring::normalize_sum(library_intensity) immediately before calling
Scoring::NormalizedManhattanDist, but NormalizedManhattanDist already performs
normalization, causing a redundant and costly extra pass; remove the two
explicit Scoring::normalize_sum calls and rely on NormalizedManhattanDist's
internal normalization, while keeping calls to Scoring::RootMeanSquareDeviation
and OpenMS::Math::pearsonCorrelationCoefficient unchanged (or if
RMSD/correlation require normalized inputs, replace the two explicit
normalizations with a single normalization step used by those functions only).

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e167c13 and 5708993.

📒 Files selected for processing (10)
  • src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp
  • src/openms/source/ANALYSIS/OPENSWATH/MRMScoring.cpp
  • src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h
  • src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/StatsHelpers.h
  • src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp
  • src/openswathalgo/source/OPENSWATHALGO/ALGO/StatsHelpers.cpp
  • src/tests/topp/OpenSwathWorkflow_17_b_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_17_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_21_output.featureXML
  • src/tests/topp/OpenSwathWorkflow_27_expected.featureXML

Comment on lines +74 to +79
[[deprecated("Use the std::vector& overload instead")]]
OPENSWATHALGO_DLLAPI double NormalizedManhattanDist(double x[], double y[], int n);

/// @brief Calculate the normalized Manhattan distance between two vectors (mutates inputs via normalize_sum)
OPENSWATHALGO_DLLAPI double NormalizedManhattanDist(std::vector<double>& x, std::vector<double>& y);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add Doxygen @param tags for the new vector overload.
The new overload has only @brief. Please add @param[in,out] x and @param[in,out] y to comply with documentation guidelines.

As per coding guidelines, use Doxygen documentation with @brief tag (required), followed by blank line and details; use @param[in], @param[out], or @param[in,out] for all parameters.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/include/OpenMS/OPENSWATHALGO/ALGO/Scoring.h` around lines
74 - 79, Update the Doxygen for the vector overload
NormalizedManhattanDist(std::vector<double>& x, std::vector<double>& y) to
include parameter tags: add a blank line after the existing `@brief` and then add
`@param`[in,out] x and `@param`[in,out] y (document that inputs are
normalized/mutated via normalize_sum). Ensure the `@brief` remains first, followed
by the blank line and the `@param` lines to satisfy the documentation guidelines.

Comment on lines +18 to 27
namespace detail
{
// Internal helper to avoid deprecation warnings between our own functions
static void normalize_sum_impl(double* x, unsigned int n)
{
x[i] *= inverse_sum;
Eigen::Map<Eigen::VectorXd> v(x, n);
double s = v.sum();
if (s != 0.0) { v /= s; }
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Prefer OpenMS size types (and avoid raw pointer/size pairs if possible).
The helper takes double* with unsigned int n. Guidelines prefer OpenMS size types for container lengths and avoiding raw pointer parameters. Consider OpenMS::Size (and, if feasible, std::span<double> or similar) to bundle pointer+size.

🔧 Suggested update
+#include <OpenMS/CONCEPT/Types.h>
...
-      static void normalize_sum_impl(double* x, unsigned int n)
+      static void normalize_sum_impl(double* x, OpenMS::Size n)

As per coding guidelines, use OpenMS primitive types from OpenMS/CONCEPT/Types.h (e.g., Size, SignedSize) instead of standard types like int, unsigned int for STL container sizes, and avoid raw pointers; prefer references for parameters and member variables.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
namespace detail
{
// Internal helper to avoid deprecation warnings between our own functions
static void normalize_sum_impl(double* x, unsigned int n)
{
x[i] *= inverse_sum;
Eigen::Map<Eigen::VectorXd> v(x, n);
double s = v.sum();
if (s != 0.0) { v /= s; }
}
}
namespace detail
{
// Internal helper to avoid deprecation warnings between our own functions
static void normalize_sum_impl(double* x, OpenMS::Size n)
{
Eigen::Map<Eigen::VectorXd> v(x, n);
double s = v.sum();
if (s != 0.0) { v /= s; }
}
}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp` around lines 18 -
27, The helper normalize_sum_impl currently takes a raw double* and unsigned int
n; change it to use OpenMS size types and avoid raw pointer/size pairs by using
OpenMS::Size (from OpenMS/CONCEPT/Types.h) and preferably a std::span<double>
parameter (or a reference to a container) instead of double* + n; update the
signature of normalize_sum_impl and its callers to accept std::span<double> (or
span + OpenMS::Size) and construct the Eigen::Map from span.data() and
span.size(), ensuring the function name normalize_sum_impl is preserved and
include the OpenMS Types header.

Comment on lines +179 to 191
const int datasize = static_cast<int>(data1.size());
const double* __restrict d1 = data1.data();
const double* __restrict d2 = data2.data();

for (delay = -maxdelay; delay <= maxdelay; delay = delay + lag)
for (int delay = -maxdelay; delay <= maxdelay; delay += lag)
{
double sxy = 0;
for (i = 0; i < datasize; ++i)
const int start = std::max(0, -delay);
const int end = std::min(datasize, datasize - delay);
for (int i = start; i < end; ++i)
{
j = i + delay;
if (j < 0 || j >= datasize)
{
continue;
}
sxy += (data1[i]) * (data2[j]);
sxy += d1[i] * d2[i + delay];
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Use OpenMS size types for datasize and index bounds.
data1.size() is a container length; storing it in int risks narrowing and conflicts with the OpenMS size-type guideline.

🔧 Suggested update
-      const int datasize = static_cast<int>(data1.size());
+      const OpenMS::SignedSize datasize = static_cast<OpenMS::SignedSize>(data1.size());
...
-        const int start = std::max(0, -delay);
-        const int end = std::min(datasize, datasize - delay);
+        const OpenMS::SignedSize start = std::max<OpenMS::SignedSize>(0, -delay);
+        const OpenMS::SignedSize end = std::min<OpenMS::SignedSize>(datasize, datasize - delay);

As per coding guidelines, use OpenMS primitive types from OpenMS/CONCEPT/Types.h (e.g., Size, SignedSize) instead of standard types like int, unsigned int for STL container sizes.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const int datasize = static_cast<int>(data1.size());
const double* __restrict d1 = data1.data();
const double* __restrict d2 = data2.data();
for (delay = -maxdelay; delay <= maxdelay; delay = delay + lag)
for (int delay = -maxdelay; delay <= maxdelay; delay += lag)
{
double sxy = 0;
for (i = 0; i < datasize; ++i)
const int start = std::max(0, -delay);
const int end = std::min(datasize, datasize - delay);
for (int i = start; i < end; ++i)
{
j = i + delay;
if (j < 0 || j >= datasize)
{
continue;
}
sxy += (data1[i]) * (data2[j]);
sxy += d1[i] * d2[i + delay];
}
const OpenMS::SignedSize datasize = static_cast<OpenMS::SignedSize>(data1.size());
const double* __restrict d1 = data1.data();
const double* __restrict d2 = data2.data();
for (int delay = -maxdelay; delay <= maxdelay; delay += lag)
{
double sxy = 0;
const OpenMS::SignedSize start = std::max<OpenMS::SignedSize>(0, -delay);
const OpenMS::SignedSize end = std::min<OpenMS::SignedSize>(datasize, datasize - delay);
for (int i = start; i < end; ++i)
{
sxy += d1[i] * d2[i + delay];
}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/Scoring.cpp` around lines 179 -
191, The code narrows container sizes to int; replace the local ints used for
container lengths and index bounds with OpenMS types: use OpenMS::Size for
non-negative sizes (replace datasize) and OpenMS::SignedSize for signed
indices/offsets (replace delay, start, end, and loop counters as needed), update
any related arithmetic to use these types, and add `#include`
"OpenMS/CONCEPT/Types.h" at the top; ensure uses of std::max/std::min are
appropriately typed or cast to SignedSize to avoid ambiguous overloads and keep
existing logic in Scoring.cpp unchanged otherwise.

Comment on lines +73 to +90
// Template implementation for norm (only compiled in this .cpp file)
template <typename T>
double norm(T beg, T end)
{
if (beg == end) return 0.0;
size_t size = std::distance(beg, end);
using ValueType = typename std::iterator_traits<T>::value_type;
Eigen::Map<const Eigen::Matrix<ValueType, Eigen::Dynamic, 1>> v(&(*beg), size);
return static_cast<double>(v.norm());
}

// Explicit template instantiation definitions for norm
template OPENSWATHALGO_DLLAPI double norm<std::vector<double>::const_iterator>(
std::vector<double>::const_iterator, std::vector<double>::const_iterator);

template OPENSWATHALGO_DLLAPI double norm<std::vector<double>::iterator>(
std::vector<double>::iterator, std::vector<double>::iterator);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Use OpenMS size types for iterator distances.
std::distance returns a signed value, and guidelines prefer OpenMS::Size/OpenMS::SignedSize for container lengths. Consider switching to a signed OpenMS type and casting to Eigen::Index when mapping.

🔧 Suggested update
+#include <OpenMS/CONCEPT/Types.h>
...
-    size_t size = std::distance(beg, end);
+    const OpenMS::SignedSize size = std::distance(beg, end);
...
-    Eigen::Map<const Eigen::Matrix<ValueType, Eigen::Dynamic, 1>> v(&(*beg), size);
+    Eigen::Map<const Eigen::Matrix<ValueType, Eigen::Dynamic, 1>> v(&(*beg), static_cast<Eigen::Index>(size));

As per coding guidelines, use OpenMS primitive types from OpenMS/CONCEPT/Types.h (e.g., Size, SignedSize) instead of standard types like int, unsigned int for STL container sizes.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openswathalgo/source/OPENSWATHALGO/ALGO/StatsHelpers.cpp` around lines 73
- 90, The norm template uses std::distance and a size_t for size which conflicts
with OpenMS type guidelines; change the local `size` to an OpenMS signed size
type (e.g., OpenMS::SignedSize or OpenMS::Size as appropriate) by including
OpenMS/CONCEPT/Types.h, compute distance into that OpenMS type, and when
constructing the Eigen::Map in function norm<T> cast the OpenMS size to
Eigen::Index (or static_cast<Eigen::Index>) to ensure correct signedness and
compatibility; update uses in norm<std::vector<double>::const_iterator> and
norm<std::vector<double>::iterator> instantiations if needed.

@singjc

singjc commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

I ran a quick test on a diaPASEF file (20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML (1.6G)), with a library of 14,216 proteins, 146,788 compounds with 880,728 transitions, previously provided by @jcharkow. Overall seems to be ~30-40% faster, the precursor IDs are roughly the same (~500 IDs less compared to the dev branch at 1% FDR), but I don't think that's a huge issue. Interestingly though, when I first tested the feature/xcorr-speedup branch I forgot to add the -pasef flag, but did add the -Scoring:Scores:use_ion_mobility_scores flag, which results in ~2K more precursor IDs at 1% FDR. Which I think is a little strange, if I'm not mistaken, the -pasef flag is meant to tell whether the data has ion mobility or not to perform other downstream ion mobility related stuff and to choose the optimal centred IM frame to take spectra from, but it seems if you still set -Scoring:Scores:use_ion_mobility_scores without the pasef flag it still computes ion mobility scores. Not sure if it's still uses the optimial centred IM frame, it does not do any IM calibration though, because that's determined by the pasef flag, so the calibration could be the result of more IDs as well 🤷‍♂️ . I think we need to consolidate / validate how ion mobility is handled, or auto detect from the input file, and only have a single flag to completely disable ion mobility related stuff even if the input file has ion mobility (probably would never want to do this, except for internal benchmarking).

I do echo @jcharkow's comment. I think for most standard DIA data, capping to max 10 data points is probably fine, but depending on the instrument / acquisition and LC gradient this could require a different cap. So it would be great if we could somehow estimate this from the data.

Metric Develop (with pasef) feature/xcorr-speedup (with pasef) feature/xcorr-speedup (without pasef)
Linear Calibration CPU 01:16 m 01:29 m 01:26 m
Linear Calibration Wall 9.35 s 10.76 s 9.71 s
Nonlinear Calibration CPU 01:54:04 h 01:15:48 h 01:03:19 h
Nonlinear Calibration Wall 13:06 m 08:18 m 06:51 m
Extracting & scoring CPU 01:10:59 h 53:15 m 01:00:18 h
Extracting & scoring Wall 08:25 m 06:28 m 07:02 m
Total Wall 22:19 m 15:43 m 14:54 m
Total CPU 03:08:13 h 02:12:44 h 02:07:37 h
Peak Memory (MB) 10017 10004 10058
Precursor IDs
Q ≤ 1%
num_ids 20050 19500 22393
min_area 21.0 78.0 11.0
mean_area 17426.49 17680.2 15729.04
max_area 1482160.0 1482160.0 1425520.0
Q ≤ 5%
num_ids 27844 27577 31569
min_area 19.0 23.0 11.0
mean_area 14524.38 14538.12 12941.34
max_area 1482160.0 1482160.0 1425520.0
Q ≤ 10%
num_ids 34525 34239 39195
min_area 9.0 19.0 9.0
mean_area 12986.23 12952.89 11477.01
max_area 1482160.0 1482160.0 1425520.0
branch develop with pasef flag commands and log
$ /home/singjc/Documents/github/openms/OpenMS/cmake-build-release/bin/OpenSwathWorkflow -in /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML -tr /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/200623_hela_evosep_fractions_library_ptypic_decoy.pqp -out_features results.osw -pasef -rt_extraction_window 250 -mz_extraction_window 20 -mz_extraction_window_ms1 25 -ion_mobility_window 0.06 -im_extraction_window_ms1 0.06 -irt_im_extraction_window 0.08 -enable_ms1 true -Calibration:auto_irt:enabled true -Calibration:windows:estimate_rt true -Calibration:windows:estimate_mz true -Calibration:windows:estimate_im true -Calibration:RTNormalization:alignmentMethod lowess -Calibration:RTNormalization:lowess:auto_span true -Calibration:linear:outlier_detection none -Calibration:nonlinear:outlier_detection iter_residual -Scoring:Scores:use_ion_mobility_scores -readOptions cacheWorkingInMemory -tempDirectory ./tmp/ -threads 10
Progress of 'Load PQP file':
-- done [took 9.44 s (CPU), 9.52 s (Wall)] -- 
Loaded 14216 proteins, 146788 compounds with 880728 transitions.
Progress of 'Load TSV file':
-- done [took 0.01 s (CPU), 0.02 s (Wall)] -- 
Loaded 10 compounds from priority file: /home/singjc/Documents/github/openms/OpenMS/share/OpenMS/CHEMISTRY/irtkit.tsv
Progress of 'Load TSV file':
Warning: Found multiple peptide sequences for peptide label group light. This is most likely an error and to fix this, a new peptide label group will be inferred - to override this decision, please use the override_group_label_check parameter.
-- done [took 0.01 s (CPU), 0.01 s (Wall)] -- 
Loaded 124 compounds from priority file: /home/singjc/Documents/github/openms/OpenMS/share/OpenMS/CHEMISTRY/cirtkit.tsv
Total unique priority peptide sequences: 123

Processing Run 1/1
Loading mzML file /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML using readoptions cache
Will analyze the metadata first to determine the number of SWATH windows and the window sizes.
Determined there to be 24 SWATH windows and in total 346 MS1 spectra
Determined there to be 24 SWATH windows and in total 346 MS1 spectra
Progress of 'Linear Calibration':
346 spectra and 0 chromatograms stored.
Will analyse 452 peptides with a total of 2892 transitions 
-- done [took 01:16 m (CPU), 9.35 s (Wall)] -- 
Progress of 'Nonlinear Calibration':
 - Warning: Detected 7 empty chromatograms. Will skip them!
 - Warning: Detected 3 empty chromatograms. Will skip them!
 - Warning: Detected 1 empty chromatograms. Will skip them!
 - Warning: Detected 2 empty chromatograms. Will skip them!
 - Warning: Detected 1 empty chromatograms. Will skip them!
<346 spectra and 0 chromatograms stored.> occurred 4 times
Will analyse 45012 peptides with a total of 295710 transitions 
Will perform CV to determine optimal span for lowess fit...
Optimal selected span=0.15 (mae = 1.24695)
-- done [took 01:54:04 h (CPU), 13:06 m (Wall)] -- 
[Estimated] RT window applied: 31.2205 (was 250)
[Estimated] MS2 ion mobility (1/k0) window applied: 0.066349 (was 0.06)
[Estimated] MS1 ion mobility (1/k0) window applied: 0.0829953 (was 0.06)
Will analyze 880728 transitions in total.
Progress of 'Extracting and scoring transitions':
Use non-nested loop with 10 threads.
  4.00 %               345 spectra and 0 chromatograms stored.
Thread 8_0 will analyze 2902 compounds and 17412 transitions from SWATH 1 (batch 0 out of 2)
346 spectra and 0 chromatograms stored.
Thread 2_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 0 out of 4)
345 spectra and 0 chromatograms stored.
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 0 out of 6)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 0 out of 8)
346 spectra and 0 chromatograms stored.
Thread 1_0 will analyze 2543 compounds and 15258 transitions from SWATH 9 (batch 0 out of 2)
345 spectra and 0 chromatograms stored.
Thread 6_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 0 out of 3)
345 spectra and 0 chromatograms stored.
Thread 3_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 0 out of 3)
345 spectra and 0 chromatograms stored.
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 0 out of 7)
345 spectra and 0 chromatograms stored.
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 0 out of 8)
345 spectra and 0 chromatograms stored.
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 0 out of 9)
<346 spectra and 0 chromatograms stored.> occurred 3 times
Thread 1_0 will analyze 2543 compounds and 15258 transitions from SWATH 9 (batch 1 out of 2)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 1 out of 9)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 1 out of 6)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 8_0 will analyze 2902 compounds and 17412 transitions from SWATH 1 (batch 1 out of 2)
<345 spectra and 0 chromatograms stored.> occurred 3 times
Thread 3_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 1 out of 3)
<346 spectra and 0 chromatograms stored.> occurred 3 times
Thread 2_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 1 out of 4)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 1 out of 7)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 1 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 6_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 1 out of 3)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 1 out of 8)
Thread 1_0 will analyze 2543 compounds and 15258 transitions from SWATH 9 (batch 2 out of 2)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 2 out of 9)
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 2 out of 6)
Thread 3_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 2 out of 3)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 2 out of 8)
Thread 8_0 will analyze 2902 compounds and 17412 transitions from SWATH 1 (batch 2 out of 2)
  8.00 %               Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 0 out of 7)
Thread 6_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 2 out of 3)
Thread 2_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 2 out of 4)
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 2 out of 7)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 2 out of 8)
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 3 out of 6)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 3 out of 9)
Thread 3_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 3 out of 3)
      12.00 %               Thread 8_0 will analyze 1975 compounds and 11850 transitions from SWATH 12 (batch 0 out of 1)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 1 out of 7)
Thread 2_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 3 out of 4)
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 3 out of 7)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 3 out of 8)
Thread 6_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 3 out of 3)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 4 out of 9)
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 4 out of 6)
16.00 %               Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 0 out of 9)
20.00 %               Thread 2_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 4 out of 4)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 0 out of 6)
Thread 8_0 will analyze 1975 compounds and 11850 transitions from SWATH 12 (batch 1 out of 1)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 3 out of 8)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 2 out of 7)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 1 out of 9)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 4 out of 8)
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 4 out of 7)
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 5 out of 6)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 5 out of 9)
24.00 %               Thread 2_0 will analyze 1228 compounds and 7368 transitions from SWATH 15 (batch 0 out of 1)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 1 out of 6)
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 5 out of 7)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 4 out of 8)
    28.00 %               Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 0 out of 9)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 2 out of 9)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 5 out of 8)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 3 out of 7)
Thread 4_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 6 out of 6)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 6 out of 9)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 2 out of 6)
Thread 2_0 will analyze 1228 compounds and 7368 transitions from SWATH 15 (batch 1 out of 1)
32.00 %               Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 0 out of 5)
36.00 %               Thread 2_0 will analyze 717 compounds and 4302 transitions from SWATH 18 (batch 0 out of 1)
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 6 out of 7)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 3 out of 9)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 6 out of 8)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 1 out of 9)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 5 out of 8)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 4 out of 7)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 3 out of 6)
Thread 2_0 will analyze 717 compounds and 4302 transitions from SWATH 18 (batch 1 out of 1)
  40.00 %               Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 7 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 0 out of 10)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 1 out of 5)
Thread 7_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 7 out of 7)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 4 out of 9)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 7 out of 8)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 5 out of 7)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 2 out of 9)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 6 out of 8)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 4 out of 6)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 1 out of 10)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 8 out of 9)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 2 out of 5)
    44.00 %               Thread 7_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 0 out of 5)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 5 out of 9)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 3 out of 9)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 6 out of 7)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 6 out of 9)
Thread 9_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 8 out of 8)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 5 out of 6)
Thread 5_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 9 out of 9)
48.00 %               Thread 5_0 will analyze 436 compounds and 2616 transitions from SWATH 21 (batch 0 out of 1)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 2 out of 10)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 7 out of 8)
Thread 7_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 1 out of 5)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 3 out of 5)
52.00 %               Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 0 out of 9)
Thread 5_0 will analyze 436 compounds and 2616 transitions from SWATH 21 (batch 1 out of 1)
56.00 %               Thread 5_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 0 out of 4)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 7 out of 9)
Thread 3_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 6 out of 6)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 4 out of 9)
Thread 1_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 7 out of 7)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 3 out of 10)
Thread 7_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 2 out of 5)
Thread 0_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 8 out of 8)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 4 out of 5)
  64.00 %               Thread 0_0 will analyze 246 compounds and 1476 transitions from SWATH 24 (batch 0 out of 1)
Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 1 out of 9)
68.00 %               Thread 5_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 1 out of 4)
Thread 0_0 will analyze 246 compounds and 1476 transitions from SWATH 24 (batch 1 out of 1)
  72.00 %               Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 8 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 4 out of 10)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 5 out of 9)
Thread 7_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 3 out of 5)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 5 out of 5)
Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 2 out of 9)
Thread 7_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 4 out of 5)
Thread 5_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 2 out of 4)
Thread 6_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 9 out of 9)
Thread 7_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 5 out of 5)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 6 out of 9)
  76.00 %               Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 5 out of 10)
84.00 %               Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 3 out of 9)
Thread 5_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 3 out of 4)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 7 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 6 out of 10)
Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 4 out of 9)
Thread 5_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 4 out of 4)
88.00 %               Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 5 out of 9)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 8 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 7 out of 10)
Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 6 out of 9)
Thread 8_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 9 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 8 out of 10)
  92.00 %               Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 7 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 9 out of 10)
Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 8 out of 9)
Thread 2_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 10 out of 10)
96.00 %               Thread 9_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 9 out of 9)
-- done [took 01:10:59 h (CPU), 08:25 m (Wall)] -- 

OpenSwathWorkflow took 22:19 m (wall), 03:08:13 h (CPU), 02:01 m (system), 03:06:12 h (user); Peak Memory Usage: 10017 MB.
<Warning: Found multiple peptide sequences for peptide label group light. This is most likely an error and to fix this, a new peptide label group will be inferred - to override this decision, please use the override_group_label_check parameter.> occurred 666 times

$ pyprophet score --in results.osw --classifier XGBoost --level ms1ms2 --xeval_num_iter 3 --ss_num_iter 3 --ss_scale_features --threads 3
PyProphet v3.0.0
Execution time: 2026-02-23 15:38:47
System: OS: Linux 6.9.3-76060903-generic | Python: 3.10.14 | CPU: 20 cores | RAM: 62.4 GB
Command: /home/singjc/anaconda3/envs/py310/bin/python /home/singjc/anaconda3/envs/py310/bin/pyprophet score --in results.osw --classifier XGBoost --level ms1ms2 --xeval_num_iter 3 --ss_num_iter 3 --ss_scale_features --threads 3

Info: A new version of pyprophet is available on PyPI: v3.0.5 (current version: v3.0.0)

[ 2026-02-23 at 15:38:47 | INFO    | score::427                  ] Conducting ms1ms2 semi-supervised learning.
[ 2026-02-23 at 15:38:47 | WARNING | osw::81                     ] Warn: SQLite index creation failed: no such table: main.SCORE_MS2
[ 2026-02-23 at 15:38:51 | INFO    | _base::157                  ] Enable number of transitions & precursor / product charge scores for XGBoost-based classifier
[ 2026-02-23 at 15:38:53 | INFO    | data_handling::111          ] Data set contains 63955 decoy and 65647 target groups.
[ 2026-02-23 at 15:38:53 | INFO    | pyprophet::370              ] Scaling features.
[ 2026-02-23 at 15:38:53 | INFO    | data_handling::374          ] Summary of input data:
[ 2026-02-23 at 15:38:53 | INFO    | data_handling::375          ] 429762 peak groups
[ 2026-02-23 at 15:38:53 | INFO    | data_handling::376          ] 129602 group ids
[ 2026-02-23 at 15:38:53 | INFO    | data_handling::377          ] 42 scores including main score
[ 2026-02-23 at 15:38:53 | INFO    | pyprophet::479              ] Learning on 3 folds with 3 threads.
[ 2026-02-23 at 15:38:54 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 15:38:55 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 15:38:55 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 15:39:08 | INFO    | semi_supervised::168        ] Learning on cross-validated scores.
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_manhattan_score: 69.68647003173828
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_norm_rt_score: 31.068286895751953
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_library_dotprod: 25.90420913696289
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_library_manhattan: 19.858057022094727
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_xcorr_coelution_weighted: 12.916815757751465
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_intensity_score: 8.533801078796387
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_library_sangle: 8.262871742248535
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_massdev_score_weighted: 7.928316593170166
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_dotprod_score: 6.455356597900391
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_library_rmsd: 4.795009613037109
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_isotope_overlap_score: 4.404647350311279
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_xcorr_shape_weighted: 4.218167304992676
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_mi_contrast_score: 4.1562018394470215
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_isotope_overlap_score: 4.114477634429932
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_massdev_score: 4.103996276855469
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_mi_score: 3.8530755043029785
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_mi_weighted_score: 3.7648394107818604
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_library_rootmeansquare: 3.581462860107422
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_xcorr_shape_combined: 3.3837332725524902
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_im_xcorr_coelution: 3.3116607666015625
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of main_var_xcorr_shape: 3.155125379562378
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_massdev_score: 2.9218668937683105
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_precursor_charge: 2.7316274642944336
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_yseries_score: 2.5172860622406006
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_im_delta_score: 2.483268976211548
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_xcorr_shape_contrast: 2.412377119064331
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_log_sn_score: 2.261526107788086
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_isotope_correlation_score: 2.0926082134246826
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_im_log_intensity: 1.7877055406570435
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_isotope_correlation_score: 1.7256646156311035
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_xcorr_coelution: 1.6330782175064087
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_im_xcorr_shape: 1.6021802425384521
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_mi_score: 1.600715160369873
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_library_corr: 1.5870829820632935
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_xcorr_coelution_combined: 1.552331805229187
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_mi_combined_score: 1.494349479675293
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_bseries_score: 1.4239987134933472
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_xcorr_coelution_contrast: 1.3689061403274536
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_im_ms1_delta_score: 1.2023060321807861
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_xcorr_coelution: 1.1259080171585083
[ 2026-02-23 at 15:39:10 | INFO    | pyprophet::561              ] Importance of var_ms1_xcorr_shape: 0.8462213277816772
[ 2026-02-23 at 15:39:14 | INFO    | data_handling::111          ] Data set contains 63955 decoy and 65647 target groups.
[ 2026-02-23 at 15:39:14 | INFO    | pyprophet::223              ] Scaling features.
[ 2026-02-23 at 15:39:15 | INFO    | pyprophet::237              ] Mean qvalue = 2.910483e-01, std_dev qvalue = 1.240443e-01
[ 2026-02-23 at 15:39:15 | INFO    | pyprophet::241              ] Mean svalue = 9.327478e-01, std_dev svalue = 1.657662e-01
[ 2026-02-23 at 15:39:15 | SUCCESS | pyprophet::583              ] Scoring and statistics complete.
[ 2026-02-23 at 15:39:15 | INFO    | pyprophet::78               ] Time needed for Learn and Apply: 00:00:24.0
================================================================================
   qvalue    pvalue    svalue       pep       fdr       fnr       fpr            tp            tn            fp            fn    cutoff
0    0.00  0.000016  0.235377  0.000109  0.000046  0.524152  0.000016   9120.579420  26897.761238      0.420580  29628.238762  4.955007
1    0.01  0.007458  0.512387  0.066257  0.010003  0.414424  0.007458  19854.383430  26697.565248    200.616570  18894.434752  2.970478
2    0.02  0.016918  0.575500  0.121313  0.019999  0.383495  0.016918  22299.932644  26443.114463    455.067356  16448.885537  2.502290
3    0.05  0.051786  0.682809  0.236892  0.050015  0.325187  0.051786  26458.039666  25505.221484   1392.960334  12290.778516  1.819133
4    0.10  0.128325  0.801934  0.388150  0.099977  0.246627  0.128325  31073.301490  23446.483309   3451.698510   7675.516691  1.178275
5    0.20  0.345305  0.958840  0.611086  0.199993  0.083046  0.345305  37153.915452  17610.097270   9288.084548   1594.902730  0.290615
6    0.30  0.638261  1.000000  0.898706  0.300031  0.000000  0.638261  40052.932111   9730.113930  17168.067889  -1304.113930 -0.479776
7    0.40  0.969541  1.000000  1.000000  0.399977  0.000000  0.969541  39122.107654    819.289472  26078.892346   -373.289472 -1.501977
8    0.50  1.000000  1.000000  1.000000  0.409740  0.000000  1.000000  38748.818182      0.000000  26898.181818      0.000000 -2.300582
================================================================================
[ 2026-02-23 at 15:39:16 | SUCCESS | osw::687                    ] results.osw written.
================================================================================
  Summary for Q-Value ≤ 1%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  6022541418384138585   20050     21.0  17426.49  1482160.0
================================================================================
  Summary for Q-Value ≤ 5%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  6022541418384138585   27844     19.0  14524.38  1482160.0
================================================================================
  Summary for Q-Value ≤ 10%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  6022541418384138585   34525      9.0  12986.23  1482160.0
[ 2026-02-23 at 15:39:17 | SUCCESS | _base::506                  ] results_ms1ms2_report.pdf written.
[ 2026-02-23 at 15:39:17 | INFO    | runner::271                 ] Total time: 24 seconds and 41 msecs wall time
[ 2026-02-23 at 15:39:17 | INFO    | util::543                   ] pyprophet score took 30.10 seconds; Peak Memory Usage: 1.67 GB.
branch feature/xcorr-speedup with pasef flag commands and log
xcorr_speedup$ /home/singjc/Documents/github/openms/OpenMS/cmake-build-release/bin/OpenSwathWorkflow -in /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML -tr /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/200623_hela_evosep_fractions_library_ptypic_decoy.pqp -out_features results.osw -pasef -rt_extraction_window 250 -mz_extraction_window 20 -mz_extraction_window_ms1 25 -ion_mobility_window 0.06 -im_extraction_window_ms1 0.06 -irt_im_extraction_window 0.08 -enable_ms1 false -Calibration:auto_irt:enabled true -Calibration:windows:estimate_rt true -Calibration:windows:estimate_mz true -Calibration:windows:estimate_im true -Calibration:RTNormalization:alignmentMethod lowess -Calibration:RTNormalization:lowess:auto_span true -Calibration:linear:outlier_detection none -Calibration:nonlinear:outlier_detection iter_residual -Scoring:Scores:use_ion_mobility_scores -readOptions cacheWorkingInMemory -tempDirectory ./tmp/ -threads 10
Progress of 'Load PQP file':
-- done [took 9.74 s (CPU), 10.27 s (Wall)] -- 
Loaded 14216 proteins, 146788 compounds with 880728 transitions.
Progress of 'Load TSV file':
-- done [took 0.02 s (CPU), 0.02 s (Wall)] -- 
Loaded 10 compounds from priority file: /home/singjc/Documents/github/openms/OpenMS/share/OpenMS/CHEMISTRY/irtkit.tsv
Progress of 'Load TSV file':
Warning: Found multiple peptide sequences for peptide label group light. This is most likely an error and to fix this, a new peptide label group will be inferred - to override this decision, please use the override_group_label_check parameter.
-- done [took 0.01 s (CPU), 0.01 s (Wall)] -- 
Loaded 124 compounds from priority file: /home/singjc/Documents/github/openms/OpenMS/share/OpenMS/CHEMISTRY/cirtkit.tsv
Total unique priority peptide sequences: 123

Processing Run 1/1
Loading mzML file /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML using readoptions cache
Will analyze the metadata first to determine the number of SWATH windows and the window sizes.
Determined there to be 24 SWATH windows and in total 346 MS1 spectra
Determined there to be 24 SWATH windows and in total 346 MS1 spectra
Progress of 'Linear Calibration':
346 spectra and 0 chromatograms stored.
Will analyse 452 peptides with a total of 2892 transitions 
-- done [took 01:29 m (CPU), 10.76 s (Wall)] -- 
Progress of 'Nonlinear Calibration':
 - Warning: Detected 7 empty chromatograms. Will skip them!
 - Warning: Detected 3 empty chromatograms. Will skip them!
 - Warning: Detected 1 empty chromatograms. Will skip them!
 - Warning: Detected 2 empty chromatograms. Will skip them!
 - Warning: Detected 1 empty chromatograms. Will skip them!
<346 spectra and 0 chromatograms stored.> occurred 4 times
Will analyse 45012 peptides with a total of 295710 transitions 
Will perform CV to determine optimal span for lowess fit...
Optimal selected span=0.15 (mae = 1.24695)
-- done [took 01:15:48 h (CPU), 08:18 m (Wall)] -- 
[Estimated] RT window applied: 31.2205 (was 250)
[Estimated] MS2 ion mobility (1/k0) window applied: 0.066349 (was 0.06)
[Estimated] MS1 ion mobility (1/k0) window applied: 0.0829953 (was 0.06)
Will analyze 880728 transitions in total.
Progress of 'Extracting and scoring transitions':
Use non-nested loop with 10 threads.
Thread 0_0 will analyze 2902 compounds and 17412 transitions from SWATH 1 (batch 0 out of 2)
345 spectra and 0 chromatograms stored.
Thread 4_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 0 out of 4)
345 spectra and 0 chromatograms stored.
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 0 out of 6)
345 spectra and 0 chromatograms stored.
Thread 6_0 will analyze 2543 compounds and 15258 transitions from SWATH 9 (batch 0 out of 2)
346 spectra and 0 chromatograms stored.
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 0 out of 8)
346 spectra and 0 chromatograms stored.
Thread 2_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 0 out of 3)
345 spectra and 0 chromatograms stored.
Thread 7_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 0 out of 3)
345 spectra and 0 chromatograms stored.
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 0 out of 9)
345 spectra and 0 chromatograms stored.
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 0 out of 7)
345 spectra and 0 chromatograms stored.
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 0 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 4_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 1 out of 4)
<346 spectra and 0 chromatograms stored.> occurred 3 times
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 1 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 7_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 1 out of 3)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 1 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 6_0 will analyze 2543 compounds and 15258 transitions from SWATH 9 (batch 1 out of 2)
<346 spectra and 0 chromatograms stored.> occurred 3 times
Thread 2_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 1 out of 3)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 1 out of 7)
<345 spectra and 0 chromatograms stored.> occurred 3 times
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 1 out of 6)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 1 out of 9)
Thread 0_0 will analyze 2902 compounds and 17412 transitions from SWATH 1 (batch 1 out of 2)
Thread 7_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 2 out of 3)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 2 out of 8)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 2 out of 8)
Thread 4_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 2 out of 4)
Thread 2_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 2 out of 3)
Thread 6_0 will analyze 2543 compounds and 15258 transitions from SWATH 9 (batch 2 out of 2)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 2 out of 9)
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 2 out of 7)
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 2 out of 6)
8.00 %               Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 0 out of 7)
Thread 0_0 will analyze 2902 compounds and 17412 transitions from SWATH 1 (batch 2 out of 2)
Thread 7_0 will analyze 3898 compounds and 23388 transitions from SWATH 3 (batch 3 out of 3)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 3 out of 8)
Thread 4_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 3 out of 4)
Thread 2_0 will analyze 3261 compounds and 19566 transitions from SWATH 6 (batch 3 out of 3)
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 3 out of 7)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 3 out of 9)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 3 out of 8)
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 3 out of 6)
      12.00 %               Thread 2_0 will analyze 1975 compounds and 11850 transitions from SWATH 12 (batch 0 out of 1)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 1 out of 7)
16.00 %               Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 0 out of 9)
  20.00 %               Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 0 out of 6)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 4 out of 8)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 4 out of 8)
Thread 4_0 will analyze 4942 compounds and 29652 transitions from SWATH 4 (batch 4 out of 4)
Thread 2_0 will analyze 1975 compounds and 11850 transitions from SWATH 12 (batch 1 out of 1)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 4 out of 9)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 2 out of 7)
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 4 out of 7)
Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 1 out of 6)
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 4 out of 6)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 1 out of 9)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 5 out of 8)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 5 out of 9)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 5 out of 8)
  24.00 %               Thread 4_0 will analyze 1228 compounds and 7368 transitions from SWATH 15 (batch 0 out of 1)
28.00 %               Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 0 out of 9)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 3 out of 7)
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 5 out of 7)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 2 out of 9)
Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 2 out of 6)
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 5 out of 6)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 6 out of 8)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 6 out of 8)
Thread 4_0 will analyze 1228 compounds and 7368 transitions from SWATH 15 (batch 1 out of 1)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 6 out of 9)
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 6 out of 7)
  32.00 %               Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 0 out of 5)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 4 out of 7)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 1 out of 9)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 3 out of 9)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 7 out of 8)
Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 3 out of 6)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 2 out of 9)
Thread 5_0 will analyze 7759 compounds and 46554 transitions from SWATH 8 (batch 7 out of 7)
Thread 3_0 will analyze 6368 compounds and 38208 transitions from SWATH 7 (batch 6 out of 6)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 7 out of 8)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 7 out of 9)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 5 out of 7)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 1 out of 5)
36.00 %               Thread 3_0 will analyze 717 compounds and 4302 transitions from SWATH 18 (batch 0 out of 1)
Thread 1_0 will analyze 8001 compounds and 48006 transitions from SWATH 10 (batch 8 out of 8)
44.00 %               Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 0 out of 10)
Thread 5_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 0 out of 5)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 8 out of 9)
Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 4 out of 6)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 4 out of 9)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 6 out of 7)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 3 out of 9)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 2 out of 5)
Thread 3_0 will analyze 717 compounds and 4302 transitions from SWATH 18 (batch 1 out of 1)
48.00 %               Thread 3_0 will analyze 436 compounds and 2616 transitions from SWATH 21 (batch 0 out of 1)
Thread 8_0 will analyze 8451 compounds and 50706 transitions from SWATH 5 (batch 8 out of 8)
Thread 3_0 will analyze 436 compounds and 2616 transitions from SWATH 21 (batch 1 out of 1)
52.00 %               Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 0 out of 9)
Thread 5_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 1 out of 5)
56.00 %               Thread 8_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 0 out of 4)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 1 out of 10)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 5 out of 9)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 3 out of 5)
Thread 6_0 will analyze 7184 compounds and 43104 transitions from SWATH 11 (batch 7 out of 7)
Thread 9_0 will analyze 9099 compounds and 54594 transitions from SWATH 2 (batch 9 out of 9)
  60.00 %               Thread 9_0 will analyze 246 compounds and 1476 transitions from SWATH 24 (batch 0 out of 1)
    64.00 %               Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 5 out of 6)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 4 out of 9)
Thread 9_0 will analyze 246 compounds and 1476 transitions from SWATH 24 (batch 1 out of 1)
  68.00 %               Thread 5_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 2 out of 5)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 2 out of 10)
Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 1 out of 9)
Thread 8_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 1 out of 4)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 6 out of 9)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 4 out of 5)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 5 out of 9)
Thread 5_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 3 out of 5)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 7 out of 9)
Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 2 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 3 out of 10)
Thread 0_0 will analyze 6459 compounds and 38754 transitions from SWATH 14 (batch 6 out of 6)
Thread 8_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 2 out of 4)
Thread 4_0 will analyze 5863 compounds and 35178 transitions from SWATH 17 (batch 5 out of 5)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 6 out of 9)
72.00 %               Thread 5_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 4 out of 5)
Thread 8_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 3 out of 4)
76.00 %               Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 3 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 4 out of 10)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 7 out of 9)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 8 out of 9)
Thread 5_0 will analyze 5160 compounds and 30960 transitions from SWATH 20 (batch 5 out of 5)
Thread 8_0 will analyze 4455 compounds and 26730 transitions from SWATH 23 (batch 4 out of 4)
  80.00 %               Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 4 out of 9)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 8 out of 9)
Thread 7_0 will analyze 9226 compounds and 55356 transitions from SWATH 13 (batch 9 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 5 out of 10)
88.00 %               Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 5 out of 9)
Thread 2_0 will analyze 9597 compounds and 57582 transitions from SWATH 16 (batch 9 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 6 out of 10)
  92.00 %               Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 6 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 7 out of 10)
Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 7 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 8 out of 10)
Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 8 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 9 out of 10)
Thread 3_0 will analyze 9838 compounds and 59028 transitions from SWATH 22 (batch 9 out of 9)
Thread 1_0 will analyze 10146 compounds and 60876 transitions from SWATH 19 (batch 10 out of 10)
      -- done [took 53:15 m (CPU), 06:28 m (Wall)] -- 

OpenSwathWorkflow took 15:43 m (wall), 02:12:44 h (CPU), 01:39 m (system), 02:11:05 h (user); Peak Memory Usage: 10004 MB.
<Warning: Found multiple peptide sequences for peptide label group light. This is most likely an error and to fix this, a new peptide label group will be inferred - to override this decision, please use the override_group_label_check parameter.> occurred 666 times

xcorr_speedup$ pyprophet score --in results.osw --classifier XGBoost --level ms1ms2 --xeval_num_iter 3 --ss_num_iter 3 --ss_scale_features --threads 3
PyProphet v3.0.0
Execution time: 2026-02-23 16:02:16
System: OS: Linux 6.9.3-76060903-generic | Python: 3.10.14 | CPU: 20 cores | RAM: 62.4 GB
Command: /home/singjc/anaconda3/envs/py310/bin/python /home/singjc/anaconda3/envs/py310/bin/pyprophet score --in results.osw --classifier XGBoost --level ms1ms2 --xeval_num_iter 3 --ss_num_iter 3 --ss_scale_features --threads 3

Info: A new version of pyprophet is available on PyPI: v3.0.5 (current version: v3.0.0)

[ 2026-02-23 at 16:02:16 | INFO    | score::427                  ] Conducting ms1ms2 semi-supervised learning.
[ 2026-02-23 at 16:02:20 | WARNING | osw::81                     ] Warn: SQLite index creation failed: no such table: main.SCORE_MS2
[ 2026-02-23 at 16:02:27 | INFO    | _base::157                  ] Enable number of transitions & precursor / product charge scores for XGBoost-based classifier
[ 2026-02-23 at 16:02:28 | INFO    | data_handling::111          ] Data set contains 63955 decoy and 65647 target groups.
[ 2026-02-23 at 16:02:28 | INFO    | pyprophet::370              ] Scaling features.
[ 2026-02-23 at 16:02:28 | INFO    | data_handling::374          ] Summary of input data:
[ 2026-02-23 at 16:02:28 | INFO    | data_handling::375          ] 429762 peak groups
[ 2026-02-23 at 16:02:28 | INFO    | data_handling::376          ] 129602 group ids
[ 2026-02-23 at 16:02:28 | INFO    | data_handling::377          ] 29 scores including main score
[ 2026-02-23 at 16:02:28 | INFO    | pyprophet::479              ] Learning on 3 folds with 3 threads.
[ 2026-02-23 at 16:02:29 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 16:02:30 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 16:02:30 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 16:02:39 | INFO    | semi_supervised::168        ] Learning on cross-validated scores.
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_manhattan_score: 59.70757293701172
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_library_dotprod: 31.633352279663086
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_norm_rt_score: 30.768447875976562
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_library_manhattan: 16.77436065673828
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_xcorr_coelution_weighted: 13.542906761169434
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_intensity_score: 10.378131866455078
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_library_rmsd: 8.754549980163574
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_massdev_score_weighted: 7.739133834838867
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_library_rootmeansquare: 6.050196647644043
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_isotope_overlap_score: 5.453799724578857
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_xcorr_shape_weighted: 4.75334358215332
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_dotprod_score: 4.72489595413208
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_massdev_score: 3.93955397605896
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_mi_score: 3.5724904537200928
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of main_var_xcorr_shape: 3.2628886699676514
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_im_xcorr_coelution: 3.231804132461548
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_im_delta_score: 3.1952061653137207
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_im_log_intensity: 2.879175901412964
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_yseries_score: 2.773059129714966
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_precursor_charge: 2.7128310203552246
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_mi_weighted_score: 2.5046639442443848
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_log_sn_score: 2.4880459308624268
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_library_sangle: 2.3997535705566406
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_isotope_correlation_score: 2.0504772663116455
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_library_corr: 2.0134503841400146
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_xcorr_coelution: 1.9010076522827148
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_bseries_score: 1.8411253690719604
[ 2026-02-23 at 16:02:41 | INFO    | pyprophet::561              ] Importance of var_im_xcorr_shape: 1.3911337852478027
[ 2026-02-23 at 16:02:44 | INFO    | data_handling::111          ] Data set contains 63955 decoy and 65647 target groups.
[ 2026-02-23 at 16:02:44 | INFO    | pyprophet::223              ] Scaling features.
[ 2026-02-23 at 16:02:45 | INFO    | pyprophet::237              ] Mean qvalue = 2.915464e-01, std_dev qvalue = 1.237172e-01
[ 2026-02-23 at 16:02:45 | INFO    | pyprophet::241              ] Mean svalue = 9.322338e-01, std_dev svalue = 1.669198e-01
[ 2026-02-23 at 16:02:45 | SUCCESS | pyprophet::583              ] Scoring and statistics complete.
[ 2026-02-23 at 16:02:45 | INFO    | pyprophet::78               ] Time needed for Learn and Apply: 00:00:18.3
================================================================================
   qvalue    pvalue    svalue       pep       fdr       fnr       fpr            tp            tn            fp            fn    cutoff
0    0.00  0.000016  0.221233  0.000107  0.000049  0.529578  0.000016   8584.580273  26843.216637      0.419727  30218.783363  4.787031
1    0.01  0.007271  0.497581  0.063645  0.010007  0.422493  0.007271  19307.826974  26648.463337    195.173026  19495.536663  2.972255
2    0.02  0.016699  0.566052  0.118475  0.020000  0.389477  0.016699  21964.731629  26395.367993    448.268371  16838.632007  2.532052
3    0.05  0.051364  0.675153  0.235759  0.049998  0.331105  0.051364  26198.197006  25464.833370   1378.802994  12605.166630  1.826414
4    0.10  0.127574  0.794170  0.374461  0.100013  0.254312  0.127574  30816.447907  23419.084271   3424.552093   7986.915729  1.184272
5    0.20  0.345681  0.956550  0.605141  0.200003  0.087616  0.345681  37116.676840  17564.313203   9279.323160   1686.686797  0.293006
6    0.30  0.639997  1.000000  0.904726  0.299985  0.000000  0.639997  40089.156673   9663.793036  17179.843327  -1285.793036 -0.485621
7    0.40  0.971058  1.000000  1.000000  0.399999  0.000000  0.971058  39100.278200    776.914564  26066.721800   -296.914564 -1.497342
8    0.50  0.999828  1.000000  1.000000  0.408838  0.000000  0.999828  38807.980633      4.616996  26839.019367     -4.616996 -2.146438
================================================================================
[ 2026-02-23 at 16:02:46 | SUCCESS | osw::687                    ] results.osw written.
================================================================================
  Summary for Q-Value ≤ 1%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  6642448463702169307   19500     78.0   17680.2  1482160.0
================================================================================
  Summary for Q-Value ≤ 5%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  6642448463702169307   27577     23.0  14538.12  1482160.0
================================================================================
  Summary for Q-Value ≤ 10%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  6642448463702169307   34239     19.0  12952.89  1482160.0
[ 2026-02-23 at 16:02:48 | SUCCESS | _base::506                  ] results_ms1ms2_report.pdf written.
[ 2026-02-23 at 16:02:48 | INFO    | runner::271                 ] Total time: 18 seconds and 275 msecs wall time
[ 2026-02-23 at 16:02:48 | INFO    | util::543                   ] pyprophet score took 31.47 seconds; Peak Memory Usage: 1.51 GB.
branch feature/xcorr-speedup without pasef flag commands and log
xcorr_speedup$ /home/singjc/Documents/github/openms/OpenMS/cmake-build-release/bin/OpenSwathWorkflow -in /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML -tr /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/200623_hela_evosep_fractions_library_ptypic_decoy.pqp -out_features results.osw -rt_extraction_window 250 -mz_extraction_window 20 -mz_extraction_window_ms1 25 -ion_mobility_window 0.06 -im_extraction_window_ms1 0.06 -irt_im_extraction_window 0.08 -enable_ms1 false -Calibration:auto_irt:enabled true -Calibration:windows:estimate_rt true -Calibration:windows:estimate_mz true -Calibration:windows:estimate_im true -Calibration:RTNormalization:alignmentMethod lowess -Calibration:RTNormalization:lowess:auto_span true -Calibration:linear:outlier_detection none -Calibration:nonlinear:outlier_detection iter_residual -Scoring:Scores:use_ion_mobility_scores -readOptions cacheWorkingInMemory -tempDirectory ./tmp/ -threads 10
Progress of 'Load PQP file':
-- done [took 9.81 s (CPU), 10.36 s (Wall)] -- 
Loaded 14216 proteins, 146788 compounds with 880728 transitions.
Progress of 'Load TSV file':
-- done [took 0.02 s (CPU), 0.03 s (Wall)] -- 
Loaded 10 compounds from priority file: /home/singjc/Documents/github/openms/OpenMS/share/OpenMS/CHEMISTRY/irtkit.tsv
Progress of 'Load TSV file':
Warning: Found multiple peptide sequences for peptide label group light. This is most likely an error and to fix this, a new peptide label group will be inferred - to override this decision, please use the override_group_label_check parameter.
-- done [took 0.01 s (CPU), 0.01 s (Wall)] -- 
Loaded 124 compounds from priority file: /home/singjc/Documents/github/openms/OpenMS/share/OpenMS/CHEMISTRY/cirtkit.tsv
Total unique priority peptide sequences: 123

Processing Run 1/1
Loading mzML file /home/singjc/Documents/github/testing_auto_irt/diaPASEF_evosep_published/20200505_Evosep_200SPD_SG06-16_MLHeLa_200ng_py8_S3-A1_1_2737.mzML using readoptions cache
Will analyze the metadata first to determine the number of SWATH windows and the window sizes.
Determined there to be 24 SWATH windows and in total 346 MS1 spectra
Determined there to be 24 SWATH windows and in total 346 MS1 spectra
Progress of 'Linear Calibration':
 - Warning: Detected 6 empty chromatograms. Will skip them!
 - Warning: Detected 6 empty chromatograms. Will skip them!
 - Warning: Detected 6 empty chromatograms. Will skip them!
 - Warning: Detected 6 empty chromatograms. Will skip them!
 - Warning: Detected 6 empty chromatograms. Will skip them!
 - Warning: Detected 6 empty chromatograms. Will skip them!
346 spectra and 0 chromatograms stored.
Will analyse 475 peptides with a total of 2892 transitions 
-- done [took 01:26 m (CPU), 9.71 s (Wall)] -- 
Progress of 'Nonlinear Calibration':
 - Warning: Detected 612 empty chromatograms. Will skip them!
 - Warning: Detected 3 empty chromatograms. Will skip them!
 - Warning: Detected 510 empty chromatograms. Will skip them!
 - Warning: Detected 571 empty chromatograms. Will skip them!
 - Warning: Detected 476 empty chromatograms. Will skip them!
<Warning: Found multiple peptide sequences for peptide label group light. This is most likely an error and to fix this, a new peptide label group will be inferred - to override this decision, please use the override_group_label_check parameter.> occurred 666 times
 - Warning: Detected 7 empty chromatograms. Will skip them!
 - Warning: Detected 1 empty chromatograms. Will skip them!
 - Warning: Detected 393 empty chromatograms. Will skip them!
 - Warning: Detected 429 empty chromatograms. Will skip them!
 - Warning: Detected 221 empty chromatograms. Will skip them!
 - Warning: Detected 561 empty chromatograms. Will skip them!
 - Warning: Detected 25 empty chromatograms. Will skip them!
 - Warning: Detected 30 empty chromatograms. Will skip them!
 - Warning: Detected 949 empty chromatograms. Will skip them!
 - Warning: Detected 745 empty chromatograms. Will skip them!
 - Warning: Detected 861 empty chromatograms. Will skip them!
 - Warning: Detected 1047 empty chromatograms. Will skip them!
 - Warning: Detected 897 empty chromatograms. Will skip them!
 - Warning: Detected 764 empty chromatograms. Will skip them!
 - Warning: Detected 1 empty chromatograms. Will skip them!
< - Warning: Detected 6 empty chromatograms. Will skip them!> occurred 2 times
 - Warning: Detected 1 empty chromatograms. Will skip them!
<346 spectra and 0 chromatograms stored.> occurred 4 times
Will analyse 47778 peptides with a total of 295710 transitions 
Will perform CV to determine optimal span for lowess fit...
Optimal selected span=0.15 (mae = 1.26212)
-- done [took 01:03:19 h (CPU), 06:51 m (Wall)] -- 
[Estimated] RT window applied: 31.5132 (was 250)
[Estimated] MS2 ion mobility (1/k0) window: not applicable; keeping user value 0.06
[Estimated] MS1 ion mobility (1/k0) window: not applicable; keeping user value 0.06
Will analyze 880728 transitions in total.
Progress of 'Extracting and scoring transitions':
Use non-nested loop with 10 threads.
Thread 0_0 will analyze 2925 compounds and 17550 transitions from SWATH 1 (batch 0 out of 2)
346 spectra and 0 chromatograms stored.
Thread 1_0 will analyze 4962 compounds and 29772 transitions from SWATH 4 (batch 0 out of 4)
345 spectra and 0 chromatograms stored.
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 0 out of 6)
345 spectra and 0 chromatograms stored.
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 0 out of 8)
345 spectra and 0 chromatograms stored.
Thread 3_0 will analyze 3714 compounds and 22284 transitions from SWATH 9 (batch 0 out of 3)
345 spectra and 0 chromatograms stored.
Thread 8_0 will analyze 4284 compounds and 25704 transitions from SWATH 6 (batch 0 out of 4)
345 spectra and 0 chromatograms stored.
Thread 9_0 will analyze 4688 compounds and 28128 transitions from SWATH 3 (batch 0 out of 4)
345 spectra and 0 chromatograms stored.
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 0 out of 9)
345 spectra and 0 chromatograms stored.
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 0 out of 9)
346 spectra and 0 chromatograms stored.
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 0 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 3 times
Thread 3_0 will analyze 3714 compounds and 22284 transitions from SWATH 9 (batch 1 out of 3)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 1 out of 6)
<346 spectra and 0 chromatograms stored.> occurred 3 times
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 1 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 8_0 will analyze 4284 compounds and 25704 transitions from SWATH 6 (batch 1 out of 4)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 1 out of 8)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 1 out of 9)
Thread 0_0 will analyze 2925 compounds and 17550 transitions from SWATH 1 (batch 1 out of 2)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 9_0 will analyze 4688 compounds and 28128 transitions from SWATH 3 (batch 1 out of 4)
<346 spectra and 0 chromatograms stored.> occurred 3 times
Thread 1_0 will analyze 4962 compounds and 29772 transitions from SWATH 4 (batch 1 out of 4)
<345 spectra and 0 chromatograms stored.> occurred 2 times
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 1 out of 9)
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 2 out of 6)
Thread 3_0 will analyze 3714 compounds and 22284 transitions from SWATH 9 (batch 2 out of 3)
Thread 8_0 will analyze 4284 compounds and 25704 transitions from SWATH 6 (batch 2 out of 4)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 2 out of 8)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 2 out of 8)
Thread 1_0 will analyze 4962 compounds and 29772 transitions from SWATH 4 (batch 2 out of 4)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 2 out of 9)
Thread 9_0 will analyze 4688 compounds and 28128 transitions from SWATH 3 (batch 2 out of 4)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 2 out of 9)
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 3 out of 6)
Thread 0_0 will analyze 2925 compounds and 17550 transitions from SWATH 1 (batch 2 out of 2)
Thread 3_0 will analyze 3714 compounds and 22284 transitions from SWATH 9 (batch 3 out of 3)
Thread 8_0 will analyze 4284 compounds and 25704 transitions from SWATH 6 (batch 3 out of 4)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 3 out of 8)
Thread 1_0 will analyze 4962 compounds and 29772 transitions from SWATH 4 (batch 3 out of 4)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 3 out of 8)
Thread 9_0 will analyze 4688 compounds and 28128 transitions from SWATH 3 (batch 3 out of 4)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 3 out of 9)
Thread 8_0 will analyze 4284 compounds and 25704 transitions from SWATH 6 (batch 4 out of 4)
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 4 out of 6)
Thread 9_0 will analyze 4688 compounds and 28128 transitions from SWATH 3 (batch 4 out of 4)
8.00 %               Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 0 out of 8)
12.00 %               Thread 0_0 will analyze 3253 compounds and 19518 transitions from SWATH 12 (batch 0 out of 3)
    16.00 %               Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 0 out of 9)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 3 out of 9)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 4 out of 8)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 4 out of 8)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 4 out of 9)
Thread 1_0 will analyze 4962 compounds and 29772 transitions from SWATH 4 (batch 4 out of 4)
20.00 %               Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 0 out of 7)
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 5 out of 6)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 1 out of 8)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 5 out of 8)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 5 out of 8)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 4 out of 9)
Thread 0_0 will analyze 3253 compounds and 19518 transitions from SWATH 12 (batch 1 out of 3)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 5 out of 9)
24.00 %               Thread 1_0 will analyze 2778 compounds and 16668 transitions from SWATH 15 (batch 0 out of 2)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 1 out of 9)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 1 out of 7)
Thread 4_0 will analyze 6384 compounds and 38304 transitions from SWATH 7 (batch 6 out of 6)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 2 out of 8)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 6 out of 8)
Thread 0_0 will analyze 3253 compounds and 19518 transitions from SWATH 12 (batch 2 out of 3)
28.00 %               Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 0 out of 9)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 2 out of 9)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 5 out of 9)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 6 out of 8)
Thread 1_0 will analyze 2778 compounds and 16668 transitions from SWATH 15 (batch 1 out of 2)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 6 out of 9)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 2 out of 7)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 3 out of 8)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 6 out of 9)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 1 out of 9)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 7 out of 8)
Thread 1_0 will analyze 2778 compounds and 16668 transitions from SWATH 15 (batch 2 out of 2)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 3 out of 9)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 7 out of 9)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 7 out of 8)
Thread 0_0 will analyze 3253 compounds and 19518 transitions from SWATH 12 (batch 3 out of 3)
32.00 %               Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 0 out of 6)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 4 out of 8)
  36.00 %               Thread 0_0 will analyze 2401 compounds and 14406 transitions from SWATH 18 (batch 0 out of 2)
Thread 2_0 will analyze 8608 compounds and 51648 transitions from SWATH 8 (batch 8 out of 8)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 2 out of 9)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 7 out of 9)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 3 out of 7)
Thread 7_0 will analyze 8007 compounds and 48042 transitions from SWATH 10 (batch 8 out of 8)
  40.00 %               Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 0 out of 10)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 4 out of 9)
Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 1 out of 6)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 8 out of 9)
44.00 %               Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 0 out of 6)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 5 out of 8)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 3 out of 9)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 8 out of 9)
Thread 0_0 will analyze 2401 compounds and 14406 transitions from SWATH 18 (batch 1 out of 2)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 1 out of 10)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 5 out of 9)
Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 2 out of 6)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 4 out of 7)
Thread 5_0 will analyze 9050 compounds and 54300 transitions from SWATH 5 (batch 9 out of 9)
48.00 %               Thread 5_0 will analyze 2015 compounds and 12090 transitions from SWATH 21 (batch 0 out of 2)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 6 out of 8)
Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 1 out of 6)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 4 out of 9)
Thread 6_0 will analyze 9414 compounds and 56484 transitions from SWATH 2 (batch 9 out of 9)
52.00 %               Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 0 out of 9)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 6 out of 9)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 5 out of 7)
Thread 5_0 will analyze 2015 compounds and 12090 transitions from SWATH 21 (batch 1 out of 2)
Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 3 out of 6)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 2 out of 10)
Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 2 out of 6)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 7 out of 8)
Thread 0_0 will analyze 2401 compounds and 14406 transitions from SWATH 18 (batch 2 out of 2)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 5 out of 9)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 7 out of 9)
Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 1 out of 9)
        56.00 %               Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 4 out of 6)
Thread 0_0 will analyze 5257 compounds and 31542 transitions from SWATH 23 (batch 0 out of 5)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 6 out of 7)
Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 3 out of 6)
Thread 5_0 will analyze 2015 compounds and 12090 transitions from SWATH 21 (batch 2 out of 2)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 3 out of 10)
60.00 %               Thread 5_0 will analyze 1475 compounds and 8850 transitions from SWATH 24 (batch 0 out of 1)
Thread 3_0 will analyze 8136 compounds and 48816 transitions from SWATH 11 (batch 8 out of 8)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 6 out of 9)
  64.00 %               Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 5 out of 6)
Thread 9_0 will analyze 7424 compounds and 44544 transitions from SWATH 14 (batch 7 out of 7)
Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 2 out of 9)
Thread 0_0 will analyze 5257 compounds and 31542 transitions from SWATH 23 (batch 1 out of 5)
Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 4 out of 6)
Thread 5_0 will analyze 1475 compounds and 8850 transitions from SWATH 24 (batch 1 out of 1)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 4 out of 10)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 8 out of 9)
  68.00 %               Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 7 out of 9)
Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 3 out of 9)
    72.00 %               Thread 1_0 will analyze 6707 compounds and 40242 transitions from SWATH 17 (batch 6 out of 6)
Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 5 out of 6)
Thread 0_0 will analyze 5257 compounds and 31542 transitions from SWATH 23 (batch 2 out of 5)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 5 out of 10)
Thread 8_0 will analyze 9231 compounds and 55386 transitions from SWATH 13 (batch 9 out of 9)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 8 out of 9)
Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 4 out of 9)
80.00 %               Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 5 out of 9)
Thread 2_0 will analyze 6013 compounds and 36078 transitions from SWATH 20 (batch 6 out of 6)
84.00 %               Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 6 out of 10)
Thread 0_0 will analyze 5257 compounds and 31542 transitions from SWATH 23 (batch 3 out of 5)
Thread 4_0 will analyze 9599 compounds and 57594 transitions from SWATH 16 (batch 9 out of 9)
88.00 %               Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 6 out of 9)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 7 out of 10)
Thread 0_0 will analyze 5257 compounds and 31542 transitions from SWATH 23 (batch 4 out of 5)
Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 7 out of 9)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 8 out of 10)
Thread 0_0 will analyze 5257 compounds and 31542 transitions from SWATH 23 (batch 5 out of 5)
92.00 %               Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 8 out of 9)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 9 out of 10)
Thread 6_0 will analyze 9841 compounds and 59046 transitions from SWATH 22 (batch 9 out of 9)
Thread 7_0 will analyze 10147 compounds and 60882 transitions from SWATH 19 (batch 10 out of 10)
-- done [took 01:00:18 h (CPU), 07:02 m (Wall)] -- 

OpenSwathWorkflow took 14:54 m (wall), 02:07:37 h (CPU), 01:23 m (system), 02:06:14 h (user); Peak Memory Usage: 10058 MB.

$ pyprophet score --in results.osw --classifier XGBoost --level ms1ms2 --xeval_num_iter 3 --ss_num_iter 3 --ss_scale_features --threads 3
PyProphet v3.0.0
Execution time: 2026-02-23 14:45:35
System: OS: Linux 6.9.3-76060903-generic | Python: 3.10.14 | CPU: 20 cores | RAM: 62.4 GB
Command: /home/singjc/anaconda3/envs/py310/bin/python /home/singjc/anaconda3/envs/py310/bin/pyprophet score --in results.osw --classifier XGBoost --level ms1ms2 --xeval_num_iter 3 --ss_num_iter 3 --ss_scale_features --threads 3

Info: A new version of pyprophet is available on PyPI: v3.0.5 (current version: v3.0.0)

[ 2026-02-23 at 14:45:35 | INFO    | score::427                  ] Conducting ms1ms2 semi-supervised learning.
[ 2026-02-23 at 14:45:45 | WARNING | osw::81                     ] Warn: SQLite index creation failed: no such table: main.SCORE_MS2
[ 2026-02-23 at 14:46:17 | INFO    | _base::157                  ] Enable number of transitions & precursor / product charge scores for XGBoost-based classifier
[ 2026-02-23 at 14:46:24 | INFO    | data_handling::111          ] Data set contains 69801 decoy and 71448 target groups.
[ 2026-02-23 at 14:46:24 | INFO    | pyprophet::370              ] Scaling features.
[ 2026-02-23 at 14:46:26 | INFO    | data_handling::374          ] Summary of input data:
[ 2026-02-23 at 14:46:26 | INFO    | data_handling::375          ] 471434 peak groups
[ 2026-02-23 at 14:46:26 | INFO    | data_handling::376          ] 141249 group ids
[ 2026-02-23 at 14:46:26 | INFO    | data_handling::377          ] 29 scores including main score
[ 2026-02-23 at 14:46:26 | INFO    | pyprophet::479              ] Learning on 3 folds with 3 threads.
[ 2026-02-23 at 14:46:30 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 14:46:32 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 14:46:35 | INFO    | semi_supervised::103        ] Learning on cross-validation fold.
[ 2026-02-23 at 14:47:39 | INFO    | semi_supervised::168        ] Learning on cross-validated scores.
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_manhattan_score: 56.0698356628418
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_norm_rt_score: 25.892671585083008
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_library_rmsd: 23.616666793823242
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_library_dotprod: 22.8536434173584
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_xcorr_coelution_weighted: 14.291403770446777
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_library_manhattan: 12.417054176330566
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_intensity_score: 8.503437995910645
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_dotprod_score: 6.537654876708984
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_massdev_score_weighted: 4.33587121963501
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_isotope_overlap_score: 4.205595016479492
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_mi_score: 4.142882347106934
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_massdev_score: 3.7919130325317383
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_library_rootmeansquare: 3.570002794265747
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_xcorr_shape_weighted: 3.4622278213500977
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_library_sangle: 2.9930307865142822
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_im_xcorr_coelution: 2.858035087585449
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_im_delta_score: 2.8108980655670166
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_precursor_charge: 2.766313076019287
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_mi_weighted_score: 2.447603702545166
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_log_sn_score: 2.444169044494629
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_im_log_intensity: 2.3287765979766846
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of main_var_xcorr_shape: 1.9350444078445435
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_yseries_score: 1.7853211164474487
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_xcorr_coelution: 1.730535864830017
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_im_xcorr_shape: 1.7205326557159424
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_isotope_correlation_score: 1.6617358922958374
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_library_corr: 1.3936963081359863
[ 2026-02-23 at 14:47:52 | INFO    | pyprophet::561              ] Importance of var_bseries_score: 1.2332998514175415
[ 2026-02-23 at 14:48:13 | INFO    | data_handling::111          ] Data set contains 69801 decoy and 71448 target groups.
[ 2026-02-23 at 14:48:13 | INFO    | pyprophet::223              ] Scaling features.
[ 2026-02-23 at 14:48:20 | INFO    | pyprophet::237              ] Mean qvalue = 2.797046e-01, std_dev qvalue = 1.201137e-01
[ 2026-02-23 at 14:48:20 | INFO    | pyprophet::241              ] Mean svalue = 9.327087e-01, std_dev svalue = 1.673932e-01
[ 2026-02-23 at 14:48:21 | SUCCESS | pyprophet::583              ] Scoring and statistics complete.
[ 2026-02-23 at 14:48:21 | INFO    | pyprophet::78               ] Time needed for Learn and Apply: 00:02:3.6
================================================================================
   qvalue    pvalue    svalue       pep       fdr       fnr       fpr            tp            tn            fp            fn    cutoff
0    0.00  0.000014  0.224406  0.000094  0.000042  0.543562  0.000014   9709.596281  28179.596281      0.403719  33558.403719  4.760601
1    0.01  0.007951  0.512502  0.063558  0.010003  0.430041  0.007951  22174.935875  27955.935875    224.064125  21093.064125  2.898932
2    0.02  0.018266  0.583093  0.118146  0.019995  0.394686  0.018266  25229.258091  27665.258091    514.741909  18038.741909  2.443916
3    0.05  0.056002  0.693142  0.239032  0.049990  0.332936  0.056002  29990.861864  26601.861864   1578.138136  13277.138136  1.767667
4    0.10  0.139067  0.815293  0.379934  0.099985  0.247788  0.139067  35276.098265  24261.098265   3918.901735   7991.901735  1.121751
5    0.20  0.373648  0.973317  0.628376  0.200027  0.061538  0.373648  42110.600994  17650.600994  10529.399006   1157.399006  0.215153
6    0.30  0.682569  1.000000  0.935978  0.299972  0.000000  0.682569  44887.205083   8945.205083  19234.794917  -1619.205083 -0.591167
7    0.40  1.000000  1.000000  1.000000  0.394413  0.000000  1.000000  43268.000000      0.000000  28180.000000      0.000000 -2.474669
8    0.50       NaN       NaN       NaN       NaN       NaN       NaN           NaN           NaN           NaN           NaN       NaN
================================================================================
[ 2026-02-23 at 14:48:25 | SUCCESS | osw::687                    ] results.osw written.
================================================================================
  Summary for Q-Value ≤ 1%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  4724584244247152995   22393     11.0  15729.04  1425520.0
================================================================================
  Summary for Q-Value ≤ 5%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  4724584244247152995   31569     11.0  12941.34  1425520.0
================================================================================
  Summary for Q-Value ≤ 10%:
================================================================================
                run_id num_ids min_area mean_area   max_area
0  4724584244247152995   39195      9.0  11477.01  1425520.0
[ 2026-02-23 at 14:48:34 | SUCCESS | _base::506                  ] results_ms1ms2_report.pdf written.
[ 2026-02-23 at 14:48:34 | INFO    | runner::271                 ] Total time: 123 seconds and 628 msecs wall time
[ 2026-02-23 at 14:48:34 | INFO    | util::543                   ] pyprophet score took 2 minutes, 58.88 seconds; Peak Memory Usage: 1.26 GB.


// Template implementation for manhattanDist (only compiled in this .cpp file)
template <typename Texp, typename Ttheo>
double manhattanDist(Texp itExpBeg, Texp itExpEnd, Ttheo itTheo)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm I'm wondering.. I think we should restrict the function to vector iterators now or other contiguous memory iterators.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timosachsenberg what about this?

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Thanks. Interesting observation regarding the pasef flag. Dues this result in the full im take being extracted? Instead of a im window?

@singjc

singjc commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Thanks. Interesting observation regarding the pasef flag. Dues this result in the full im take being extracted? Instead of a im window?

Technically yes, it would extract the full IM (the default window is set to -1), but I did explicitly set the im windows to 0.06, so it likely only extracted and scored that range of ion mobility. But with the pasef flag not being set, means potentially that transitions were extracted from multiple frames leading to duplicated features.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

That would explain the lower intensities

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Debugging:disable_features and IM scoring semantics

Added a Debugging:disable_features string list parameter and reworked how IM scoring is controlled. Here's how the three IM knobs now work:

Debugging:disable_features

Value Effect
no_IM_calibration Skip ion mobility calibration by iRT peptides (forces irt_im_extraction_window = -1 so correctIM() early-returns)
no_IM_windowing Extract chromatograms over the full IM range (im_extraction_window = -1 for MS1/MS2) and disable PASEF window matching (pasef = false). Does not affect IM calibration — use no_IM_calibration for that.

These are orthogonal — each targets a distinct mechanism and can be combined freely.

Scoring:Scores:use_ion_mobility_scores (changed default)

Default changed from "false" to "auto":

Value Behavior
auto (default) Automatically enabled for PASEF data, disabled otherwise
true Always enabled — user intent respected regardless of data type
false Always disabled — user intent respected, never auto-overridden

Previously, the auto-enable code checked == "false" and could not distinguish "user explicitly set false" from "default is false", so explicit user intent was silently overridden for PASEF data. The three-valued parameter fixes this.

Interaction between the knobs

  • no_IM_windowing forces pasef = false, so auto IM scoring resolves to false. If you want IM scoring without PASEF windowing, explicitly set -Scoring:Scores:use_ion_mobility_scores true.
  • no_IM_calibration has no effect on IM scoring or windowing.
  • All combinations are valid for isolating individual IM effects in benchmarks.

Bug fix: per-run state leaking

pasef and feature_finder_param are now reset/copied at the start of each run in multi-run mode, matching the existing pattern for cp_current/cp_ms1_current/cp_irt_current. Previously, auto-detection and overrides from run N could carry over into run N+1.

@timosachsenberg timosachsenberg changed the title perf: speed up XCorr scoring by capping maxdelay and removing inner-loop branch perf: OpenSwath scoring speedups, vectorization, and IM debugging controls Feb 24, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/topp/OpenSwathWorkflow.cpp (1)

940-957: ⚠️ Potential issue | 🔴 Critical

Add missing pasef parameter to both loadSwathFiles() calls.

The function signature requires const bool pasef as the 12th parameter, but both calls are missing it. At line 942, &qc_consumer is being passed in the pasef argument position; at line 957, the parameter is omitted entirely. Both calls must be updated to include the pasef variable in the correct position before the optional plugin_consumer parameter.

Line 942 should be: loadSwathFiles(single_file_list, exp_meta, swath_maps, swath_map_sources, split_file, tmp_dir, readoptions, swath_windows_file, min_upper_edge_dist, force, sort_swath_maps, prm, pasef, &qc_consumer)

Line 957 should be: loadSwathFiles(single_file_list, exp_meta, swath_maps, swath_map_sources, split_file, tmp_dir, readoptions, swath_windows_file, min_upper_edge_dist, force, sort_swath_maps, prm, pasef)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/OpenSwathWorkflow.cpp` around lines 940 - 957, Both calls to
loadSwathFiles are missing the required const bool pasef argument (the 12th
parameter): update the call that currently passes &qc_consumer in the 12th
position so pasef is passed before the plugin consumer (i.e. pass pasef,
&qc_consumer to loadSwathFiles), and update the other call to include pasef as
the 12th argument (i.e. pass pasef before the optional plugin consumer). Locate
loadSwathFiles invocations in OpenSwathWorkflow::... (the two calls shown that
currently pass &qc_consumer and the one without it) and insert pasef in the
parameter list immediately before any plugin/consumer pointer argument.
🧹 Nitpick comments (1)
src/topp/OpenSwathWorkflow.cpp (1)

1007-1020: Prefer range-based for and consider robustness of the IM sentinel check.

Two minor points:

  1. The index-based loop can be simplified to a range-based for, which is more idiomatic and avoids the Size k counter.

  2. The comparison precursor_im == -1 is an exact floating-point equality against an integer literal. While -1 is exactly representable in IEEE 754 and this works correctly for the sentinel value, using < 0 would be more defensive against transitions that might carry other negative sentinel values.

Suggested refactor
-      const auto& transitions = transition_exp.getTransitions();
-      for (Size k = 0; k < transitions.size(); k++)
+      for (const auto& tr : transition_exp.getTransitions())
       {
-        if (transitions[k].precursor_im == -1)
+        if (tr.precursor_im < 0)
         {
           throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
-            "Error: Transition " + transitions[k].getNativeID() +
+            "Error: Transition " + tr.getNativeID() +
             " does not have a valid IM value, this must be set to use PASEF mode (auto-detected or via -pasef flag)");
         }
       }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/OpenSwathWorkflow.cpp` around lines 1007 - 1020, Replace the
index-based loop over transition_exp.getTransitions() with a range-based loop
(e.g. for (const auto& tr : transition_exp.getTransitions())) and change the
sentinel check from exact equality to a defensive numeric test (replace
tr.precursor_im == -1 with tr.precursor_im < 0) to catch any negative sentinel
values; keep the thrown Exception::IllegalArgument and use tr.getNativeID() for
the error message.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/topp/OpenSwathWorkflow.cpp`:
- Around line 968-986: When disable_im_windowing forces pasef to false, also
emit an informational log explaining that auto-resolution will disable
use_ion_mobility_scores unless the user overrides it; locate the block that sets
pasef = false when disable_im_windowing is true (reference variable names:
disable_im_windowing and pasef) and add an OPENMS_LOG_INFO right after where
use_ion_mobility_scores is auto-resolved (reference parameter name
use_ion_mobility_scores/Scoring:Scores:use_ion_mobility_scores) stating that IM
scoring was auto-disabled due to no_IM_windowing and instructing users to pass
-Scoring:Scores:use_ion_mobility_scores true if they want to keep IM scoring.

---

Outside diff comments:
In `@src/topp/OpenSwathWorkflow.cpp`:
- Around line 940-957: Both calls to loadSwathFiles are missing the required
const bool pasef argument (the 12th parameter): update the call that currently
passes &qc_consumer in the 12th position so pasef is passed before the plugin
consumer (i.e. pass pasef, &qc_consumer to loadSwathFiles), and update the other
call to include pasef as the 12th argument (i.e. pass pasef before the optional
plugin consumer). Locate loadSwathFiles invocations in OpenSwathWorkflow::...
(the two calls shown that currently pass &qc_consumer and the one without it)
and insert pasef in the parameter list immediately before any plugin/consumer
pointer argument.

---

Nitpick comments:
In `@src/topp/OpenSwathWorkflow.cpp`:
- Around line 1007-1020: Replace the index-based loop over
transition_exp.getTransitions() with a range-based loop (e.g. for (const auto&
tr : transition_exp.getTransitions())) and change the sentinel check from exact
equality to a defensive numeric test (replace tr.precursor_im == -1 with
tr.precursor_im < 0) to catch any negative sentinel values; keep the thrown
Exception::IllegalArgument and use tr.getNativeID() for the error message.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5708993 and cd598d4.

📒 Files selected for processing (1)
  • src/topp/OpenSwathWorkflow.cpp

Comment thread src/topp/OpenSwathWorkflow.cpp Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/tests/topp/CMakeLists.txt (1)

1773-1776: Avoid parallel test clobbering of shared outputs

TOPP_OpenSwathWorkflow_17 and _17_cache write to the same temp output files. When CTest runs in parallel, the cache variant can overwrite the non-cache outputs mid-diff. Consider giving the cache test its own output filenames.

Suggested change
-add_test("TOPP_OpenSwathWorkflow_17_cache" ${TOPP_BIN_PATH}/OpenSwathWorkflow -in ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_input.mzML -tr ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_input.tsv -out_chrom ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.chrom.tmp.mzML -out_features ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.tmp.featureXML -readOptions cache -ion_mobility_window 0.05 -use_ms1_ion_mobility "false" -Scoring:Scores:use_ion_mobility_scores "true" -Calibration:auto_irt:enabled "false" -Calibration:windows:estimate_rt "false" -Calibration:windows:estimate_mz "false" -Calibration:windows:estimate_im "false"
+add_test("TOPP_OpenSwathWorkflow_17_cache" ${TOPP_BIN_PATH}/OpenSwathWorkflow -in ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_input.mzML -tr ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_input.tsv -out_chrom ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17_cache.chrom.tmp.mzML -out_features ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17_cache.tmp.featureXML -readOptions cache -ion_mobility_window 0.05 -use_ms1_ion_mobility "false" -Scoring:Scores:use_ion_mobility_scores "true" -Calibration:auto_irt:enabled "false" -Calibration:windows:estimate_rt "false" -Calibration:windows:estimate_mz "false" -Calibration:windows:estimate_im "false"
     ${OLD_OSW_PARAM} )
-add_test("TOPP_OpenSwathWorkflow_17_cache_out1" ${DIFF} -whitelist "id=" -in1 ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.tmp.featureXML -in2 ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_output.featureXML)
-add_test("TOPP_OpenSwathWorkflow_17_cache_out2" ${DIFF} -whitelist "id=" -in1 ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.chrom.tmp.mzML -in2 ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_output.chrom.mzML)
+add_test("TOPP_OpenSwathWorkflow_17_cache_out1" ${DIFF} -whitelist "id=" -in1 ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17_cache.tmp.featureXML -in2 ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_output.featureXML)
+add_test("TOPP_OpenSwathWorkflow_17_cache_out2" ${DIFF} -whitelist "id=" -in1 ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17_cache.chrom.tmp.mzML -in2 ${DATA_DIR_TOPP}/OpenSwathWorkflow_17_output.chrom.mzML)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/tests/topp/CMakeLists.txt` around lines 1773 - 1776, The cache variant
add_test "TOPP_OpenSwathWorkflow_17_cache" currently writes to the same temp
files ${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.chrom.tmp.mzML and
${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.tmp.featureXML as the non-cache test,
causing parallel CTest clobbering; change the cache test to use unique filenames
(e.g. append _cache to both temp output names) and update the corresponding
comparison tests "TOPP_OpenSwathWorkflow_17_cache_out1" and
"TOPP_OpenSwathWorkflow_17_cache_out2" to point at those new cache-specific temp
files so the diff compares the cache outputs to the reference files without
interfering with the non-cache run.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/tests/topp/CMakeLists.txt`:
- Around line 1773-1776: The cache variant add_test
"TOPP_OpenSwathWorkflow_17_cache" currently writes to the same temp files
${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.chrom.tmp.mzML and
${TESTS_TEMP_DIR}/OpenSwathWorkflow_17.tmp.featureXML as the non-cache test,
causing parallel CTest clobbering; change the cache test to use unique filenames
(e.g. append _cache to both temp output names) and update the corresponding
comparison tests "TOPP_OpenSwathWorkflow_17_cache_out1" and
"TOPP_OpenSwathWorkflow_17_cache_out2" to point at those new cache-specific temp
files so the diff compares the cache outputs to the reference files without
interfering with the non-cache run.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cd598d4 and 24aca01.

📒 Files selected for processing (1)
  • src/tests/topp/CMakeLists.txt

…nSwathWorkflow

Add a string list parameter Debugging:disable_features that allows
selectively disabling IM features for benchmarking:
- no_IM_calibration: skip ion mobility calibration by iRT peptides
- no_IM_windowing: extract over full IM range and disable PASEF matching

Change Scoring:Scores:use_ion_mobility_scores default from "false" to
"auto". "auto" enables IM scoring for PASEF data and disables otherwise,
while explicit "true"/"false" is always respected. This fixes a bug where
the previous auto-enable code could not distinguish user-set "false" from
the default "false".

Also fix per-run state leaking in multi-run mode by resetting pasef and
creating a per-run copy of feature_finder_param inside the run loop.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@singjc Quick question about the multi-run loop: In your commit d7dcd53235 you added per-run copies of cp_current/cp_ms1_current/cp_irt_current to prevent parameter carry-over across runs. We noticed that pasef and feature_finder_param were not similarly reset/copied per-run, so auto-detection or scoring overrides from run N could carry into run N+1.

This commit adds:

pasef = user_pasef;  // reset to user-provided value at start of each run
Param feature_finder_param_run = feature_finder_param;  // per-run copy

Does this match your intent from the original carry-over fix? Or was there a reason pasef and feature_finder_param were left shared across runs?

MSVC with /arch:AVX uses 256-bit SIMD reductions in Eigen (4 doubles
per lane), while GCC/Clang with -mssse3 use 128-bit (2 doubles).
The different tree-reduction groupings cause floating-point rounding
differences in standardize_data(), flipping borderline potentialOutlier
decisions on Windows (tests 21 and 27).

MSVC x64 defaults to SSE2 (128-bit), matching GCC/Clang's lane width
and ensuring consistent Eigen reduction order across platforms.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@singjc

singjc commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

@singjc Quick question about the multi-run loop: In your commit d7dcd53235 you added per-run copies of cp_current/cp_ms1_current/cp_irt_current to prevent parameter carry-over across runs. We noticed that pasef and feature_finder_param were not similarly reset/copied per-run, so auto-detection or scoring overrides from run N could carry into run N+1.

This commit adds:

pasef = user_pasef;  // reset to user-provided value at start of each run
Param feature_finder_param_run = feature_finder_param;  // per-run copy

Does this match your intent from the original carry-over fix? Or was there a reason pasef and feature_finder_param were left shared across runs?

pasef and feature_find_param were left as shared because we don't modify the values for those based on the run being analyzed. We probably would only want to process one type of data together, I don't think there would be a case where we would have different runs use ion mobility vs not use ion mobility if they're from the same experiment.

The chromatogram extraction params were set to a new copy for each input mzML because we estimate and modify the rt / mz/ im extraction windows stored in the chromatogram extraction param object.

@jpfeuffer

Copy link
Copy Markdown
Contributor

@singjc Do you know how it possibly could be slower with linear calibration? Random business of your computer?

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@cbielow I will merge as avx seemed to be the culprit. I don't think it will make a huge difference in practice given that eigen and the base64 stuff is the main part that uses it. If we find evidence that it indeed has pratical implications we should e.g. reenable it targeted to the relevant files.

@timosachsenberg
timosachsenberg merged commit 75cc005 into develop Feb 24, 2026
50 of 51 checks passed
@timosachsenberg
timosachsenberg deleted the feature/xcorr-speedup branch February 24, 2026 15:40
@singjc

singjc commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

@singjc Do you know how it possibly could be slower with linear calibration? Random business of your computer?

I think it's just resource races, I had it running in the background, but had a bunch of other programs running when I was testing it

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.

5 participants