본문으로 건너뛰기
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에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/aipoch/open-science/blob/main/resources/skills/borzoi/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 비암호화 변이가 이 구간의 발현을 어떻게 바꿀 수 있을지 예측된 트랙으로 점수 매겨 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 변이를 중심으로 참조 DNA와 대체 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천 염기 길이의 구간을 쓴다고 설명합니다.

어떤 하드웨어가 필요한가요?

스킬은 최소 16GB의 GPU 메모리를 나열하고, 24GB 이상을 권장합니다.

사람 트랙은 몇 개인가요?

스킬은 사람 출력에 7,611개의 트랙이 있다고 설명합니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