Retrieves AI-predicted protein structures from AlphaFold DB by UniProt accession, downloads PDB/mmCIF files, and analyzes confidence metrics (pLDDT, PAE). For homology modeling, protein engineering, and structure-based drug discovery when no experimental structure exists.
AlphaFold DB is a public repository of AI-predicted 3D protein structures maintained by Google DeepMind and EMBL-EBI. Release v6 (October 2025, synced to UniProt 2025_03) holds ~241 million predictions, including ~40k isoforms and the input MSAs; since March 2026 it also serves precomputed homodimer and heterodimer complex predictions. Access structure predictions with confidence metrics, download coordinate files, retrieve bulk datasets, and integrate predictions into computational workflows.
This skill should be used when working with AI-predicted protein structures in scenarios such as:
| Scenario | Use Instead |
|---|---|
| Experimental X-ray / cryo-EM / NMR structure by PDB ID | alterlab-pdb |
| Folding a new or mutated sequence, or a custom protein–protein complex, yourself (ColabFold / AF2-Multimer) | alterlab-alphafold |
| Protein–ligand or protein–nucleic-acid co-folding | alterlab-boltz |
| Protein sequence, functional annotation, or accession ID mapping only | alterlab-uniprot |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-pdb) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Worked, copy-paste Python recipes for every capability below live in
references/code_examples.md. Load it when you need runnable code; the summaries
here give the routing and the key decisions.
Three entry points, in order of preference:
Bio.PDB.alphafold_db.get_predictions(accession),
download_cif_for(...), get_structural_models_for(...) — simplest path.GET https://alphafold.ebi.ac.uk/api/prediction/{uniprot_id}.
The response is a list of every model for that accession — the canonical
sequence plus isoforms (P00520-2, …) and, for some entries, third-party
models — so select the record whose uniprotAccession equals your query
rather than trusting [0]. The model ID is modelEntityId (e.g.
AF-P00520-F1); entryId is the legacy name that passed its announced
2026-06-25 sunset, so don't build new code on it. Complex models are
excluded unless you pass ?include_complexes=true (or call
/api/complex/{id}).get_uniprot_ids helper in
code_examples.md §1; valid db names at
https://rest.uniprot.org/configure/idmapping/fields).The /prediction response carries version-stamped file URLs — use those, don't
hand-build a _v{N} suffix. The DB version advances (currently v6) and old
_v4 file URLs now 404:
cifUrl / pdbUrl / bcifUrl — atomic coordinates (mmCIF / PDB / binary CIF).plddtDocUrl — per-residue pLDDT scores (0-100).paeDocUrl — PAE matrix./files/ returns HTTP 403 to curl's default User-Agent (checked 2026-10-23; the API,
Python, wget and any named client get 200). Use scripts/query_alphafold.py, which sends
its own User-Agent, or give curl one: curl -A "alterlab-alphafold-db/1.2" <plddtDocUrl>.
A 403 here is not an access block — retry with a User-Agent before reporting it.
Download recipe (resolve URLs from the API, write bytes) in code_examples.md §2.
plddtDocUrl, read confidence['confidenceScore'] (keys:
residueNumber, confidenceScore, confidenceCategory); thresholds in
"Confidence Interpretation Guidelines" below.paeDocUrl. The endpoint returns a single-element JSON array of
one object, so index [0] before the key
(pae[0]['predicted_aligned_error']). Visualization recipe in
code_examples.md §3.python scripts/query_alphafold.py confidence <acc> --summary gives
mean pLDDT, the fraction in each band and the residue segments per band;
python scripts/query_alphafold.py pae <acc> --summary gives mean PAE within and between
the confident segments (pLDDT > 70, ≥ 20 residues), or between ranges you name with
--domains 94-292,325-356, labelled confident (< 5 Å) / intermediate / uncertain (> 15 Å).https://ftp.ebi.ac.uk/pub/databases/alphafold/latest/
(e.g. UP000005640_9606_HUMAN_v6.tar; the index is download_metadata.json
in the parent directory). Lower-confidence complex predictions are bulk-only,
under .../alphafold/collaborations/nvda/.gs://public-datasets-deepmind-alphafold-v4/proteomes/
with gsutil, or query bigquery-public-data.deepmind_alphafold.metadata to
filter by organism/confidence. The species-download helper validates the
taxonomy ID and uses list-form subprocess.run (never shell=True).See code_examples.md §4 and references/api_reference.md (Bulk Downloads).
Parse mmCIF with Bio.PDB.MMCIFParser; pLDDT is stored in the B-factor column
(residue['CA'].get_bfactor()). Contact-map and B-factor extraction recipes in
code_examples.md §5.
Loop accessions → predictions → confidence stats → summary DataFrame. Full
example in code_examples.md §6.
scripts/query_alphafold.py is standard-library only (python scripts/query_alphafold.py ...).
The recipes in code_examples.md need packages; run them install-free:
uv run --with biopython --with requests python fetch.py # structure access + API
uv run --with numpy --with matplotlib --with pandas --with scipy python pae_plot.py
uv run --with google-cloud-bigquery python bq_query.py # optional: bulk GCP access
3D-Beacons alternative: AlphaFold is also reachable via the 3D-Beacons
federated API (https://www.ebi.ac.uk/pdbe/pdbe-kb/3dbeacons/api/uniprot/summary/{id}.json),
filtering entries where structures[i]['summary']['provider'] == 'AlphaFold DB'. Recipe in
code_examples.md (3D-Beacons section).
UniProt Accession: Primary identifier for proteins (e.g., "P00520"). Required for querying AlphaFold DB.
AlphaFold model ID (modelEntityId): AF-[UniProt accession]-F[fragment number] for DeepMind monomer models (e.g., "AF-P00520-F1"; isoforms look like "AF-P00520-2-F1"). Complex and third-party models use opaque numeric IDs (e.g., "AF-0000000365776990"); both forms are accepted by /api/prediction/{id}.
pLDDT (predicted Local Distance Difference Test): Per-residue confidence metric (0-100). Higher values indicate more confident predictions.
PAE (Predicted Aligned Error): Matrix indicating confidence in relative positions between residue pairs. Low values (<5 Å) suggest confident relative positioning.
Database Version: The REST API and the FTP latest/ archives serve v6 (the response reports latestVersion / allVersions); the GCS/BigQuery datasets lag at v4. File URLs include a version suffix (e.g., model_v6.cif, while newer third-party models start at _v1) — read them from the prediction response rather than hardcoding the suffix.
Fragment Number: Large proteins may be split into fragments. Fragment number appears in AlphaFold ID (e.g., F1, F2).
pLDDT Thresholds:
PAE Guidelines:
Worked, copy-paste Python recipes for every Core Capability: prediction retrieval (Biopython / REST / UniProt mapping), file downloads, pLDDT + PAE analysis, GCP/BigQuery bulk access, mmCIF parsing, batch processing, and the 3D-Beacons alternative.
Load this when you need runnable code.
Comprehensive API documentation covering:
Consult this reference for detailed API information, bulk download strategies, or when working with large-scale datasets.
latest/ serve v6 (latestVersion); GCS/BigQuery bulk datasets lag at v4/prediction response — never hardcode the _v{N} suffix_v4 file URLs now 404; superseded versions are removed from /files (older releases remain on the FTP site under v1/–v6/)entryId→modelEntityId, uniprotStart/End→sequenceStart/End, uniprotSequence→sequence, isReviewed→isUniProtReviewed) passed their 2026-06-25 sunset; paeImageUrl is slated for removal — use paeDocUrl/prediction results are single chains. Precomputed complexes (≈1.7M high-confidence homodimers and ≈80k heterodimers, added March–May 2026) come back only with include_complexes=true or /api/complex/{id}; judge them by interface metrics (ipTM, pDockQ) as well as pLDDT. For a complex that is not in the DB, fold it yourself (alterlab-alphafold)scripts/query_alphafold.py — runnable helper for the AlphaFold REST API (no key):
python scripts/query_alphafold.py prediction P00520
python scripts/query_alphafold.py confidence P04637 --summary # pLDDT bands + segments
python scripts/query_alphafold.py pae P04637 --summary # PAE between confident segments
python scripts/query_alphafold.py pae P04637 --domains 94-292,325-356 # PAE between named ranges
python scripts/query_alphafold.py download P00520 --fmt cif -o ./structures
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job