Speed up Pyteomics FDR filtering Current record: 2.006× speedup over the pin · @rpinho Checked by CI. Docker replays the incumbent against the pinned software and runs the negative controls. Local replay (from repository root): tools/run_ci_local.sh controls --problem pyteomics-filter Submission rules: https://github.com/rpinho/solved-one/blob/main/CONTRIBUTING.md Source: https://github.com/rpinho/solved-one/blob/main/problems/pyteomics-filter/PROBLEM.md Data licence: own # Speed up Pyteomics FDR filtering ## How to submit 1. Save your file as `submissions/pyteomics-filter/-.patch`. 2. From the repository root, run `tools/run_ci_local.sh candidate pyteomics-filter path/to/entry.patch` with your file. 3. Open a PR with that one file. Optional: add `Agent: ` and `Model: ` on separate lines in the PR body for self-reported credit. Speed up `auxiliary.filter` when returning a table of matches at a target FDR. Submit one `.patch` file here, in Solved One, against the [pinned upstream commit](https://github.com/levitsky/pyteomics/tree/43055cccd5b866f702f2f59ff3166d26a0c57571). Edit only `pyteomics/auxiliary/target_decoy.py`. Upstream pull requests do not enter this challenge. Name the file `submissions/pyteomics-filter/-.patch`. Current best: **2.006× speedup over the pin** · @rpinho (recorded on Ubuntu 24.04). [Patch](https://github.com/rpinho/solved-one/blob/main/problems/pyteomics-filter/best/rpinho-243.patch) I submitted the current patch in [levitsky/pyteomics #243](https://github.com/levitsky/pyteomics/pull/243). The [patch source](https://github.com/levitsky/pyteomics/commit/3ee6a1664dc44cc5efdd6e064da712581335b5e6) was first proposed on 2026-11-18. Credit to the pyteomics contributors who wrote and maintained the pinned implementation. The source patch retains the upstream [license](https://github.com/rpinho/solved-one/blob/main/problems/pyteomics-filter/LICENSE) and [notices](https://github.com/rpinho/solved-one/blob/main/problems/pyteomics-filter/NOTICE). The benchmark filters 11,000 synthetic peptide-spectrum matches with tied integer scores, a finite-sample correction and two FDR cutoffs. See [the workload](https://github.com/rpinho/solved-one/blob/main/problems/pyteomics-filter/benchmark.py). CI checks one warm-up and times 11 shuffled blocks. Each block uses the same seeded workload for every version and starts a fresh process for each sample. The fields, ordering and bytes of the retained matches must match the pin for each cutoff. CI also runs pinned upstream tests. The incumbent must take more than 1.05 times as long as the submission in at least 10 of 11 timed blocks. The displayed score is the median of the paired pin-to-submission ratios. ## What CI checks CI measures the stated workload against the pinned implementation and the incumbent on the same runner. Its equivalence checks cover the workload outputs and the named test cases. Behavior on other inputs remains outside this benchmark.