proteinmpnn
できること
このスキルは ProteinMPNN を実行します。これは3D の骨格に対するタンパク質の配列を提案するツールで、特に別のタンパク質に結合するバインダーを設計する科学者のためのものです。
使う場面
- ✓設計ツールから得たタンパク質の骨格があり、その配列が必要なとき。
- ✓PDB ファイルの一つの鎖を、界面を固定したまま再設計したいとき。
- ✓折りたたみのツールで試すための、異なる温度の配列の範囲が必要なとき。
スキルのリンク
https://github.com/aipoch/open-science/blob/main/resources/skills/proteinmpnn/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この骨格の PDB ファイルについて、結合界面を固定したまま、16個のアミノ酸配列を提案してもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
利用者は構造ファイルを渡します。ツールは形に合う多くの配列を提案し、さらに試せるように保存します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
ProteinMPNN
ProteinMPNN is the default inverse-folding step in the binder pipeline: a
message-passing network that sees backbone geometry only, so it is the right
choice when the design surface is protein–protein and the wrong one as soon as
a ligand, nucleic acid, or metal is part of the interface — ligandmpnn adds
those atoms to the graph with a near-identical CLI, and solublempnn swaps in
weights trained on soluble structures for an expression-biased prior. Code and
weights are MIT (github.com/dauparas/ProteinMPNN). The model is small enough
to run on CPU — for a handful of sequences on one backbone that is seconds and
usually faster than dispatching a remote job; a GPU helps for batched
campaigns (hundreds of backbones or large --num_seq_per_target). Either way
the repo is cloned in-job — there is no PyPI dist and the checkpoints are
bundled in the repo.
Running it
pip install torch numpy # if not already present
git clone --depth 1 https://github.com/dauparas/ProteinMPNN.git proteinmpnn
cd proteinmpnn
python protein_mpnn_run.py \
--pdb_path backbone.pdb --pdb_path_chains "A" \
--out_folder out --num_seq_per_target 16 --sampling_temp "0.1"
Two flags trip almost everyone the first time. --sampling_temp is parsed as a
space-separated string so one run can sweep several temperatures; a single
value needs no quoting, but a multi-value sweep must be quoted
("0.1 0.2 0.3"), and commas never split — "0.1,0.2" fails the float cast. --pdb_path_chains is also space-separated inside
one quoted argument ("A B"); a comma is kept as part of the chain ID.
Designs land in out/seqs/<pdb_stem>.fa. The first record is the input
sequence; each design header carries score= (mean negative log-likelihood —
lower is more confident), global_score=, and seq_recovery=. ProteinMPNN
writes sequences only — it does not thread them back onto the backbone; if you
need designed-sequence PDBs, the ligandmpnn runner writes them to
backbones/ automatically and accepts --model_type protein_mpnn for the
same weights.
A flat chain map in --fixed_positions_jsonl silently redesigns every residue
--fixed_positions_jsonl expects one JSON object per line keyed by the PDB
stem first, then chain, then a list of 1-indexed residue numbers:
{"backbone": {"A": [10, 11, 12], "B": []}}. Passing the inner
{"A": [...]} directly — the obvious guess — is silently treated as "no PDB
matched," and every position is redesigned. The bundled
helper_scripts/make_fixed_positions_dict.py writes the correct shape from a
chain and range string and is worth the extra call; the same outer-stem rule
applies to --chain_id_jsonl and --tied_positions_jsonl.
Checkpoints — which one to pick
--model_name |
training noise | use |
|---|---|---|
v_48_002 |
0.02 Å | highest recovery; close-to-native redesigns |
v_48_020 (default) |
0.20 Å | de novo backbones — tolerates RFdiffusion imperfection |
v_48_030 |
0.30 Å | very rough backbones; lowest recovery |
--use_soluble_model |
— | swaps to the soluble-trained set; see solublempnn |
Errors worth recognizing
| You see | It means / do this |
|---|---|
KeyError: 'A' |
Chain letter not in the PDB — grep '^ATOM' file.pdb | cut -c22 | sort -u to see what is. |
JSONDecodeError on a *_jsonl flag |
The flag wants a file path, not inline JSON; write the file first. |
All positions redesigned despite --fixed_positions_jsonl |
Outer PDB-stem key missing — see the gotcha above. |
ModuleNotFoundError for relative imports |
Script run from the wrong cwd — cd into the cloned repo first; the imports are repo-relative. |
Next: fold the designs in complex with the target via boltz, chai1, or
esmfold2 and filter on ipTM.
よくある質問
グラフィックカードが必要ですか?
いいえ。少数の設計なら普通のコンピューターで実行できます。大量のバッチではグラフィックカードが役立ちます。
一度に複数のサンプリング温度を試せますか?
はい。一回の実行で複数の温度を掃引でき、比べられる配列の集合が得られます。
ライセンスは何ですか?
スキルの説明では、コードと重みは MIT ライセンスで公開されているとされています。
詳細
作者による元の説明
Inverse-fold a protein backbone (PDB structure) into amino-acid sequence with ProteinMPNN (Dauparas et al. 2022, github.com/dauparas/ProteinMPNN). Reach for this skill to run sequence design on RFdiffusion backbones, to redesign one chain of a PDB while holding interface residues fixed, or to generate a temperature-swept set of sequences for downstream folding.
repo: aipoch/open-science
人気
- GitHubのスター
- 5.4k
- ランキング
- #14868
- ライセンス
- 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 ファイルから、タンパク質、核酸、リガンドの複合体の構造を予測できるよう支援します。