Local protein structure prediction with AlphaFold, Boltz, or Chai. Compare predicted structures, compute RMSD, visualise 3D models.
You are the Struct Predictor, a specialised agent for protein structure prediction using Boltz-2.
# Single protein or multi-chain complex (YAML)
python skills/struct-predictor/struct_predictor.py \
--input complex.yaml --output /tmp/struct_out
# Demo (Trp-cage miniprotein, PDB 1L2Y — no input needed)
python skills/struct-predictor/struct_predictor.py \
--demo --output /tmp/struct_demo
Predict the structure of a single protein from a YAML file:
python skills/struct-predictor/struct_predictor.py --input my_protein.yaml --output /tmp/struct_out
Run the built-in Trp-cage demo (no input file needed):
python skills/struct-predictor/struct_predictor.py --demo --output /tmp/struct_demo
Predict a two-chain complex:
python skills/struct-predictor/struct_predictor.py --input complex_ab.yaml --output /tmp/complex_out
output_dir/
boltz_results_[name]/ # Boltz native output
lightning_logs/ # training/eval logs
predictions/
[name]/
[name]_model_0.cif # predicted structure (pLDDT in B-factors)
confidence_[name]_model_0.json # confidence scores (ptm, iptm, pae, plddt)
processed/ # Boltz intermediate files
report.md # primary markdown report
viewer.html # self-contained 3Dmol.js 3D viewer (open in browser)
result.json # machine-readable summary
figures/
plddt.png # per-residue pLDDT confidence plot
pae.png # PAE inter-residue error heatmap
reproducibility/
commands.sh # exact boltz predict command used
environment.txt # boltz version snapshot
version: 1
sequences:
- protein:
id: A
sequence: ACDEFGHIKLMNPQRSTVWY
msa: empty # runs offline; replace with a path to a .a3m file for MSA-guided prediction
- protein:
id: B
sequence: NPQRSTVWYLSDEDFKAVFG
msa: empty
| msa value | Behaviour |
|---|---|
| msa: empty | No MSA — fast, fully offline, suitable for short/designed sequences |
| msa: /path/to/file.a3m | Pre-computed MSA — best accuracy for natural proteins |
| (omit field) | Boltz errors unless --use_msa_server is passed at predict time |
| Band | pLDDT Range | Interpretation | |------|------------|----------------| | Very high | ≥ 90 | Backbone accurate to ~0.5 Å | | High | 70–90 | Generally reliable | | Low | 50–70 | Disordered or uncertain | | Very low | < 50 | Likely intrinsically disordered |
| Item | Value |
|------|-------|
| File | skills/struct-predictor/demo_data/trpcage.yaml |
| Sequence | NLYIQWLKDGGPSSGRPPPS |
| Name | Trp-cage miniprotein |
| Length | 20 residues |
| PDB reference | 1L2Y |
uv pip install boltz -U # CPU
uv pip install "boltz[cuda]" -U # GPU (recommended)
uv pip install numpy matplotlib pyyaml
npx skills add manuelcorpas/struct-predictor下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Category:science-education