New to Claude Skills? Learn how to install them →

google-deepmind on GitHub

AlphaFold Database Fetch and Analyze

Free

Retrieve and analyze AlphaFold protein structures efficiently.

Get this skill

Free · Opens the source repo

What AlphaFold Database Fetch and Analyze does

The AlphaFold Database Fetch and Analyze skill provides a streamlined way to download and analyze predicted protein structures from the AlphaFold Database using a specific UniProt Accession ID. This skill is particularly useful for researchers and developers working in bioinformatics or structural biology who need to assess the structural confidence metrics of proteins. By leveraging the skill, users can obtain not only the structural data but also critical analysis regarding the protein's predicted aligned error (PAE) and local confidence scores (pLDDT).

Upon receiving a valid UniProt ID, the skill executes a series of scripts that automatically fetch the relevant structure files and perform heuristic analyses. The output includes essential metrics such as the overall pLDDT score, which indicates the confidence level of the predicted structure, and assessments of intrinsically disordered regions and domain boundaries. This information is crucial for users who need to understand the structural characteristics of proteins before proceeding with further analyses or applications, such as docking or modeling.

The skill emphasizes the importance of using the provided scripts for fetching and analyzing data, ensuring that users comply with rate limits and avoid direct database access. This design choice not only simplifies the user experience but also enhances reliability. Users are guided through interpreting the results, with clear warnings about potential issues, such as the presence of isoforms or high intrinsic disorder, which could impact downstream applications.

In summary, this skill is tailored for users who require a reliable method to obtain and analyze AlphaFold structural predictions, making it an invaluable tool for anyone involved in protein structure research or applications.

When to use it

Use this skill when you have a specific UniProt Accession ID and need to analyze the structural confidence and characteristics of a protein.

When not to use it

Avoid using this skill if you only have a protein name, gene name, or amino acid sequence, as it requires a UniProt ID.

What you can build with it

Protein Structure Research

When conducting research on protein structures, use this skill to quickly obtain and analyze AlphaFold predictions for specific proteins.

Bioinformatics Tool Integration

Integrate this skill into bioinformatics workflows to automate the retrieval and analysis of protein structures based on UniProt IDs.

Structural Analysis for Drug Design

Utilize this skill to assess protein structures and their confidence metrics, aiding in the drug design process.

How to install AlphaFold Database Fetch and Analyze

View source

1. Install with the skills CLI

npx skills add google-deepmind/science-skills/alphafold_database_fetch_and_analyze --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by google-deepmind

AlphaFold Database: Fetch and Analyze

Prerequisites

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH.
  2. User Notification: If .licenses/alphafold_database_fetch_and_analyze_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://alphafold.ebi.ac.uk/, then (2) create the file recording the notification text and timestamp.

Overview

Downloads AlphaFold predicted structures (mmCIF) and Predicted Aligned Error (PAE) matrices from the AlphaFold Database for a given UniProt ID, then performs automated heuristic analysis on structural confidence (pLDDT), intrinsically disordered regions, rigid domain boundaries, and inter-domain flexibility.

Do NOT use when:

  • The user only has a protein name, gene name, or amino acid sequence (no UniProt ID) — ask them to look up the ID on UniProt.
  • The user wants to search for structural homologs (use Foldseek).
  • The user wants to run AlphaFold predictions on a custom sequence.
  • The user needs experimental PDB structures (use RCSB PDB).

Core Rules

  • Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly. The scripts automatically enforce the required rate limit gracefully.
  • Do not attempt to calculate domain boundaries or assess structural disorder yourself; always rely on the output provided by the script.
  • If this skill is used, ensure this is mentioned in the output.

Utility Scripts

1. Fetch Structure Files

Downloads the .cif structure file, _predicted_aligned_error.json, and API metadata JSON (-metadata.json) for a UniProt ID. Handles fragment fallback for very large proteins.

Examples:

uv run scripts/fetch_structure.py P00520 -o /path/to/output/
uv run scripts/fetch_structure.py P04637 -o /path/to/custom_results/

Always specify -o with an absolute path or a path relative to the user's project root, never a path relative to the skill directory.

2. Analyze pLDDT Confidence

Reads pLDDT confidence metrics from a saved AFDB metadata JSON file (produced by fetch_structure.py) and prints a heuristic confidence assessment (structured, disordered, mixed).

Example:

uv run scripts/analyze_plddt.py ./data/AF-P00520-F1-metadata.json

3. Analyze PAE / Domain Boundaries

Reads a downloaded PAE JSON file and detects rigid domain boundaries using a sliding-window PAE heuristic.

Example:

uv run scripts/analyze_pae.py ./data/AF-P00520-F1-predicted_aligned_error_v6.json

Interpreting the Output

The script prints analysis to stdout. Read it carefully and synthesize the results for the user:

  1. Isoform / Large Protein Warning (MANDATORY): Check the script output for any [!] WARNING lines. If the script reports that no canonical entry was found and an isoform was used, or if the protein is very large (>2700 AAs), you MUST prominently relay this warning to the user. Do not omit this warning.
  2. Synthesize the Structural Analysis: Combine the "pLDDT Conclusion" and the "PAE Structural Conclusion" into a single, cohesive overall summary. Describe the protein's overall folding confidence, the presence of disordered regions, and its rigid domain layout.
  3. Highlight the supporting metrics:
    • Overall Global pLDDT and the breakdown of fraction confidence (especially Very Low vs. Very High).
    • Domain Boundary Analysis (number of distinct global domains and their specific residue ranges).
  4. Explicit Disorder Warning: If the analysis concludes that the protein is highly intrinsically disordered (e.g., high fraction of <50 pLDDT or lack of rigid domains), issue a separate, prominent warning. Advise the user against proceeding with whole-protein downstream structural analysis (like Foldseek or docking). If small ordered domains exist amidst the disorder, advise the user to restrict any future analysis strictly to those specific residue boundaries.
  5. Remind the user that per-residue pLDDT is embedded in the B-factor column of the downloaded mmCIF file.

Frequently asked questions about AlphaFold Database Fetch and Analyze

Similar skills