Tooluniverse protein structure prediction

From mims-harvard/ToolUniverse · View interactive version

Tooluniverse protein structure prediction is an AI agent skill from the GitHub repository mims-harvard/ToolUniverse. Protein 3D structure prediction from sequence — ESMFold de novo prediction, AlphaFold database retrieval, experimental structures from RCSB, ProtVar variant impact assessment, ProtParam sequence properties. Use for structure prediction when no experimental structure exists, fold-confidence scoring,

How to use this skill

Skill file

Protein Structure Prediction and Analysis

End-to-end workflow for protein structure prediction starting from a sequence or UniProt accession. Combines ESMFold de novo prediction, AlphaFold database retrieval, experimental structure benchmarking from RCSB, ProtVar variant impact assessment, and ProtParam sequence property calculation.

KEY PRINCIPLES:

  1. Sequence first — obtain or verify the protein sequence before prediction
  2. ESMFold for fast de novo — works directly on sequence (up to ~800 residues); no database lookup needed
  3. AlphaFold for reference — retrieve precomputed AlphaFold model for comparison; use qualifier parameter (UniProt accession)
  4. Quality before interpretation — always report pLDDT scores; do not interpret low-confidence regions as folded
  5. Experimental validation — compare predictions to RCSB experimental structures when available
  6. ProtVar for variants — use when the question involves mutations or SNVs affecting structure
  7. English-first queries — use English protein names in all tool calls; respond in the user's language

LOOK UP, DON'T GUESS

When uncertain about any scientific fact, SEARCH databases first rather than reasoning from memory. A database-verified answer is always more reliable than a guess.


COMPUTE, DON'T DESCRIBE

When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.

When to Use

Apply when users ask:

Not for (use tooluniverse-protein-structure-retrieval instead): retrieval-only tasks where user provides a PDB ID or wants to browse experimental structures without prediction.


Input Parameters

| Parameter | Required | Description | Example |

|-----------|----------|-------------|---------|

| sequence | Yes (for ESMFold) | Amino acid sequence (single-letter FASTA) | MVLSPADKTNVK... |

| uniprot_id | Yes (for AlphaFold) | UniProt accession | P04637, P69905 |

| variant | No | Variant notation for structural impact | P04637 R175H, TP53 R175H |

| max_length | No | ESMFold limit: ~800 residues recommended | — |


Workflow Overview

Phase 0: Input preparation (sequence retrieval if needed)
    |
Phase 1: Sequence properties (ProtParam_calculate)
    |
Phase 2: De novo prediction (ESMFold_predict_structure)
    |
Phase 3: AlphaFold reference (alphafold_get_prediction + alphafold_get_summary)
    |
Phase 4: Experimental structure comparison (RCSBAdvSearch_search_structures, RCSBData_get_entry)
    |
Phase 5: Variant structural impact (ProtVar_map_variant + ProtVar_get_function) [if variant provided]
    |
Phase 6: Quality synthesis and interpretation

Phase 0: Input Preparation

Objective: Obtain or verify the protein sequence needed for ESMFold prediction.

If sequence is already provided

Use it directly for ESMFold_predict_structure. Check length:

If only protein name or UniProt ID is provided

Retrieve sequence from UniProt_get_entry_by_accession:

Note: If only a name is given (not accession), first resolve with UniProt_search or MyGene_query_genes to get the UniProt accession, then fetch the sequence.


Phase 1: Sequence Properties

Objective: Calculate physicochemical properties before prediction to contextualize results.

Tools

ProtParam_calculate:

Key Properties to Report


Phase 2: De Novo Structure Prediction (ESMFold)

Objective: Predict 3D structure from sequence using Meta's ESM-2 language model.

Tools

ESMFold_predict_structure:

Workflow

  1. Call ESMFold_predict_structure with the sequence
  2. Parse pLDDT scores:
  1. Parse pTM score (predicted Template Modeling score) — overall fold quality
  2. Record the PDB-format coordinate output for downstream visualization

Quality Interpretation

| pLDDT Range | Interpretation | Reliability |

