Claude Skill

alterlab-alphafold

Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based validation (pLDDT, pTM/ipTM, PAE). Use when folding a protein sequence or complex from FASTA, generating a predicted struc

LLM Mart · 0 points · 0 views 9 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download alterlab-ieu-alterlab-academic-skills-skills_bioinformatics_alterlab-alphafold-e4836c0.zip · 6 KB
Part of alterlab-ieu/alterlab-academic-skills — 94 skills

Install

skills CLI npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills/tree/main/skills/bioinformatics/alterlab-alphafold
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install alterlab-ieu-alterlab-academic-skills@llmmart
Git git clone https://github.com/AlterLab-IEU/AlterLab-Academic-Skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole alterlab-ieu/alterlab-academic-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

AlphaFold (via ColabFold)

Overview

Predict a protein's 3D structure from its amino-acid sequence with AlphaFold2, run through ColabFold (Mirdita et al., Nature Methods 2022) — which replaces AlphaFold's slow genetic-database MSA search with the fast MMseqs2 API, making folding practical on a single GPU. Handles single chains (monomer) and complexes via AlphaFold2-Multimer (Evans et al. 2021), and reports per-residue and per-interface confidence metrics so you know which parts of a prediction to trust.

This skill runs folding and returns structures + confidence. To retrieve an already-computed AlphaFold prediction for a known UniProt entry without running anything, use alterlab-alphafold-db instead.

When to Use This Skill

Use this skill when the user wants to:

  • Fold a protein sequence (FASTA) into a predicted 3D structure (PDB/mmCIF).
  • Predict a protein complex (AF2-Multimer) and score the interface (ipTM).
  • Rank multiple models and read confidence (pLDDT, pTM, PAE) to judge reliability.
  • Validate a designed sequence by refolding it and checking self-consistency vs. a target.

Does NOT Trigger

Scenario Use instead
Co-fold a protein with a ligand (SMILES/CCD) or predict binding affinity alterlab-boltz
Antibody–antigen / arbitrary multi-entity complex from one FASTA alterlab-chai
Look up a precomputed AlphaFold model by UniProt id alterlab-alphafold-db
ESM embeddings, inverse folding, generative design alterlab-esm
Dock a ligand into an existing structure alterlab-diffdock
De-novo backbone generation alterlab-rfdiffusion

Core Capabilities

1. Monomer folding

# One sequence per FASTA record; MSAs via the hosted MMseqs2 API (--msa-mode)
colabfold_batch input.fasta out/ --num-models 5 --num-recycle 3

Outputs per record: ranked *_rank_00N_*.pdb/.cif, a JSON with plddt/pae, and coverage/pLDDT plots. Relaxation is off by default — add --amber --num-relax 1 --use-gpu-relax to Amber-relax the top model (needs the openmm extra).

2. Complex folding (AF2-Multimer)

Join chains with a colon in one FASTA record to fold a complex:

>my_complex
MKT...AAA:MSE...GGG
colabfold_batch complex.fasta out/ --model-type alphafold2_multimer_v3

Read ipTM (interface confidence) and the inter-chain PAE block to judge whether the predicted interface is meaningful, not just the intra-chain pLDDT.

3. Confidence and validation

Metric Reads
pLDDT (0–100, per residue) local confidence; <50 = likely disordered/unreliable
pTM global fold confidence; >0.5 means the overall fold is plausibly right
ipTM interface confidence (complexes) — the number that matters for binding. DeepMind's published bands: >0.8 confident, 0.6–0.8 gray zone, <0.6 likely failed
PAE expected positional error between residue pairs; low off-diagonal = confident relative orientation

Self-consistency check (validating a design): fold the candidate, then compare to the intended backbone (e.g. TM-score / RMSD). A design that folds back to its target with high pLDDT and low PAE is self-consistent — the standard acceptance gate in a design→fold→score loop (see alterlab-proteinmpnn, alterlab-rfdiffusion).

4. Running on a GPU

Folding needs a CUDA GPU. For anything beyond a quick monomer, dispatch through alterlab-remote-compute (SLURM or a managed GPU provider): submit colabfold_batch, poll to completion, and harvest out/.

5. When AlphaFold 3 is the better tool

