openfold3
できること
このスキルは、タンパク質やリガンドなどの分子がどう組み合わさるかを3Dで予測する OpenFold3 を実行します。閉じた商用ツールを使わずに構造予測を必要とする研究者のためのものです。
使う場面
- ✓タンパク質と低分子が結合した状態の3D 構造を予測したいとき。
- ✓タンパク質と DNA または RNA の複合体の構造が必要なとき。
- ✓AlphaFold3 の、オープンで Apache ライセンスの代替を求めているとき。
スキルのリンク
https://github.com/aipoch/open-science/blob/main/resources/skills/openfold3/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“OpenFold3 を使って、低分子に結合したこのタンパク質の3D 構造を予測してもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
利用者は、モデル化する配列と分子を渡します。エージェントは、強力なグラフィックカードで予測モデルを実行し、構造ファイルを返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
OpenFold3 Structure Prediction
Prerequisites
| Requirement | Minimum | Recommended |
|---|---|---|
| Python | 3.10+ | 3.11 |
| CUDA | 12.1+ | 12.4+ |
| GPU VRAM | 24GB | 80GB (H100) |
| RAM | 32GB | 64GB |
| Disk (weights) | 3GB | - |
How to run
Installation
pip install 'openfold3[cuequivariance]==0.4.1'
The default attention kernel is DeepSpeed DS4Sci_EvoformerAttention. If
DeepSpeed is unavailable, switch to the cuEquivariance triangle kernels (no
build-from-source) by overriding the eval memory settings in
model_config.py (use_deepspeed_evo_attention: False,
use_cueq_triangle_kernels: True). Some pre-built environments already ship
this override; check before re-patching.
Weights
Apache-2.0, ~2.3 GB from HF OpenFold/OpenFold3. The repo is gated (auto-approval) — accept the access form on the HF model page and authenticate (huggingface-cli login or HF_TOKEN) before downloading:
export OPENFOLD_CACHE=~/.openfold3
huggingface-cli download OpenFold/OpenFold3 checkpoints/of3-p2-155k.pt \
--local-dir "$OPENFOLD_CACHE"
run_openfold will also auto-download to $OPENFOLD_CACHE on first run if
egress is open and HF credentials are available (either HF_TOKEN or a prior
huggingface-cli login) with repo access granted. The interactive
setup_openfold helper exists but prompts on stdin; prefer the explicit
download above for non-interactive runs.
Running
export OPENFOLD_CACHE=/path/to/cache
run_openfold predict \
--query_json=queries.json \
--output-dir out/ \
--use-msa-server false \
--use-templates false
run_openfold discovers the checkpoint under $OPENFOLD_CACHE automatically.
Only pass --inference-ckpt-path <file.pt> if you have a non-standard layout
or multiple checkpoints and need to pin one explicitly.
For MSA + templates (slower, higher accuracy), drop the two false flags. The
MSA server is api.colabfold.com; template chain-ID remap hits
data.rcsb.org (GraphQL) — both must be reachable.
Query JSON format
OpenFold3 does not read FASTA. Queries are a JSON object validated by
InferenceQuerySet (pydantic, extra: forbid — unknown keys reject):
{
"queries": {
"my_complex": {
"chains": [
{ "molecule_type": "protein", "chain_ids": ["A"], "sequence": "MQIFVK…" },
{ "molecule_type": "protein", "chain_ids": ["B", "C"], "sequence": "MVLSPA…" },
{ "molecule_type": "ligand", "chain_ids": ["L"], "smiles": "CC(=O)Oc1ccccc1C(=O)O" }
],
"use_msas": true
}
},
"seeds": [42]
}
molecule_type |
required field |
|---|---|
protein / dna / rna |
sequence |
ligand |
smiles or ccd_codes: ["HEM"] |
chain_ids is a list — repeat the same sequence across multiple chain IDs
for homo-oligomers. Per-chain paired_msa_file_paths / main_msa_file_paths
let you supply your own a3m instead of the server.
Key parameters
| Flag | Default | Description |
|---|---|---|
--num-diffusion-samples |
5 | Structures per (query, seed) |
--num-model-seeds |
1 | Number of model seeds per query (multiplies output count alongside JSON seeds and diffusion samples) |
--use-msa-server |
true | ColabFold MMseqs2 server for MSA |
--use-templates |
true | ColabFold template search + RCSB remap |
--inference-ckpt-path |
auto-discovered under $OPENFOLD_CACHE |
Override only — for non-standard layouts or to pin a specific checkpoint file |
Output format
out/
├── summary.txt
├── mode
よくある質問
どのハードウェアが必要ですか?
少なくとも24GB のメモリを持つ強力なグラフィックカードが推奨され、モデルの重みには約3GB のディスク容量が必要とされています。
モデルをダウンロードするにはアカウントが必要ですか?
はい。モデルのリポジトリは制限付きで、アクセスのフォームに同意してログインしてからダウンロードする必要があります。
どのライセンスを使いますか?
スキルの説明では、モデルの重みは Apache-2.0 とされています。
詳細
作者による元の説明
Structure prediction using OpenFold3, an open-weights PyTorch reproduction of AlphaFold3 from the AlQuraishi Lab. Use this skill when predicting protein/nucleic-acid/ligand complex structures with an Apache-2.0-licensed AF3 reimplementation.
repo: aipoch/open-science
人気
- GitHubのスター
- 5.4k
- ランキング
- #14866
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
alphafold2
5.4kエージェントが、ColabFold のランナーを使い AlphaFold2 で、アミノ酸配列からタンパク質の立体構造を予測できるよう支援します。タンパク質の複合体にも対応します。
boltz
5.4kエージェントが、オープンソースの Boltz-2 モデルを使い、タンパク質、DNA、RNA、低分子の複合体の構造を予測できるよう支援します。任意で結合親和性の推定も行います。
borzoi
5.4kエージェントが、DNA の配列から発現やアクセシビリティなどのゲノム全体の活性トラックを予測し、予測される効果で変異を比べられるよう支援します。
chai1
5.4kエージェントが、Apache ライセンスの Chai-1 モデルを使い、一つの FASTA ファイルから、タンパク質、核酸、リガンドの複合体の構造を予測できるよう支援します。