Commit 4b9df48
v23 addendum: notebooks + MCP + P2 fix for pre-v19-calibrated hardcoded position
Pushback from user on v23 initial report: "did you run all the
notebooks? run all the MCP walkthroughs? check tracks, findings?"
v23 had only installed enformer + run pytest. Re-opened the audit
to cover the missing pieces.
## Notebooks run end-to-end (scorched-earth env)
| Notebook | Cells | Errors | Warnings |
|---|---|---|---|
| single_oracle_quickstart.ipynb | 49 | 0 | 0 |
| advanced_multi_oracle_analysis.ipynb (pre-fix) | 127 (57 code) | 0 | **1** |
| advanced_multi_oracle_analysis.ipynb (post-fix) | 127 (57 code) | 0 | **0** |
| comprehensive_oracle_showcase.ipynb | aborts cell 9 | 1 (expected) | — |
comprehensive aborts on `No module named 'borzoi_pytorch'` — Borzoi
env not installed in this scorched-earth scope. Expected.
## P2 fix landed in this PR
examples/notebooks/advanced_multi_oracle_analysis.ipynb cell 67 had
`first_G_position_in_int = 108`. That hardcoded offset was calibrated
to the pre-v19 off-by-one in predict_variant_effect — 108 only pointed
at the G of `CCAGAGGGC` because the ref-check was reading one position
to the right of what the user said.
Post-PR #32, the code correctly reads the base at the user-given
position, and interval-offset 108 is the A in `CCAGAGGGC` — not the
first G. The warning
Provided reference allele 'G' does not match the genome at this
position ('A'). Chorus will use the provided allele.
was scientifically real: Chorus was substituting G at the A position
and predicting "mutating the A before the motif" while the notebook
claimed it was predicting "mutating the first G of the CTCF motif".
Shipped notebook text said one thing; the actual computation tested
another.
Fix: `108 → 109` so variant_pos lands on 1-based chr2:246676 = the
first G of CCAGAGGGC. Verified via extract_sequence. Re-ran the
notebook post-fix: 0 errors, 0 warnings.
## MCP server end-to-end
Spawned chorus-mcp over stdio via fastmcp.Client + StdioTransport.
3 tool calls succeeded: list_oracles (6 oracles, correct specs),
list_tracks('enformer') (4 assay types + 1267 cell types),
oracle_status ({"loaded_oracles":[]}).
## Extra oracles installed
- chorus setup --oracle chrombpnet → ✓ 9m 2s (env + ATAC:K562 fold 0
from ENCODE + background + hg38 already present); marker written.
- chorus setup --oracle legnet → ✓ ~2m (tiny weights); marker written.
Both end with chorus health → Healthy.
## Walkthrough spot-check
scripts/regenerate_multioracle.py --oracle chrombpnet reproduces the
committed chrombpnet effect size for rs12740374 G>T within 2e-6 —
CPU non-determinism; reverted the regen.
## Docs consistency
Every tool name referenced in examples/walkthroughs/**/README.md (9
unique) exists in the MCP registry. No orphans.
## Deferred (not exercised in this v23 scope)
- borzoi, sei, alphagenome setup/predict/walkthroughs — need
`chorus setup --oracle all` (2–4h) + HF_TOKEN for AG
- comprehensive_oracle_showcase.ipynb (needs all 6 oracles)
- AG-primary walkthroughs (variant_analysis/SORT1/BCL11A/FTO,
validation/CEBP/TERT, discovery/SORT1, causal/SORT1_locus,
sequence_engineering, batch_scoring) — previously verified in v21/v22
Fast suite in fresh env: 338 passed / 2 skipped (unchanged).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a645404 commit 4b9df48
15 files changed
Lines changed: 10738 additions & 1 deletion
File tree
- audits/2026-04-23_v23_scorched_earth
- logs
- nb_fresh
- examples/notebooks
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 328 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
Lines changed: 494 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments