Repository navigation
[FEATURE] ProSE report:collapse_positional_isomers: one row per positional isomer set - #10634
timosachsenberg wants to merge 1 commit into
Conversation
…ional isomer set with report:top_hits > 1 Of a spectrum's hits with the same charge, residues and modifications, only the best is reported; the others differ only in where the modifications sit and split the spectrum's evidence over near-duplicate rows in rescoring. Default false. Ported from bigbio/andes #143 (phospho PXD007653: +0.6% PSMs, +1.5% peptides; needed for chimeric top-N). 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 33 minutes. View limit details
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. Comment |
|
Closing this port: the benefit is small and it costs localization accuracy.
The option buys speed and a fraction of a percent in IDs, but it is worse on what positional isomers are about, so it is not worth the extra option. Benchmark details are in the description and in Generated by Claude Code |
Requested by Timo · project thread
Description
Before: With
report:top_hits> 1 (e.g. for PeptDeep rescoring), a phospho spectrum's top hits are often the same peptide with the phosphate on another residue. These near-duplicates split the spectrum's evidence over several rows in rescoring.After: With
report:collapse_positional_isomers true, only the best of a spectrum's hits with the same charge, residues and modifications is reported. Modifications are compared by name, so Phospho on S and on T, or Acetyl on the N-terminus and on K, are isomers. Default false.How: In
postProcessHits_, before the top-N cut, hits are sorted and duplicates ofpositionalIsomerKey_()(charge, unmodified sequence, sorted modification names) removed. Class test for the key.Ported from bigbio/andes#143.
Benchmark
Baseline
74048ef5(merge-base with develop) vs. PR5639017e, option off and on, same machine (4 cores, 15 GB). ProSE TOPP writes-out_pin(no in-process rescoring); external Percolator 3.09.0-Y -U, seeds 1/42/137, target PSMs at q ≤ 0.01. Scripts, per-file/per-seed tables and the exact parameters:benchmark-reproduction/andes-ports/pr10634onclaude/andes-benchmarks.Default unchanged: with the option off, PIN and idXML are byte-identical to the baseline on all 21 inputs (20 suite files + phospho).
Phospho, andes's dataset — PXD007653
…totalliver_control2_phospho.raw(102,819 MS2, converted in-process), UniProt mouse reviewed + 1:1 shuffled entrapment (andes'sbuild_shuffled_entrap.py) + reversed decoys. Frozen high-res parameters (Trypsin/P, 2 MC, 7–40, 20/20 ppm,report:top_hits 10, candidate cap 50), fixed CAM(C), variable Ox(M), Acetyl(Protein N-term), Phospho(STY), ≤ 3 per peptide (andes: 4),database:chunk_size 8000.Frozen #10364 suite (≤ 1 Ox(M)), 20 files × 8,000 MS2, frozen
native_dedupparameters:Only 0.6–2% of rows are Ox(M) site isomers here; unique peptides −0.05%. Entrapment, combined FDP off → on: Velos natural 1.18 → 1.18%; frozen paired-mass r = 1: HF-X 1.58 → 1.57%, Astral 1.40 → 1.47%, TMTpro 1.36 → 1.24% (±3–5 entrapment PSMs, seed noise). Search time unchanged (HF-X 6.2 → 5.8 s).
Known-position test: MHCquant spike-in (PXD011628, 66 synthetic HLA peptides with exactly one heavy V/P/L at a known position; 100 fmol replicates msms52/53/54, Lumos FTMS CID). Human Swiss-Prot + reversed decoys, unspecific cleavage, 8–12 aa, z 1–4, 10/20 ppm, variable Ox(M) and the heavy V, P and L labels (≤ 2 per peptide),
report:top_hits 10,low_memory true. Accepted spike-in PSMs (q ≤ 0.01) with one heavy label, sum over the 3 files of the seed means:With the option off, Percolator often replaces ProSE's wrong rank-1 site with the right isomer; the collapse removes those alternatives, so ProSE's rank-1 site errors stay. Most of the loss is one peptide, VLLAGFKPPL (label on P8, next to P9): 17–22 → 34–47 wrong-site PSMs per file (seed 42). Search time 20–22 min per file in both arms. Scripts and per-seed table:
results/mhc_site.tsv,mhc_wrong_sites.txtin the folder above.Verdict vs. andes:
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