|-------------|---------------|-------------|

| >90 | Very high confidence | Equivalent to experimental quality |

| 70-90 | High confidence | Backbone reliable, side chains approximate |

| 50-70 | Low confidence | Potentially disordered or flexible region |

| <50 | Very low confidence | Likely intrinsically disordered; do not interpret |

| pTM Score | Fold Confidence |

|-----------|----------------|

| >0.8 | High confidence global fold |

| 0.5-0.8 | Moderate; some domains may be uncertain |

| <0.5 | Low global fold confidence |

ESMFold vs AlphaFold


Phase 3: AlphaFold Reference Model

Objective: Retrieve precomputed AlphaFold2 model for comparison and higher-accuracy reference.

Tools

alphafold_get_prediction:

alphafold_get_summary:

alphafold_get_annotations (optional):

AlphaFill_get_transplants (optional, ligands/cofactors):

Workflow

  1. Call alphafold_get_prediction and alphafold_get_summary
  2. Extract mean pLDDT and per-residue confidence
  3. Compare ESMFold vs AlphaFold pLDDT profiles:
  1. Note the AlphaFold model version (v1/v2/v3/v4)

Decision Logic


Complex / Ligand-Binding Prediction (Boltz, paid -- optional)

ESMFold and standard AlphaFold (above) predict single chains only. When the question is specifically about a complex -- multi-chain assembly, or protein-ligand binding -- the official Boltz API (Boltz_* tools) covers that gap, but it's operationally different from everything else in this skill: it requires BOLTZ_API_KEY, it's a paid, asynchronous job (submit, poll, retrieve), not a free synchronous call.

Always estimate cost before submitting: call Boltz_estimate_structure_binding_cost with the same input first, and confirm with the user before calling Boltz_start_structure_binding -- don't submit a paid job on a user's behalf without that confirmation. Boltz_start_structure_binding also requires a caller-supplied idempotency_key to avoid double-billing on retry.

Workflow: Boltz_estimate_structure_binding_cost (confirm cost) -> Boltz_start_structure_binding (submit) -> Boltz_get_structure_binding (poll by job ID until complete) -> interpret confidence the same way as ESMFold/AlphaFold above.

For simple monomer confidence with no complex/binding question, ESMFold and AlphaFold remain the right default -- they're free and synchronous. Reach for Boltz only when the question can't be answered without it.


Membrane Topology & Signal Peptide Prediction (DTU tools, optional)

dtu_protein_predict runs DTU Health Tech's ML predictors on a raw sequence via the BioLib cloud runner (pip install pybiolib, anonymous, no account) — a different question than ESMFold/AlphaFold's 3D coordinates: per-residue topology and sequence features rather than a fold.

| Model | What it predicts | Status (live-verified) |

|-------|-------------------|------------------------|

| deeptmhmm (default) | Per-residue topology (inside/outside/TM-helix/beta-strand/signal) + a TM-region table — use for "is this a membrane protein, and how many passes" | Reliable |

| signalp | Signal-peptide detection + cleavage site | Reliable — verified live on a real signal-peptide-bearing sequence: correctly returned has_signal_peptide: true, cleavage at residue 22 |

