跳到正文
Skillpedia
机器学习5.4k · #14851

borzoi

它能做什么

这项技能教智能体如何使用 Borzoi 模型,预测一段 DNA 上的生物活性。它帮助研究人员评估基因变异可能如何改变基因调控。

适用场景

  • ✓当研究人员想评估 DNA 变异如何改变基因表达或可及性时。
  • ✓当研究人员需要某个基因组区域的预测覆盖轨迹时。
  • ✓当团队想根据预测的轨迹变化,对非编码变异进行排序时。

技能链接

https://github.com/aipoch/open-science/blob/main/resources/skills/borzoi/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/aipoch/open-science/blob/main/resources/skills/borzoi/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我用预测的轨迹评估这个非编码变异会如何改变该区域的表达。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会以变异为中心,构建参考和替代 DNA 窗口,分别运行模型,然后比较预测的轨迹。两者的差异显示了可能的效果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Borzoi — DNA → Functional Track Prediction

Prerequisites

Requirement Minimum Recommended
Python 3.10+ 3.11
CUDA 12.1+ 12.4+
GPU VRAM 16 GB 24 GB+

How to run

from borzoi_pytorch import Borzoi

model = Borzoi.from_pretrained("johahi/borzoi-replicate-0").cuda().eval()
# input: (batch, 4, 524288) one-hot DNA  → output: (batch, tracks, 6144) bins

Borzoi consumes ~524 kb one-hot windows and emits binned predictions across 7,611 human tracks (the separate 2,608-track mouse head is off by default; enable via enable_mouse_head=True and select with forward(..., is_human=False)). For variant scoring, run ref/alt windows centred on the variant and compare per-track output.

Output format

(B, T, L) tensor — T tracks × L 32-bp bins. Track metadata (assay, biosample) 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.

Remote compute

Needs ≥24 GB VRAM and either pre-cached HF weights or egress to huggingface.co. Read compute_details({provider, mode:'read'}) for an environment with borzoi-pytorch, then:

c = host.compute.create(provider)
job = c.submitJob(
    intent="Borzoi track prediction for 1 locus — 1×GPU, ~2 min",
    inputs=[{"src": "borzoi_run.py", "dstFilename": "borzoi_run.py"}],
    command="python3 borzoi_run.py",   # env selection is host-specific — see compute_details for your provider
    outputs=["tracks.npz"],
    timeoutSeconds=1800,
)
print(job.job_id)   # cell ends here — kernel never blocks on compute

Retain the exact returned job_id. Query that saved ID with the non-blocking c.attachJob(job_id).status() or .result() when its state or result is relevant; do not scan Job history. A final .result() read reports whether its follow-up was suppressed or had already been committed; otherwise the app starts the later analysis turn for an unread final result. See the remote-compute-ssh skill for details.

If the provider exposes a weight-cache mount, point HF_HOME at it inside borzoi_run.py (path is in compute_details).

Troubleshooting

Symptom Cause Fix
module has no __version__ Package exposes no attr Use importlib.metadata.version("borzoi-pytorch")
Shape mismatch on input Wrong window length Pad/crop to 524288 bp (fixed; not exposed as a model attribute)

Next: combine track deltas with evo2 likelihood deltas for a two-axis variant prioritisation.

常见问题

它使用多长的 DNA?

技能说明,它使用约 52.4 万个碱基的 DNA 窗口。

需要什么硬件?

技能列出至少 16 GB 的 GPU 显存,建议 24 GB 或更多。

人类数据有多少条轨迹?

技能说明,人类输出包含 7611 条轨迹。

详情

作者的原始描述

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.

repo: aipoch/open-science

热度

GitHub 星标
5.4k
排名
#14851
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能