borzoi
Agent skill fromaipoch/open-science
Predict genome-wide functional tracks (RNA-seq, CAGE, DNase, ChIP) from DNA sequence with Borzoi. Use this skill when: (1) Scoring the regulatory effect of a variant on expression/accessibility, (2) Generating predicted coverage tracks for a locus, (3) Prioritising non-coding variants by predicted track delta.
How to install borzoi
install borzoi
# install the open-science pack with the skills CLI
npx skills add aipoch/open-science# or add only this skill to Claude Code: copy the folder
resources/skills/borzoi/
# into
~/.claude/skills/borzoi/ (all projects)
.claude/skills/borzoi/ (one project)
1# Borzoi — DNA → Functional Track Prediction23## Prerequisites45| Requirement | Minimum | Recommended |6| ----------- | ------- | ----------- |7| Python | 3.10+ | 3.11 |8| CUDA | 12.1+ | 12.4+ |9| GPU VRAM | 16 GB | 24 GB+ |1011## How to run1213```python14from borzoi_pytorch import Borzoi1516model = Borzoi.from_pretrained("johahi/borzoi-replicate-0").cuda().eval()17# input: (batch, 4, 524288) one-hot DNA → output: (batch, tracks, 6144) bins18```1920Borzoi consumes ~524 kb one-hot windows and emits binned predictions across217,611 human tracks (the separate 2,608-track mouse head is off by default;22enable via `enable_mouse_head=True` and select with23`forward(..., is_human=False)`). For variant scoring, run ref/alt windows24centred on the variant and compare per-track output.2526## Output format2728`(B, T, L)` tensor — `T` tracks × `L` 32-bp bins. Track metadata (assay,29biosample) is in `borzoi_pytorch.pytorch_borzoi_model.TRACKS_DF` (or `model.tracks_df` when using the `AnnotatedBorzoi` subclass) — the base `Borzoi` model has no `targets` attribute.3031## Remote compute3233Needs ≥24 GB VRAM and either pre-cached HF weights or egress to34`huggingface.co`. Read `compute_details({provider, mode:'read'})` for an35environment with `borzoi-pytorch`, then:3637```python38c = host.compute.create(provider)39job = c.submitJob(40 intent="Borzoi track prediction for 1 locus — 1×GPU, ~2 min",41 inputs=[{"src": "borzoi_run.py", "dstFilename": "borzoi_run.py"}],42…
Excerpt shown under the repository's Apache-2.0 license.
