Skip to content

Segfault in QTClusterFinder/FeatureGroupingAlgorithmQT during ProteomicsLFQ cross-run alignment with Sage identifications #735

Closed

Description

@chunxubioinfor

Description of the bug

Summary

ProteomicsLFQ (OpenMS 3.6.0-pre-HEAD-2026-07-02, via bigbio/quantms 1.10.0) segfaults
deterministically during cross-run feature clustering when using Sage as the upstream
search engine, with identification-guided linking enabled. Reproduces on both a tiny
18-protein test dataset and a real published dataset (PXD001819, UPS1-in-yeast,
3 technical replicates), so this is not a toy-dataset edge case.

Environment

  • bigbio/quantms 1.10.0 (git rev 6a721f0)
  • OpenMS 3.6.0-pre-HEAD-2026-07-02 (container: ghcr.io/bigbio/openms-tools-thirdparty:2026.07.02)
  • Nextflow 26.04.6, Apptainer 1.4.5, Ubuntu 26.04, native x86_64

Steps to reproduce

Full pipeline (self-contained, downloads/builds everything from scratch):

nextflow run bigbio/quantms -r 1.10.0 \
    -profile test,apptainer \
    --search_engines sage

This uses quantms's own built-in BSA test dataset. Also reproduces with a real dataset
(3 technical replicates from PXD001819, UPS1-in-yeast) using the same --search_engines sage,
so this is not specific to the tiny test set.

Exact ProteomicsLFQ invocation extracted from the crashing task (BSA test-dataset case;
paths are quantms's own generated intermediate files, referenced here for exact reproduction
of the parameter set — happy to share the actual input files on request):

Steps to reproduce

Full pipeline (self-contained, downloads/builds everything from scratch):

nextflow run bigbio/quantms -r 1.10.0 \
    -profile test,apptainer \
    --search_engines sage

This uses quantms's own built-in BSA test dataset. Also reproduces with a real dataset
(3 technical replicates from PXD001819, UPS1-in-yeast) using the same --search_engines sage,
so this is not specific to the tiny test set.

Exact ProteomicsLFQ invocation extracted from the crashing task (BSA test-dataset case;
paths are quantms's own generated intermediate files, referenced here for exact reproduction
of the parameter set — happy to share the actual input files on request):

ProteomicsLFQ \
    -threads 8 \
    -in BSA1_F1.mzML BSA1_F2.mzML BSA2_F1.mzML BSA2_F2.mzML BSA3_F1.mzML BSA3_F2.mzML \
    -ids BSA1_F1_sage_perc.idparquet BSA1_F2_sage_perc.idparquet BSA2_F1_sage_perc.idparquet BSA2_F2_sage_perc.idparquet BSA3_F1_sage_perc.idparquet BSA3_F2_sage_perc.idparquet \
    -design BSA_design.sdrf_openms_design.tsv \
    -fasta 18Protein_SoCe_Tr_detergents_trace_target_decoy.fasta \
    -protein_inference aggregation \
    -quantification_method feature_intensity \
    -targeted_only true \
    -feature_with_id_min_score 0.10 \
    -mass_recalibration false \
    -Seeding:algorithm biosaur2 \
    -Seeding:intThreshold 1000 \
    -protein_quantification unique_peptides \
    -alignment_order star \
    -PeptideQuantification:quantify_decoys \
    -psmFDR 1.0 \
    -proteinFDR 1.0 \
    -picked_proteinFDR true \
    -out_cxml BSA_design.sdrf_openms_design_openms.consensusXML \
    -out BSA_design.sdrf_openms_design_openms.mzTab \
    -out_qpx BSA_design.sdrf_openms_design_qpx \
    -out_msstats BSA_design.sdrf_openms_design_msstats_in.csv \
    -debug 0

Crash

Exit code 139 (SIGSEGV), reproducible on every attempt (4+ independent runs, 2 different
datasets). GDB backtrace from a core dump:

#0  ?? ()  [in libOpenMS.so, no debug symbols in this build]
#1  OpenMS::QTClusterFinder::run_<OpenMS::FeatureMap>(...)
#2  OpenMS::FeatureGroupingAlgorithmQT::group_<OpenMS::FeatureMap>(...)
#6  OpenMS::TOPPBase::main(...)

The crash occurs during cross-run feature alignment (log shows "Alignment differences...
percentiles" immediately before the segfault).

Would appreciate if you can look into this. :)

Command used and terminal output

Relevant files

No response

System information

No response

