alphafold
Validate protein designs using AlphaFold2 structure prediction. Use this skill when: (1) Validating designed sequences fold…
Design protein sequences using ProteinMPNN inverse folding. Use this skill when: (1) Designing sequences for RFdiffusion backbones, (2) Redesigning existing protein sequences, (3) Fixing specific residues while designing others, (4) Optimizing sequences for expression or
$ npx -y skills add adaptyvbio/protein-design-skills --skill proteinmpnn --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/proteinmpnnContext preview
The summary Claude sees to decide when to auto-load this skill.
Design protein sequences using ProteinMPNN inverse folding. Use this skill when: (1) Designing sequences for RFdiffusion backbones, (2) Redesigning existing protein sequences, (3) Fixing specific residues while designing others, (4) Optimizing sequences for expression or
name: proteinmpnn description: > Design protein sequences using ProteinMPNN inverse folding. Use this skill when: (1) Designing sequences for RFdiffusion backbones, (2) Redesigning existing protein sequences, (3) Fixing specific residues while designing others, (4) Optimizing sequences for expression or stability, (5) Multi-state or negative design. For backbone generation, use rfdiffusion or bindcraft. For ligand-aware design, use ligandmpnn. For solubility optimization, use solublempnn. license: MIT category: design-tools tags: [sequence-design, inverse-folding] biomodals_script: modal_ligandmpnn.py
| Requirement | Minimum | Recommended | |-------------|---------|-------------| | Python | 3.8+ | 3.10 | | CUDA | 11.0+ | 11.7+ | | GPU VRAM | 8GB | 16GB (T4) | | RAM | 8GB | 16GB |
> **First time?** See [Getting started](../../docs/getting-started.md) to set up Modal and biomodals.
git clone https://github.com/dauparas/ProteinMPNN.git cd ProteinMPNN python protein_mpnn_run.py \ --pdb_path backbone.pdb \ --out_folder output/ \ --num_seq_per_target 16 \ --sampling_temp "0.1"
**GPU**: T4 (16GB) sufficient | **Time**: ~50-100 sequences/minute
cd biomodals # modal_ligandmpnn.py takes --input-pdb and forwards run.py args via --params-str modal run modal_ligandmpnn.py \ --input-pdb backbone.pdb \ --params-str "--model_type protein_mpnn --number_of_batches 16 --temperature 0.1"
**GPU** (Modal): A10G default | **Timeout**: 900s default
Note: LigandMPNN includes ProteinMPNN functionality (select with `--model_type protein_mpnn`).
| Parameter | Default | Range | Description | |-----------|---------|-------|-------------| | `--pdb_path` | required | path | Single PDB input | | `--pdb_path_chains` | all | A,B | Chains to design (comma-sep) | | `--out_folder` | required | path | Output directory | | `--num_seq_per_target` | 1 | 1-1000 | Sequences per structure | | `--sampling_temp` | "0.1" | "0.0001-1.0" | Temperature (string!) | | `--seed` | 0 | int | Random seed | | `--batch_size` | 1 | 1-32 | Batch size |
0.1 -> Low diversity, high recovery (production) 0.2 -> Moderate diversity (default) 0.3 -> Higher diversity (exploration) 0.5+ -> Very diverse, lower quality
**IMPORTANT**: Temperature must be passed as a string, not float.
✅ **Correct**:
--sampling_temp "0.1" # String with quotes
❌ **Wrong**:
--sampling_temp 0.1 # Float without quotes - may cause errors --sampling_temp 0.1,0.2 # Multiple temps need proper format
✅ **Correct**:
{"A": [1, 2, 3, 10, 11], "B": [5, 6]}❌ **Wrong**:
{"A": "1,2,3,10,11"} # String instead of list
{A: [1, 2, 3]} # Missing quotes on key
{"A": [1,2,3,]} # Trailing comma✅ **Correct**:
--pdb_path_chains A,B # No spaces
❌ **Wrong**:
--pdb_path_chains A, B # Space after comma --pdb_path_chains "A,B" # Quotes may cause issues
# Bias toward certain AAs (positive = favor)
--bias_AA_jsonl '{"A": {"A": 1.5, "W": -2.0}}'
# Omit specific AAs globally
--omit_AAs "CM" # No cysteine or methionine
# Per-position omission
--omit_AA_jsonl '{"A": {"1": "C", "2": "CM"}}'# Design chains A and B together --pdb_path_chains A,B # Tie chains (same sequence) --tied_positions_jsonl tied.jsonl
| Variant | Use Case | Key Difference | |---------|----------|----------------| | ProteinMPNN | General | Original model | | SolubleMPNN | Expression | Trained on soluble proteins | | LigandMPNN | Small molecules | Ligand-aware context |
output/
├── seqs/
│ └── backbone.fa # FASTA sequences
└── backbone_pdb/
└── backbone_0001.pdb # PDBs with designed sequence>backbone_0001, score=1.234, global_score=1.234, seq_recovery=0.85 MKTAYIAKQRQISFVKSHFSRQLE...
python protein_mpnn_run.py \ --pdb_path binder_backbone.pdb \ --out_folder output/ \ --num_seq_per_target 16 \ --sampling_temp "0.1" \ --pdb_path_chains B # Design binder chain only
# Fix core, design interface python protein_mpnn_run.py \ --pdb_path complex.pdb \ --fixed_positions_jsonl core_positions.jsonl \ --num_seq_per_target 32
# Design for multiple conformations python protein_mpnn_run.py \ --pdb_path_multi state1.pdb,state2.pdb \ --num_seq_per_target 16
$ python protein_mpnn_run.py --pdb_path backbone.pdb --out_folder output/ --num_seq_per_target 8 Loading model weights... Designing sequences for backbone.pdb Generated 8 sequences in 2.3 seconds output/seqs/backbone.fa: >backbone_0001, score=1.234, global_score=1.189, seq_recovery=0.82 MKTAYIAKQRQISFVKSHFSRQLEERGLTKE... >backbone_0002, score=1.198, global_score=1.156, seq_recovery=0.79 MKTAYIAKQRQISFVKSQFSRQLDERGLTKE...
**What good output looks like:**
Should I use ProteinMPNN? │ ├─ Have a backbone structure? │ ├─ Yes → Continue below │ └─ No → Use RFdiffusion first │ ├─ What's in the binding site? │ ├─ Nothing / protein only → ProteinMPNN ✓ │ ├─ Small molecule / ligand → Use LigandMPNN │ └─ Metal / cofactor → Use LigandMPNN │ ├─ Priority? │ ├─ Solubility/expression → Consider SolubleMPNN │ ├─ Speed → ProteinMPNN ✓ │ └─ AF2 optimization → Consider
Validate protein designs using AlphaFold2 structure prediction. Use this skill when: (1) Validating designed sequences fold…
End-to-end binder design using BindCraft hallucination. Use this skill when: (1) Designing protein binders with built-in AF2…
Guidance for choosing the right protein binder design tool. Use this skill when: (1) Deciding between BoltzGen, BindCraft, or…
Guidance for SPR and BLI binding characterization experiments. Use when: (1) Planning binding kinetics experiments, (2)…
Structure prediction using Boltz-1/Boltz-2, an open biomolecular structure predictor. Use this skill when: (1) Predicting protein…
All-atom protein design using BoltzGen diffusion model. Use this skill when: (1) Need side-chain aware design from the start, (2)…