본문으로 건너뛰기
Skillpedia
머신러닝5.4k · #14868

proteinmpnn

하는 일

이 스킬은 3차원 백본 구조에 맞는 단백질 서열을 제안하는 도구 ProteinMPNN을 실행합니다. 특히 다른 단백질에 붙는 결합체를 설계하는 과학자를 위한 것입니다.

사용하는 경우

  • ✓설계 도구로 만든 단백질 백본이 있고 그에 맞는 서열이 필요할 때.
  • ✓사용자가 결합 계면은 고정한 채 PDB 파일의 한 사슬을 다시 설계하고 싶을 때.
  • ✓사용자가 접힘 도구에서 테스트할 여러 샘플링 온도의 서열 범위가 필요한 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

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

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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