Activity

  1. added
    bug
    on Sep 28, 2026
  2. jpfeuffer commented on Sep 28, 2026

    @jpfeuffer
    Collaborator

    Hi @chunxubioinfor

    Thanks for raising this. I forwarded this to OpenMS OpenMS/OpenMS#10310
    and it looks like a mixture of a missing guard against empty IDs which was already fixed in the nightly OpenMS builds and
    a smaller bug when combining Sage with the PercolatorAdapter that resulted in fewer IDs in the first place.

    @ypriverol @daichengxin Can you estimate when a new OpenMS build with these fixes could hit quantms?

  3. chunxubioinfor commented on Sep 29, 2026

    @chunxubioinfor
    Author

    Hi Julianus, thank you for your quick response!

  4. linked a pull request that will close this issuebump openms version 3.6.0 #736on Oct 1, 2026
  5. chunxubioinfor commented on Oct 7, 2026

    @chunxubioinfor
    Author

    Hi @daichengxin , thanks again for the quick triage and for forwarding this to OpenMS! I saw PR #736 merged on Oct 5, bumping the pinned OpenMS container to 2026.10.04, which looks like it postdates the OpenMS-side fix (OpenMS#10310 / OpenMS PR #10315, merged into develop on Sept 29). I noticed the bump currently sits only on dev though, and master still points at the older 2026.07.02 container. So I just wanted to followup whether that container bump is expected to resolve this specific issue, and when it might land on master / a tagged release? Thank you! :)

  6. jpfeuffer commented on Oct 7, 2026

    @jpfeuffer
    Collaborator

    Yeah, it will reach a tagged release eventually but we dont have a timeline yet. We need to test first on some more datasets if this OpenMS upgrade didnt break any other things.

  7. chunxubioinfor commented on Oct 8, 2026

    @chunxubioinfor
    Author

    @jpfeuffer thank you! Looking forward to seeing the new release!

  8. timosachsenberg commented on Oct 8, 2026

    @timosachsenberg

    Status from the OpenMS side: all fixes are on develop (OpenMS/OpenMS#9790 for the crash, OpenMS/OpenMS#10314 for Sage features in the in-process PercolatorAdapter, OpenMS/OpenMS#10315 for the Debug assertion and tests) and in the 2026.10.04 container that dev pins since #736.

    One quantms-side can you cehck: -profile test gives Sage the pre-built database with suffix decoys (_rev). Sage does not support decoy suffixes, so it searches without decoys, and Percolator at run_fdr_cutoff 0.1 then drops all PSMs in fraction 1. That empty fraction is what triggered the crash. -profile test_lfq_sage generates prefix decoys and runs through. We should either generate prefix decoys whenever Sage is selected or stop with a clear error on suffix-decoy databases.

    @chunxubioinfor could you rerun PXD001819 with -r dev? If it still fails, please attach the ProteomicsLFQ log; the per-run "N features left after filtering" lines show whether it is the same case.

  9. chunxubioinfor commented on Oct 8, 2026

    @chunxubioinfor
    Author

    Yes I would try that! Thank you @timosachsenberg

  10. chunxubioinfor commented on Oct 8, 2026

    @chunxubioinfor
    Author

    Hi @timosachsenberg, I just reran PXD001819 on -r dev with Sage + --add_decoys true. And good news that the crash is gone and feature detection, alignment, and consensus building all went through fine. However, It does still fail though, right at the end, at the QPX Parquet export step. Not a crash this time, exit code 5:

    ConsensusMapArrowExport: refusing invalid QPX feature table: row 243 repeats the QPX feature identity 'feature_id' ... [42 rows total]

    All 42 affected rows have an empty peptidoform (unidentified features) that collide on charge/run/rt/mz. Looks like a separate bug in the export's dedup logic for unassigned features. And I have attached the logs.

    nextflow_console.log

    PS: I was at it I tried both built-in test profiles on dev, which lines up with your suffix-decoy point:

    -profile test completed without crashing — consistent with #9790 handling the empty fraction now. But the underlying issue you describe is still there: decoy_string_position defaults to prefix while that database's decoys are suffixed (_rev), so Sage is still searching without decoys. The crash is fixed; the silent no-decoy search isn't. That seems like a good argument for your "generate prefix decoys whenever Sage is selected, or error out" suggestion.

    -profile test_lfq_sage I couldn't test at all — it fails at the sample sheet check before reaching Sage: AttributeError: 'float' object has no attribute 'strip' in sdrf_pipelines/sdrf_schema.py. Looks unrelated to this issue; happy to open a separate one.

  11. chunxubioinfor commented on Oct 12, 2026

    @chunxubioinfor
    Author

    Quick follow-up @timosachsenberg @jpfeuffer: I reran the same PXD001819 case on PR #740 (head 1afcff89, image quantms-onnx-v2, Sage + --add_decoys true), and it now completes perfectly, with QPX, MSstats and pmultiqc all produced.

    • Feature detection gives exactly the same per-run counts as my dev run from Oct 8: 4187 / 4341 / 6088 features left after filtering.
    • The new merge from OpenMS#10453 kicks in on every run: "Merged 26 / 20 / 36 feature(s) reporting the same signal (same charge, RT and m/z) as another feature". After that, the QPX export no longer hits the duplicate-feature_id error.

    So for this dataset, the remaining failure from my last comment is resolved once the image with OpenMS#10453 reaches quantms.

    Happy to retest once there's an official image or #740 is merged. :) Thank you!

  12. ypriverol commented on Oct 16, 2026

    @ypriverol
    Contributor

    I will close this PR, @chunxubioinfor. Feel free to open a new one in the future if needed; thanks for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions