Repository navigation
Lazarus v0.5.0 — Four dead tools, one real drug pocket
🧬 The flagship milestone: revived code stops being a museum and becomes a supply chain. Four independently-resurrected tools — spanning 2010→2023, C→Python, CPU→GPU, geometry→learned→generative — run as one pipeline and converge on a real, crystal-validated drug binding site. Unlike v0.4, this one does change the installed package:
pip install -U lazarus-bio.
New: a real result, out of four dead repos
v0.3 shipped lazarus run and a two-brick pipeline. v0.4 doubled the registry. v0.5 does the thing all of that was for — it answers a scientific question with code that was unrunnable amonth ago.
pipelines/target_dock_consensus.yaml doesn't just locate a binding site, it docks a drug into it:
─▶ fpocket (2010 C · geometry) ─┐
complex ─▶ ScanNet (learned · PPI-site) ─┼─▶ consensus ─▶ CONFIRMED small-molecule site
─▶ DiffDock (2023 · generative · GPU) ─┤
─▶ EquiBind (generative · CPU) ─┘
Run on BRD2's BD2 bromodomain (PDB 6MOA), a validated BET oncology target, with its crystal ligand JW4:
| Tool | Era / kind | Result |
|---|---|---|
| fpocket | 2010 C · geometry | top pocket druggability 0.93, 21 lining residues |
| ScanNet | learned · PPI-site | mean p 0.26 over those residues — quiet |
| DiffDock | 2023 · generative · GPU | 90% contacts in-pocket, 0.20 Å from the crystal centroid |
| EquiBind | generative · CPU | 100% in-pocket, 0.84 Å centroid / 1.30 Å RMSD |
The methods reinforce rather than cancel. Both dockers land inside the pocket fpocket flags, they agree with each other to ~1 Å, and decisively they converge on Asn429 (the conserved acetyl-lysine anchor) and Trp370 (the WPF-shelf tryptophan) — the real BET pharmacophore, not merely somewhere on the protein. ScanNet staying quiet is itself the signal: a small-molecule cleft, not a protein-protein interface.
That's the mirror image of the PD-L1 pipeline, which called flat interface → antibody target on the same question. Two pipelines, one question, opposite and both-correct verdicts — one of them cross-validated sub-Å against the drug already sitting in the crystal structure.
One command, four containers, a remote GPU box over --docker-host ssh://.
New: the run is committed, including what doesn't reproduce
pipelines/sample_output_6MOA/ ships the whole thing — verdict, per-residue triage, fpocket pockets, ScanNet predictions, both docked poses, the crystal reference, the exact command, and input provenance. Nothing hand-written.
It also says plainly which numbers are load-bearing:
- fpocket, ScanNet and EquiBind are deterministic — they repeat exactly.
- DiffDock is a generative (diffusion) model, so its pose moves run to run. Two independent runs gave 0.20 Å / 90% / 1.02 Å and 0.22 Å / 91% / 0.96 Å. The verdict, the pocket and the Asn429 + Trp370 convergence are stable; the second decimal is not.
- The headline geometry is centroid distance and contact-residue overlap (order-robust) rather than raw RMSD, because DiffDock rebuilds the ligand from SMILES and doesn't preserve atom order — so its same-order RMSD isn't comparable, while EquiBind's is.
For a project about reproducibility, saying which digits survive a re-run is the point.
New: two bricks anyone can compose against
dock_prep— split a crystal complex into receptor, reference ligand, and a DiffDock input row.dock_site_consensus— the fusion: pose → contact residues, overlap with the druggable pocket and the predicted site, pose-vs-crystal and pose-vs-pose geometry, and a reasoned verdict.
Both are stdlib+numpy on a generic python:3.11-slim — no build. Each ships twice (a readable .py and a copy embedded in its contract so the brick is self-contained), and a test now enforces that the two never drift.
Fixed: composability
Two fixes that a real multi-tool run surfaced — the reason this release exists:
- Nested step artifacts resolve.
${step.selector}now globs recursively and matches files only, so an output like DiffDock's$OUTDIR/<complex_name>/rank1.sdfis found instead of erroring. Matches are ordered shallowest-first, so a top-level artifact always beats a nested one and recursion can only add resolutions, never change an existing one. - Bricks that run as a non-root user can be composed. The shared
/lazaruswork dirs are created as root and made world-writable, so an image with its own user (DiffDock'sappuser) can read staged inputs and write outputs.Sandbox.execgained an optionaluser=.
Upgrading from 0.3.0 is safe
The installed CLI hasn't changed since v0.3 (v0.4 was registry-only), so this is the first package change in two releases. It was checked against the released 0.3.0 from PyPI, not assumed:
- Public API: 96 symbols in both. Nothing added, removed, or re-signed. The single signature change is additive and keyword-only —
Sandbox.exec(user=None). - Byte-identical Docker commands. Every pre-existing call pattern emits exactly the same
dockerargv on 0.5.0 as on 0.3.0. - Artifact resolution is a strict superset. Replaying every
${step.selector}in both shipped pipelines against real run outputs: every ref that resolved before resolves to the same file; only previously-failing refs newly succeed. pin,resurrect,registry,pullanddecay-checkare untouched — including the decay-check GitHub Action, whoselazarus-bio>=0.3.0floor picks this up safely.
92 passing tests (up from 74), docs build strict-clean, wheel and sdist pass twine check and install clean into a fresh environment.
Also
- 18 new tests, including regression cover for both runner fixes (verified to fail against the pre-fix runner), contract/source parity for the adapters, and all three consensus verdict bra
nches. - Roadmap Tier-1 "flagship" is now done; the observatory and the revival benchmark are the open tracks — contributions welcome.