Repository navigation
[FEATURE] ProteomicsLFQ -consensus_elution_width: one elution width per linked precursor - #10632
Conversation
…er linked precursor FeatureFinderIdentification reports each feature's Gaussian area, height x sigma x sqrt(2 pi), with sigma fitted per run, so the width fit's error moves a precursor's quantity from run to run. The new ConsensusElutionWidth replaces, per consensus feature, every run's sigma by the median over its identified features of sigma carried onto the consensus RT scale by the run's alignment slope, and reports height x consensus width x sqrt(2 pi) for every feature with a valid fit. ProteomicsLFQ applies it after linking with -consensus_elution_width true (default false). Ported from bigbio/andes #150. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01F73hZDwadLuUofLxkDHyVS
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 22 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Change: Feature Merge Risk: ⚪ Minimal · up to
|
|
Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01F73hZDwadLuUofLxkDHyVS
…ckpoints The elution model fit was kept through detection only when the option was on, and the option was part of the checkpoint fingerprint. Checkpoints written without it were rejected when it was turned on, and checkpoints could not be shared between the two settings. The option is only applied after linking, so it is now excluded from the fingerprint; detection always keeps the fit, and it is removed after linking in either case. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A7FsnA5brFpjwsCfJZn8ak
…etected without it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A7FsnA5brFpjwsCfJZn8ak
|
Two commits came out of the ProteoBench benchmark (results are in the PR description):
Generated by Claude Code |
|
Why andes's median |ε| and CV gain is larger This comes from reading the code and the committed tables; nothing was re-run. The E. coli gain is reproduced: −0.101 in andes, −0.099 here. The rest of andes's gain removes noise that only andes's baseline had.
Recommendation: keep the port as a species-bias fix and don't chase the remaining gap. Two optional follow-ups:
Generated by Claude Code |
…nsus-width CHANGELOG conflict resolved to develop's version: entries are generated weekly now. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01N27gUPMwAazeK8SAKECuCa
timosachsenberg
left a comment
There was a problem hiding this comment.
Reviewed the width estimator, RT-slope conversion, feature-handle updates, and checkpoint integration at a9fb997. No substantive correctness finding. The option is excluded from the detection fingerprint while the required fit metadata is retained until combination; the disabled path removes it before linking. Build and wheel CI passed. This was a source review, without rerunning the quantitative benchmark.
…onWidth natively develop's ConsensusElutionWidth (#10632, ProteomicsLFQ -consensus_elution_width) takes a feature's width as identified if the feature carries peptide identifications; here, if it is linked to identifications in the identification data of its feature map (BaseFeature::getLinkedIdentifications). The class test links the same features through the identification data converter. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Requested by Timo · project thread
Description
Before: FeatureFinderIdentification quantifies a feature by its Gaussian area, height × sigma × √(2π), with sigma fitted in each run. The error of the width fit moves a precursor's quantity from run to run.
After: With
ProteomicsLFQ -consensus_elution_width true, every feature of a consensus feature is quantified as height × w_c × √(2π) with one width w_c: the median over the precursor's identified features (with a valid fit) of sigma carried onto the consensus RT scale by the run's alignment slope. Each run's width is mapped back with its own slope. Features without a valid fit keep their intensity. Default false.How: New
ConsensusElutionWidth(apply() and localSlope()). ProteomicsLFQ keeps the fit's meta values (model_height,model_Gauss_sigma,model_center,model_status) through its meta-value cleanup at detection, so-feat_dircheckpoints serve both settings; the option is not part of the checkpoint fingerprint. It applies the option after linking and removes the meta values before linking (option off) or after it (option on). Class test, TOPP test.Benchmark
Data. ProteoBench DDA quant ion module, Q Exactive HF-X (PXD028735): 3 + 3 runs with 2 h gradients. The mzML are ProteoBench's own files, the same as in #10585. The FASTA is
ProteoBenchFASTA_MixedSpecies_HYE.fasta(sha256d9ac434d…), with reversedDECOY_decoys from DecoyDatabase.Builds.
77cccda7, the merge-base with develop.6fa67d5f. This is PR head529b2027plus the checkpoint fix below.e66bfaa1adds only a test.Pipeline. It follows #10585 step by step:
-psmFDR 0.01 -proteinFDR 0.01 -picked_proteinFDR true -protein_inference aggregation -feat_dir <dir>, plus-targeted_only true(identified only) or-targeted_only false -pip_echo true(MBR).-consensus_elution_widthfalse and true, from the same IDs and the same 6-feat_dircheckpoints.-out_msstats. "rt_local" is-out_cxml→ConsensusMapNormalizer -algorithm_type rt_local→MSstatsConverter.proteobench0.18.6, format "quantms", min 3 runs. The scoring script reproduces the public quantms submissiond01e87b9exactly (33,040 / 0.2088 / 0.3866 / CV 0.2236).Scripts, commands and tables:
benchmark-reproduction/andes-ports/pr10632on branchclaude/andes-benchmarks.Baseline sanity check. With the option off, the numbers match #10585:
Option off vs baseline build.
-targeted_only false) with either build. Detecting it twice with the same baseline build gives 77,858 vs 77,859 features, and about 15,500 features differ in intensity (relative difference about 1e-5). The PR build varies the same way.-feat_dircheckpoints does not reproduce the in-memory result exactly (46,415 vs 46,419 precursors). On the identified-only path, only the formatting ofpercolator_scorechanges.What the option changes.
Comparison with andes (bigbio/andes#150). The andes numbers are for MBR quantities without normalization (its raw
quantity), so the comparable OpenMS row is PIP-ECHO, none.Likely reasons for the smaller overall gain:
andes was not run on these inputs. It does its own search, and a like-for-like run did not fit next to the 11–13 GB PIP-ECHO runs on this machine.
Second dataset: Agilent 6550 Q-TOF (PXD069532, archive
ProteomicsLFQ-Multi-Instrument; 3 + 3 runs; same recipe with FragPipe's search settings). This set is too small to decide anything:Verdict. The option clearly improves accuracy on the HF-X data, mostly for the E. coli and yeast ratios, with and without rt_local normalization. Precision (CV) does not improve. Default stays false, as in this PR. Turning it on by default could be considered separately.
Fix pushed while benchmarking (6fa67d5). The option was part of the
-feat_dircheckpoint fingerprint, and the fit was dropped at detection when the option was off. So checkpoints written without the option were rejected with it, and the two settings could not share checkpoints.TOPP_ProteomicsLFQ_feat_dir_consensus_width(e66bfaa) combines the existing BSA checkpoints with the option on.TOPP_ProteomicsLFQ*tests, the new test andConsensusElutionWidth_testpass.Ported from bigbio/andes#150.
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.🤖 Generated with Claude Code
https://claude.ai/code/session_01F73hZDwadLuUofLxkDHyVS
Summary by CodeRabbit
-consensus_elution_width true; it is off by default.