deepTools – BigWig rebinning Current record: 3.137× 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 deeptools-bigwig Submission rules: https://github.com/rpinho/solved-one/blob/main/CONTRIBUTING.md Source: https://github.com/rpinho/solved-one/blob/main/problems/deeptools-bigwig/PROBLEM.md Data licence: own # Speed up deepTools BigWig rebinning ## How to submit 1. Save your file as `submissions/deeptools-bigwig/-.patch`. 2. From the repository root, run `tools/run_ci_local.sh candidate deeptools-bigwig 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 the bin means used by `bigwigCompare` and `bigwigAverage`. Submit one `.patch` against [deepTools at c678938e18](https://github.com/deeptools/deepTools/tree/c678938e18dfaa801484a78b8328da7e6a4b3006). Edit only `pydeeptools/deeptools/writeBedGraph_bam_and_bw.py`. Current best: **3.137× speedup over the pin** · @rpinho (recorded on Ubuntu 24.04). [Patch](https://github.com/rpinho/solved-one/blob/main/problems/deeptools-bigwig/best/rpinho-1507.patch) I submitted the starting patch in [deepTools #1507](https://github.com/deeptools/deepTools/pull/1507). Credit to the deepTools developers and maintainers. The patch retains the project's [MIT license](https://github.com/rpinho/solved-one/blob/main/problems/deeptools-bigwig/LICENSE). [The workload](https://github.com/rpinho/solved-one/blob/main/problems/deeptools-bigwig/benchmark.py) generates two 40,000,000-base BigWig tracks with gaps from two independent random streams derived from the block seed. It runs both tools with 50-base bins and one worker. `bigwigCompare` uses `--operation mean`. `bigwigAverage` averages the same tracks. 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. Both bedGraph files must match the pin byte for byte. CI runs upstream's comparison and averaging tests, plus the partial-bin and missing-data cases from the PR. 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.