This skill runs AlphaFold 2 through ColabFold, which folds proteins and protein complexes only. AlphaFold 3 (Abramson et al., Nature 2024, doi:10.1038/s41586-024-07487-w) additionally handles ligands, nucleic acids, ions, and covalent modifications in one prediction. Access routes, as of 2026-09:

  • AlphaFold Server (alphafoldserver.com) — free for non-commercial use, with a restricted ligand/modification set and no install.
  • Local inferencegoogle-deepmind/alphafold3 ships the inference pipeline under Apache-2.0; the model parameters are distributed separately by Google under their own terms of use (not Apache-2.0), so check those terms before using them in a project.
  • Commercial use — available through Google Cloud rather than the open weights.

If the biology is a protein–ligand or protein–nucleic-acid complex and you want an openly licensed local model instead, alterlab-boltz (MIT) and alterlab-chai (Apache-2.0) are the AF3-class options this suite wraps.

Resources

  • references/colabfold_usage.md — install/pinning, MSA modes (API vs. local DB), templates, relaxation, batch/array runs, and full metric interpretation. Loaded on demand.

Part of the AlterLab Academic Skills suite.

Files (alterlab-academic-skills)
  • evals
    • evals.json 3.8 KB
      {
        "skill": "alterlab-alphafold",
        "evals": [
          {
            "id": "fold-monomer",
            "prompt": "I have a protein sequence in a FASTA file and no known structure. Predict its 3D structure with AlphaFold and tell me how confident the prediction is.",
            "expected_output": "Invokes alterlab-alphafold: runs colabfold_batch on the FASTA (MMseqs2 MSA), produces ranked PDB/mmCIF models, and interprets pLDDT/pTM (and PAE) so the user knows which regions are reliable. Notes a CUDA GPU is required and heavy runs dispatch via alterlab-remote-compute.",
            "assertions": [
              { "type": "should_trigger", "value": true },
              { "type": "output_contains", "value": "pLDDT" },
              { "type": "behavior", "value": "Runs ColabFold/AlphaFold2 and interprets confidence metrics rather than just returning coordinates." }
            ]
          },
          {
            "id": "fold-complex-multimer",
            "prompt": "Will these two proteins form a complex? Here are both chains — predict the dimer structure and score the interface.",
            "expected_output": "Invokes alterlab-alphafold in AF2-Multimer mode: folds the two chains as one complex (colon-joined FASTA or multi-record), reports ipTM and the inter-chain PAE to judge the predicted interface, not just intra-chain pLDDT.",
            "assertions": [
              { "type": "should_trigger", "value": true },
              { "type": "output_contains", "value": "ipTM" }
            ]
          },
          {
            "id": "design-self-consistency",
            "prompt": "I designed a new sequence for a target backbone. Can you refold it with AlphaFold and check whether it actually folds back to the intended shape?",
            "expected_output": "Invokes alterlab-alphafold for a self-consistency check: refolds the designed sequence, compares to the target backbone (TM-score/RMSD), and accepts only if it returns to the target with high pLDDT and low PAE — the acceptance gate in a design→fold→score loop.",
            "assertions": [
              { "type": "should_trigger", "value": true },
              { "type": "behavior", "value": "Frames the refold as a self-consistency validation against the intended backbone." }
            ]
          },
          {
            "id": "rank-and-confidence",
            "prompt": "AlphaFold gave me five models for my protein. How do I pick the best one and decide if the disordered-looking tail is real or just low confidence?",
            "expected_output": "Invokes alterlab-alphafold: ranks by pLDDT/pTM, selects rank 1, and explains that a low-pLDDT tail (<50) likely indicates disorder/unreliability rather than a confident extended conformation.",
            "assertions": [
              { "type": "should_trigger", "value": true },
              { "type": "output_contains", "value": "rank" }
            ]
          },
          {
            "id": "near-miss-boltz",
            "prompt": "I want to co-fold my protein together with a small-molecule ligand (I have the SMILES) and estimate the binding affinity.",
            "expected_output": "Should NOT trigger this skill; defers to alterlab-boltz. AlphaFold2/ColabFold folds proteins and protein complexes but does not co-fold arbitrary small-molecule ligands or predict binding affinity — that is alterlab-boltz's (open AlphaFold3-alternative) job.",
            "assertions": [
              { "type": "should_not_trigger", "value": true },
              { "type": "output_contains", "value": "alterlab-boltz" }
            ]
          },
          {
            "id": "near-miss-alphafold-db",
            "prompt": "What's the AlphaFold predicted structure for human P53? I just want to download the existing model, not run anything.",
            "expected_output": "Should NOT trigger this skill; defers to alterlab-alphafold-db, which retrieves precomputed AlphaFold DB predictions by UniProt accession. This skill runs folding; it should not be used to fetch an already-computed model.",
            "assertions": [
              { "type": "should_not_trigger", "value": true },
              { "type": "output_contains", "value": "alterlab-alphafold-db" }
            ]
          }
        ]
      }
      
  • references
    • colabfold_usage.md 4.6 KB
      # ColabFold / AlphaFold2 — Usage Reference
      
      Deeper detail for `alterlab-alphafold`. Verified against ColabFold **1.6.3** (current release
      as of 2026-09). Flags do shift between releases — check `colabfold_batch --help` when a
      command is rejected.
      
      ## Install
      
      ColabFold couples a folding engine (AlphaFold2 via JAX) with the fast MMseqs2 MSA step.
      The upstream `sokrypton/ColabFold` install path is a conda env plus pip:
      
      ```bash
      conda create -n colabfold -c conda-forge -c bioconda python=3.13 mmseqs2
      conda activate colabfold
      
      # CUDA 12 GPU (use jax[cuda13]/openmm[cuda13] on Blackwell or newer)
      pip install colabfold[alphafold,openmm] jax[cuda12] openmm[cuda12]
      
      # CPU only (slow — fine for testing the pipeline)
      pip install colabfold[alphafold,openmm]
      
      # MSA generation only, no structure prediction
      pip install colabfold
      ```
      
      The `openmm` extra is what enables Amber relaxation. For a one-command installer covering
      Linux/macOS/WSL2 there is LocalColabFold (`YoshitakaMo/localcolabfold`); a CUDA Docker image
      is published as `ghcr.io/sokrypton/colabfold`.
      
      ## MSA modes
      
      - **Hosted MMseqs2 API (default)** — `--msa-mode mmseqs2_uniref_env`. Fastest to start; your
        sequence goes to a public shared server, so disclose this for sensitive or unpublished
        sequences. Other choices: `mmseqs2_uniref_env_envpair`, `mmseqs2_uniref`, `single_sequence`.
      - **Local database** — run `colabfold_search` against a local ColabFold DB and feed the
        resulting MSA directory to `colabfold_batch`. Needed on air-gapped HPC. Splitting the run
        this way (`--msa-only`, then predict) also keeps the GPU busy only during folding.
      
      ## Key flags
      
      | Flag | Purpose |
      |------|---------|
      | `--num-models N` | how many of the 5 AF2 models to run (default 5) |
      | `--num-recycle N` | recycling iterations; more can help hard targets |
      | `--model-type alphafold2_multimer_v3` | multimer models for complexes (`auto` picks `alphafold2_ptm` for monomers, `alphafold2_multimer_v3` for complexes) |
      | `--templates` | query PDB templates from the MSA server |
      | `--amber --num-relax 1 --use-gpu-relax` | Amber-relax the top N ranked models (`--num-relax` defaults to 0, i.e. no relaxation) |
      | `--msa-mode` | MSA source (see above) |
      | `--msa-only` | fetch and store MSAs without predicting |
      | `--rank` | early-stop criterion; `auto` ranks by pLDDT (monomer) or pTM (multimer) |
      | `--pair-mode` / `--pair-strategy` | how chains' MSAs are paired for complexes |
      | `--use-fast-kernels` | fused kernels, ~2.5x faster with slightly lower memory (`--kernel-backend auto`) |
      | `--af3-json` | export the MSAs as an AlphaFold3-compatible input JSON instead of predicting |
      
      ## Outputs
      
      Per FASTA record ColabFold writes: ranked structures (`*_rank_00N_*.pdb` or `.cif`, relaxed
      versions only if `--num-relax` > 0), a scores JSON with `plddt` and `pae` arrays, and
      coverage/pLDDT/PAE plots. Rank 1 is the highest-confidence model.
      
      ## Metric interpretation
      
      - **pLDDT** (0–100, per residue): >90 very high, 70–90 confident, 50–70 low, <50 likely
        disordered.
      - **pTM**: global fold confidence (0–1); >0.5 means the overall predicted fold is plausibly
        similar to the true structure.
      - **ipTM**: interface confidence (0–1) and the load-bearing number for complexes. DeepMind's
        published bands (AlphaFold 3 output documentation): **>0.8** confident high-quality
        interface, **0.6–0.8** gray zone where the prediction may be right or wrong, **<0.6**
        likely a failed prediction. TM-based scores are strict on very short chains, so fall back
        to PAE/pLDDT for small entities.
      - **PAE**: N×N expected error (Å) between residue pairs; confident relative domain/chain
        orientation shows as low off-diagonal blocks.
      
      ## Design self-consistency
      
      For a design→fold→score loop, refold the designed sequence and accept only if it returns to
      the intended backbone with high pLDDT and low PAE (compare via TM-score/RMSD). This is the
      validation gate referenced by `alterlab-proteinmpnn`, `alterlab-ligandmpnn`, and
      `alterlab-rfdiffusion`.
      
      ## GPU dispatch
      
      `colabfold_batch` needs a CUDA GPU. Batch many targets as a SLURM array or a cloud GPU job via
      `alterlab-remote-compute` (submit → poll `sacct`/provider status → harvest `out/`).
      
      ## AlphaFold 3
      
      ColabFold also ships an AlphaFold3/OpenFold3 notebook, and DeepMind's own
      `google-deepmind/alphafold3` provides the AF3 inference pipeline under Apache-2.0 with model
      parameters distributed separately under Google's weights terms of use. The hosted
      AlphaFold Server (`alphafoldserver.com`) is free for non-commercial use with a limited ligand
      set. For an openly licensed local AF3-class model, see `alterlab-boltz` or `alterlab-chai`.
      
  • SKILL.md 6.1 KB
    ---
    name: alterlab-alphafold
    description: Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based validation (pLDDT, pTM/ipTM, PAE). Use when folding a protein sequence or complex from FASTA, generating a predicted structure with confidence metrics, ranking models, or checking self-consistency of a design. For co-folding a protein WITH a small-molecule ligand or predicting binding affinity prefer alterlab-boltz; for antibody–antigen or one-FASTA multi-entity complexes prefer alterlab-chai; to LOOK UP an already-computed structure prefer alterlab-alphafold-db; for ESM embeddings or inverse folding prefer alterlab-esm. Part of the AlterLab Academic Skills suite.
    license: MIT
    allowed-tools: Read Write Edit Bash(python:*) Bash(uv:*)
    compatibility: "Runs via ColabFold (`colabfold_batch`) — install `colabfold[alphafold,openmm]` plus a CUDA-matched JAX (current release 1.6.3 as of 2026-09). Requires a CUDA GPU for folding (JAX/CUDA); the MSA step uses the hosted MMseqs2 API by default or a local database. AF2 network weights download once and cache (~several GB). Dispatch heavy runs via alterlab-remote-compute."
    metadata:
        skill-author: AlterLab
        version: "1.1.0"
        last_updated: "2026-09-23"
    ---
    
    # AlphaFold (via ColabFold)
    
    ## Overview
    
    Predict a protein's 3D structure from its amino-acid sequence with **AlphaFold2**, run through
    **ColabFold** (Mirdita et al., *Nature Methods* 2022) — which replaces AlphaFold's slow
    genetic-database MSA search with the fast **MMseqs2** API, making folding practical on a
    single GPU. Handles single chains (monomer) and complexes via **AlphaFold2-Multimer** (Evans
    et al. 2021), and reports per-residue and per-interface **confidence metrics** so you know
    which parts of a prediction to trust.
    
    This skill **runs** folding and returns structures + confidence. To retrieve an
    *already-computed* AlphaFold prediction for a known UniProt entry without running anything,
    use `alterlab-alphafold-db` instead.
    
    ## When to Use This Skill
    
    Use this skill when the user wants to:
    - Fold a protein sequence (FASTA) into a predicted 3D structure (PDB/mmCIF).
    - Predict a protein **complex** (AF2-Multimer) and score the interface (ipTM).
    - Rank multiple models and read confidence (pLDDT, pTM, PAE) to judge reliability.
    - Validate a designed sequence by refolding it and checking self-consistency vs. a target.
    
    ### Does NOT Trigger
    
    | Scenario | Use instead |
    |----------|-------------|
    | Co-fold a protein **with a ligand** (SMILES/CCD) or predict binding affinity | `alterlab-boltz` |
    | Antibody–antigen / arbitrary multi-entity complex from one FASTA | `alterlab-chai` |
    | Look up a **precomputed** AlphaFold model by UniProt id | `alterlab-alphafold-db` |
    | ESM embeddings, inverse folding, generative design | `alterlab-esm` |
    | Dock a ligand into an existing structure | `alterlab-diffdock` |
    | De-novo backbone generation | `alterlab-rfdiffusion` |
    
    ## Core Capabilities
    
    ### 1. Monomer folding
    
    ```bash
    # One sequence per FASTA record; MSAs via the hosted MMseqs2 API (--msa-mode)
    colabfold_batch input.fasta out/ --num-models 5 --num-recycle 3
    ```
    
    Outputs per record: ranked `*_rank_00N_*.pdb`/`.cif`, a JSON with `plddt`/`pae`, and
    coverage/pLDDT plots. Relaxation is off by default — add `--amber --num-relax 1
    --use-gpu-relax` to Amber-relax the top model (needs the `openmm` extra).
    
    ### 2. Complex folding (AF2-Multimer)
    
    Join chains with a colon in one FASTA record to fold a complex:
    
    ```text
    >my_complex
    MKT...AAA:MSE...GGG
    ```
    
    ```bash
    colabfold_batch complex.fasta out/ --model-type alphafold2_multimer_v3
    ```
    
    Read **ipTM** (interface confidence) and the inter-chain **PAE** block to judge whether the
    predicted interface is meaningful, not just the intra-chain pLDDT.
    
    ### 3. Confidence and validation
    
    | Metric | Reads |
    |--------|-------|
    | **pLDDT** (0–100, per residue) | local confidence; <50 = likely disordered/unreliable |
    | **pTM** | global fold confidence; >0.5 means the overall fold is plausibly right |
    | **ipTM** | interface confidence (complexes) — the number that matters for binding. DeepMind's published bands: **>0.8 confident**, **0.6–0.8 gray zone**, **<0.6 likely failed** |
    | **PAE** | expected positional error between residue pairs; low off-diagonal = confident relative orientation |
    
    **Self-consistency check** (validating a design): fold the candidate, then compare to the
    intended backbone (e.g. TM-score / RMSD). A design that folds back to its target with high
    pLDDT and low PAE is self-consistent — the standard acceptance gate in a
    design→fold→score loop (see `alterlab-proteinmpnn`, `alterlab-rfdiffusion`).
    
    ### 4. Running on a GPU
    
    Folding needs a CUDA GPU. For anything beyond a quick monomer, dispatch through
    `alterlab-remote-compute` (SLURM or a managed GPU provider): submit `colabfold_batch`, poll
    to completion, and harvest `out/`.
    
    ### 5. When AlphaFold 3 is the better tool
    
    This skill runs **AlphaFold 2** through ColabFold, which folds proteins and protein
    complexes only. **AlphaFold 3** (Abramson et al., *Nature* 2024,
    doi:10.1038/s41586-024-07487-w) additionally handles ligands, nucleic acids, ions, and
    covalent modifications in one prediction. Access routes, as of 2026-09:
    
    - **AlphaFold Server** (`alphafoldserver.com`) — free for non-commercial use, with a
      restricted ligand/modification set and no install.
    - **Local inference** — `google-deepmind/alphafold3` ships the inference pipeline under
      Apache-2.0; the model parameters are distributed separately by Google under their own
      terms of use (not Apache-2.0), so check those terms before using them in a project.
    - **Commercial use** — available through Google Cloud rather than the open weights.
    
    If the biology is a protein–ligand or protein–nucleic-acid complex and you want an openly
    licensed local model instead, `alterlab-boltz` (MIT) and `alterlab-chai` (Apache-2.0) are
    the AF3-class options this suite wraps.
    
    ## Resources
    
    - `references/colabfold_usage.md` — install/pinning, MSA modes (API vs. local DB), templates,
      relaxation, batch/array runs, and full metric interpretation. Loaded on demand.
    
    Part of the AlterLab Academic Skills suite.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related