chai1
하는 일
이 스킬은 단백질, RNA, DNA, 저분자의 복합체를 예측하는 오픈 모델 Chai-1을 실행하는 방법을 에이전트에게 가르칩니다. 항체, 결합체, 리간드 연구에 쓰입니다.
사용하는 경우
- ✓연구자가 FASTA 파일로부터 항체와 항원의 복합체를 예측하고 싶을 때.
- ✓과학자가 단백질과 리간드 예측을 확인할 두 번째 모델을 원하는 경우.
- ✓팀이 GPU에서 복합체 예측 배치를 실행할 때.
스킬 링크
https://github.com/aipoch/open-science/blob/main/resources/skills/chai1/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 항체와 항원의 복합체를 FASTA 파일 하나로 예측하고, 결과의 순위를 매겨 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 각 사슬이나 리간드를 담은 FASTA 파일을 쓰고, 재순환과 샘플링 설정으로 Chai-1을 실행한 뒤 순위 점수를 읽습니다. 출력에는 신뢰도 지표가 있는 구조 파일이 포함됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Chai-1
Chai-1 is an all-atom diffusion co-folder in the same family as Boltz-2 and
AlphaFold3: a multi-entity FASTA in, mmCIF plus pTM/ipTM/pLDDT out, with
protein, RNA, DNA, and SMILES-ligand chains all first-class. It and boltz
cover the same surface; running both and keeping designs that pass either is a
common consensus filter, and Chai's Python entry point makes it the easier of
the two to embed in a loop. Code and weights are Apache-2.0 — commercial use
including drug discovery is explicitly permitted
(github.com/chaidiscovery/chai-lab).
Running it
from pathlib import Path
from chai_lab.chai1 import run_inference
Path("complex.fasta").write_text("""
>protein|name=target
MVTPEGNVSLVDESLLVGVTDEDRAVRS...
>protein|name=binder
AIQRTPKIQVYSRHPAENG...
>ligand|name=cofactor
CCCCCCCCCCCCCC(=O)O
""".strip())
candidates = run_inference(
fasta_file=Path("complex.fasta"),
output_dir=Path("out/"),
num_trunk_recycles=3,
num_diffn_timesteps=200,
seed=42,
device="cuda:0",
use_esm_embeddings=True,
)
print([rd.aggregate_score.item() for rd in candidates.ranking_data])
The FASTA header is >{entity_type}|name={id} with entity_type ∈
{protein, rna, dna, ligand}; ligand records carry a SMILES string as
the sequence body, and modified residues are written inline as
...AAK(SEP)AAG.... From the shell the same job is chai-lab fold complex.fasta out/ --use-msa-server. Without --use-msa-server (or
use_msa_server=True in Python) the model runs on ESM embeddings alone, which
is faster but typically a few ipTM points behind the MSA-backed run.
output_dir receives pred.model_idx_{0..4}.cif plus a matching
scores.model_idx_{N}.npz per sample with aggregate_score, ptm, iptm,
per_chain_ptm, and clash flags. Rank by aggregate_score; treat iptm >
0.5 as a soft pass for an interface. The function refuses a non-empty output_dir, so
clear or rotate it between calls.
Unset CHAI_DOWNLOADS_DIR fails mid-run with PermissionError on a read-only image
Chai downloads ~5 GB on the first inference call (not at install time),
including its own traced ESM2-3B for the embedding path. If
CHAI_DOWNLOADS_DIR is unset, the default is inside site-packages: on a
read-only image that fails with a confusing PermissionError mid-run, and on
a writable one it silently re-downloads ~5 GB into the container on every cold
start. Export the variable to a persisted volume so the download happens once.
No-MSA mode still loads a 3 B-parameter ESM — same VRAM, not less
use_esm_embeddings=True without an MSA still loads a 3-billion-parameter
language model into GPU memory alongside the trunk; it removes the MSA-server
round-trip, not the VRAM cost. If you OOM, drop num_diffn_timesteps or fold
fewer chains per call rather than expecting the no-MSA mode to fit a smaller
card.
Errors worth recognizing
| You see | It means / do this |
|---|---|
PermissionError under site-packages/chai_lab/... |
CHAI_DOWNLOADS_DIR not set on a read-only image — export it to a writable path or the pre-populated mount. |
RuntimeError: CUDA out of memory during ESM embedding |
The traced ESM2-3B is loading alongside the trunk — use an 80 GB tier or split chains across calls. |
Next: filter survivors on confidence/clash metrics or feed them back to
proteinmpnn for the next design round.
자주 묻는 질문
어떤 라이선스를 쓰나요?
스킬은 코드와 가중치가 Apache 2.0이며, 상업적 사용을 허용한다고 설명합니다.
리간드를 포함할 수 있나요?
네. 리간드는 FASTA 파일 안에 SMILES 문자열로 줍니다.
반복문에서 쓸 수 있나요?
네. 스킬은 Python 진입점 덕분에 배치 반복문에서 쉽게 실행할 수 있다고 설명합니다.
상세 정보
작성자의 원본 설명
Structure prediction for protein, nucleic-acid, and small-molecule complexes with the Chai-1 foundation model (Chai Discovery 2024, github.com/chaidiscovery/chai-lab). Reach for this skill to predict an antibody-antigen or protein-ligand complex from a single FASTA, to re-fold designed binders as an AlphaFold-multimer alternative, or to drive co-folding from Python for batched campaigns on a GPU.
repo: aipoch/open-science
인기도
- GitHub 스타
- 5.4k
- 순위
- #14852
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
alphafold2
5.4k에이전트가 ColabFold 러너를 통해 AlphaFold2로 단백질 서열의 3차원 구조를 예측하고, 단백질 복합체도 다루도록 돕습니다.
boltz
5.4k에이전트가 오픈 소스 Boltz-2 모델로 단백질, DNA, RNA, 저분자 복합체의 구조를 예측하도록 돕고, 선택적으로 결합 친화도 추정도 제공합니다.
borzoi
5.4k에이전트가 DNA 서열로부터 발현과 접근성 같은 게놈 전체의 활성 트랙을 예측하고, 예측된 효과로 변이를 비교하도록 돕습니다.
compute-env-setup
5.4k에이전트가 Open Science SSH 컴퓨팅 호스트에서 재사용 가능한 소프트웨어 환경을 준비해, 원격 작업이 필요한 패키지를 불러올 수 있도록 돕습니다.