Repository navigation
fix(benchmark): use SoCe-only entrapment FASTA for PXD028735 - #34
Merged
Merged
Conversation
The PXD028735 (ProteoBench HYE) arm decoyed against an entrapment FASTA built from the whole in-tree SoCe file, which carries 119 contaminant and foreign entries (104 bare ACC|NAME headers without any OS= annotation, 15 from other organisms) alongside the 9,320 S. cellulosum So ce56 proteins. Those entries can collide with HYE targets, so the entrapment set was not a clean absent-organism control. - make_hye_entrapment_fasta.py: retain only entries annotated exactly "Sorangium cellulosum (strain So ce56)", preserving source order and sequences verbatim and prefixing accessions with ENTRAPMENT_; fail closed on decoy-marked sources (the _rev suffix of the target_decoy variant), on an empty retained set, and on accession/name/sequence overlap with the target FASTA or duplicate identifiers; emit a machine-readable --summary. - prepare_pxd028735_inputs.sh: write entrapment_hye_soce.fasta, guard the summary numerically and by sum and overlap (exit 4), and record the new provenance lines. - benchmark.yml: both PXD028735 workflow references point at the SoCe-only FASTA; the generic prose arm is unchanged. - tests: 11 regression tests for the generator, registered in the pr-checks test list so the coverage guard sees them. Co-authored-by: Codebuff <noreply@codebuff.com> Assisted-by: ChatGPT
nej1gotnochill
requested review from
a team
and
a balanced review from Copilot
November 26, 2026 16:48
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
poshul
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The PXD028735 (ProteoBench HYE) benchmark arm uses an entrapment (decoy) FASTA that is supposed to contain only an organism provably absent from the sample. The generator assembled that FASTA from the entire in-tree SoCe file,
doc/pyopenms/src/data/18Protein_SoCe_Tr_detergents_trace.fasta. That file has 9,439 entries, but only 9,320 of them are Sorangium cellulosum So ce56 proteins: 119 entries are contaminant or foreign — 104 are bareACC|NAMEheaders with noOS=annotation at all (human keratins, trypsins, BSA, ...) and 15 carry a different organism.Those 119 entries are exactly the ones that can share sequence with the HYE targets, so the previous entrapment set was not a clean absent-organism control: an entrapment hit could come from a protein that is genuinely present in the sample. This PR makes the entrapment FASTA SoCe-only and makes the generator refuse anything it cannot verify.
Design intent and rationale
benchmark/make_hye_entrapment_fasta.py): an entry is retained only when its header carriesOS=Sorangium cellulosum (strain So ce56)exactly. The 119 excluded entries are excluded for that one reason — they are not annotated as the exact So ce56 organism — and not because of any per-entry claim about overlap. A separate audit of the source against the HYE target FASTA found 39 normalized-accession, 37 protein-name and 29 exact-sequence matches, which is evidence that excluded entries would have collided with targets; it is not a claim that each of the 119 overlaps in all three ways.ENTRAPMENT_so the arm is identifiable downstream. No sequence is rewritten, trimmed or re-derived.rev_/DECOY_/REV_/decoy_prefixes,_rev/_REVidentifier suffixes) and points at the targets-only file. Thetarget_decoyvariant marks decoys with a_revsuffix, which a prefix check misses; copying that file would silently put reversed sequences into the entrapment set.--summaryemits key=value counts so the shell wrapper can assert the result numerically instead of trusting a log line.benchmark/prepare_pxd028735_inputs.sh): writesentrapment_hye_soce.fasta, validates the summary numerically and by sum and overlap (exit 4 on mismatch), and records the new provenance lines describing the source, the retention rule and the measurement convention used for the shared-peptide check..github/workflows/benchmark.yml): the two PXD028735 arm references that pointed at the mixed entrapment FASTA now point atentrapment_hye_soce.fasta. The unrelated generic prose arm is untouched, and no search parameters, scoring settings, metric classification or decoy-generation logic were changed.Run Python test suitesstep ofpr-checks.yml, so the repository's CI test-coverage guard accounts for it.Validation and test evidence
Run by the author on the Windows development environment against this branch's content, before the commit was created:
python -m pytest benchmark/test_make_hye_entrapment_fasta.py -q— 11 passed (1.45 s), exit 0.python -m py_compile benchmark/make_hye_entrapment_fasta.py— passed.python tests/validate_ci_test_coverage.py—discovered: 8 / configured: 8 / excluded: 0,RESULT: OK, exit 0.git diff --cached --check— clean, exit 0.Mbenchmark.yml,Mpr-checks.yml,Mmake_hye_entrapment_fasta.py,Mprepare_pxd028735_inputs.sh,Atest_make_hye_entrapment_fasta.py), 576 insertions / 38 deletions, with no unstaged or untracked files and the branch 0 behindmain.A documentation-only correction was applied during review and is included here: the module docstring originally stated that all 119 excluded entries "overlap the HYE target FASTA by normalized accession, protein name and sequence", which overstates the evidence. It now separates the exclusion reason from the independent overlap-audit figures. No filtering, collision or classification logic was touched by that correction.
Known limitations
benchmark/prepare_pxd028735_inputs.shwas not executed end to end: it needs the pinned input files (HYE target FASTA and the PXD028735 mzML), which are unavailable here and were not fetched over the network. Its new guards and provenance lines are therefore reviewed by inspection, not exercised against real inputs.Checklist
This repository has no
AUTHORSfile, so the first item is not applicable. There are no Python bindings here, so the last item is ticked as not necessary.AI use (see the OpenMS AI Policy)
Assisted-by:trailerCo-authored-by:trailer, and the description above explains the design intent and rationaleSubstantial agentic AI assistance was used for the implementation and testing of this contribution.
The commit carries a
Co-authored-by:trailer for the agentic tool and anAssisted-by: ChatGPTtrailer, per the policy. No AI tool produced benchmark results for this PR, and no dataset was downloaded or processed by an AI tool.No need to edit the CHANGELOG file: entries are generated automatically once per week from merged changes.
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.