| deeploc | Subcellular localization | Prokaryotic only (maps to DeepLocPro — the eukaryotic DeepLoc 2.0 isn't published on BioLib) and its upstream BioLib app currently crashes during embedding (device-mismatch); prefer deeptmhmm/signalp |

Jobs run anonymously on shared BioLib cloud infrastructure and commonly take 2-5 minutes — raise max_wait_time for large/multiple sequences, and don't treat a slow response as a hang. Input is FASTA text, a bare amino-acid string, or a fasta_path. Missing pybiolib fails cleanly with an install instruction rather than a stack trace — check for that first if the tool errors immediately.

Use this alongside Phase 1 (ProtParam) when the protein might be membrane-associated or secreted (e.g. GRAVY score > 0, or a "receptor"/"secreted"-sounding name) — a membrane topology or signal-peptide call changes how you read ESMFold/AlphaFold confidence (transmembrane helices are often high-pLDDT despite being embedded in a lipid bilayer the model never sees).


Phase 4: Experimental Structure Comparison

Objective: Check whether experimental structures exist in PDB and how predictions compare.

Tools

RCSBAdvSearch_search_structures (search by protein/gene name):

RCSBData_get_entry (details for a specific PDB ID):

Workflow

  1. Search for experimental structures using protein name
  2. Filter for highest-resolution X-ray or cryo-EM structures
  3. For the best experimental structure, retrieve entry details
  4. Compare to predictions:

Fallback


Phase 5: Variant Structural Impact (When Variant Provided)

Objective: Assess how a specific amino acid substitution affects the predicted structure.

Tools

ProtVar_map_variant:

ProtVar_get_function:

Workflow

  1. Call ProtVar_map_variant to resolve the variant and confirm position
  2. Call ProtVar_get_function with wild-type position to get domain context
  3. Assess: is the mutated residue in a critical structural region?
  1. Compare pLDDT at that position (from ESMFold/AlphaFold) to assess if the region is well-predicted

Evidence Grading for Variant Impact

| Tier | Evidence |

|------|----------|

| T1 | Clinical/functional data for this exact variant (from ProtVar) |

| T2 | Variant at experimentally characterized active site or binding interface |

| T3 | Computational pathogenicity prediction (PolyPhen, SIFT from ProtVar) |

| T4 | Position in predicted structured region only |


Phase 6: Quality Synthesis and Report

Required Report Sections

  1. Protein summary — name, length, pI, stability index (from ProtParam)
  2. Structure prediction summary table:

| Method | Mean pLDDT | pTM/Global Score | Coverage | Notes |

|--------|-----------|------------------|----------|-------|

| ESMFold | X.X | X.X | 100% (full seq) | — |

| AlphaFold | X.X | — | 100% | version vN |

| Experimental (best) | N/A | N/A | XX% | PDB: XXXX, Xray, X.X A |

  1. Confidence map — regions of high vs low confidence; highlight disordered regions
  2. Experimental structure comparison — does PDB have coverage? How does prediction align?
  3. Variant impact (if applicable) — domain context, pathogenicity, structural consequence
  4. Recommendations:

Quality Minimums


Tool Parameter Reference

| Tool | Key Parameter | Notes |

|------|--------------|-------|

| ESMFold_predict_structure | sequence | Raw amino acid string, no spaces, no FASTA header |

| alphafold_get_prediction | qualifier or uniprot_id | UniProt accession (e.g., "P04637") |

| alphafold_get_summary | qualifier or uniprot_id | Same UniProt accession |

| ProtParam_calculate | sequence | Same sequence string |

| ProtVar_map_variant | variant | Format: "<UniProt_ID> <AA><pos><AA>" e.g., "P04637 R175H" |

| ProtVar_get_function | position | Integer residue number |


Fallback Strategies

| Situation | Fallback |

|-----------|----------|

| ESMFold fails (sequence too long > 800 aa) | Use AlphaFold model only; note length limitation |

| AlphaFold no entry for UniProt ID | Use ESMFold prediction only |

| RCSB search returns no results | Note no experimental structure; proceed with predictions |

| No UniProt accession available | Use ESMFold from raw sequence; skip AlphaFold |

| ProtVar variant not found | Manually assess position from domain annotation in Phase 4 |


Databases Integrated

| Database | Coverage | What it provides |

|----------|----------|-----------------|

| ESMFold | Any protein sequence (up to ~800 aa) | De novo structure prediction from sequence alone |

| AlphaFold DB | UniProt reviewed proteins (>200M entries) | Precomputed predictions with per-residue pLDDT |

| RCSB PDB | ~220,000 experimental structures | Ground-truth experimental coordinates for comparison |

| ProtVar | All UniProt proteins | Variant impact, domain context, clinical annotations |

| ProtParam | Any sequence | Physicochemical sequence properties |

| Boltz API (paid, BOLTZ_API_KEY) | Multi-chain complexes, protein-ligand binding | Async job; estimate cost first (see dedicated section above) |


Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.