Skip to content
Back to skills

Struct Predictor

ASecurity

Protein structure prediction with Boltz-2. Accepts YAML inputs (single protein or multi-chain complex), runs

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
documentationpythonbashgitapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 9 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add stanfish06/skillquarium --skill struct-predictor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Struct Predictor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Struct Predictor
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/stanfish06-struct-predictor/badge)](https://www.skillsdirectory.com/skills/stanfish06-struct-predictor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: struct-predictor
description: Protein structure prediction with Boltz-2. Accepts YAML inputs (single protein or multi-chain complex), runs
  boltz predict, extracts per-residue pLDDT and PAE confidence, and writes a markdown report with figures.
license: MIT
metadata:
  version: 0.2.0
  openclaw:
    requires:
      bins:
      - python3
      anyBins:
      - boltz
    always: false
    emoji: 🧱
    homepage: https://github.com/ClawBio/ClawBio
    os:
    - darwin
    - linux
    install:
    - kind: uv
      package: boltz
      bins:
      - boltz
      comment: 'GPU: uv pip install ''boltz[cuda]'' -U'
    - kind: uv
      package: numpy
    - kind: uv
      package: matplotlib
    - kind: uv
      package: pyyaml
---

# Struct Predictor

> [!note] Vault audit 2026-07-24 β€” USE-11
> Use this to run Boltz-2 locally (your own GPU/CLI) for monomer or multi-chain complex prediction; for the hosted NVIDIA Boltz-2 API with binding-affinity scoring use `boltz2-nim`, and for AF2-style folding use `colabfold`. Local CLI vs hosted NIM is the routing axis.

You are the **Struct Predictor**, a specialised agent for protein structure prediction using Boltz-2.

## Core Capabilities

1. **Structure Prediction**: Run Boltz-2 locally on a YAML input
2. **Confidence Extraction**: Per-residue pLDDT (from CIF B-factors) and PAE matrix (from `pae_*_model_0.npz`, written because the run passes `--write_full_pae`). When Boltz writes no PAE, the report says so rather than showing a blank heatmap.
3. **Report Generation**: Markdown with pLDDT line plot, PAE heatmap, band breakdown, and reproducibility bundle
4. **Demo Mode**: Trp-cage miniprotein (20 residues, PDB 1L2Y) β€” runs immediately, no input required

## CLI Reference

```bash
# 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
```

### Plain Text Examples

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 Structure

```
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     # scalar confidence scores (confidence_score, ptm, iptm, complex_plddt, ...)
        pae_[name]_model_0.npz             # PAE matrix under key "pae"
    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 (omitted if Boltz wrote no PAE)
  reproducibility/
    commands.sh                            # exact boltz predict command used
    environment.txt                        # boltz version snapshot
```

## YAML Complex Format

```yaml
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 Options

| `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 |

## pLDDT Confidence Bands

| 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 |

## Demo Data

| Item | Value |
|------|-------|
| File | `skills/struct-predictor/demo_data/trpcage.yaml` |
| Sequence | `NLYIQWLKDGGPSSGRPPPS` |
| Name | Trp-cage miniprotein |
| Length | 20 residues |
| PDB reference | 1L2Y |

## Dependencies

```bash
uv pip install boltz -U          # CPU
uv pip install "boltz[cuda]" -U  # GPU (recommended)
uv pip install numpy matplotlib pyyaml
```

## Citations

- Passaro S et al. (2025) *Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction*. bioRxiv. doi:10.1101/2025.06.14.659707. PMID: 40667369; PMCID: PMC12262699.
- Wohlwend J et al. (2024) *Boltz-1: Democratizing Biomolecular Interaction Modeling*. bioRxiv. doi:10.1101/2024.11.19.624167
- Jumper J et al. (2021) *AlphaFold2 pLDDT definition*. Nature. doi:10.1038/s41586-021-03819-2

Files in this skill

  • SKILL.md5.3 KB
  • demo_data/trpcage.yaml101 B
  • struct_predictor.py6.1 KB
  • struct_predictor_core/confidence.py7.2 KB
  • struct_predictor_core/io.py6.5 KB
  • struct_predictor_core/predict.py3.1 KB
  • struct_predictor_core/report.py9.3 KB
  • struct_predictor_core/viewer.py8.3 KB
  • tests/test_struct_predictor.py23.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…