Command Palette

Search for a command to run...

Назад к скиллам
скилл № 42899

tooluniverse-protein-structural-annotation-pdb

Given a PDB structure, produce a per-residue annotation table: which residues sit at a binding interface (vs a partner chain), which line a ligand pocket…

БесплатноБез исполняемых скриптов
mims-harvardот mims-harvard★ 1 813 звёзд на GitHub

Установить tooluniverse-protein-structural-annotation-pdb в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Protein structural annotation from a PDB

For each residue of a target protein chain, classify whether it sits at a binding interface, in a ligand pocket, is buried vs solvent-exposed, and (optionally) which secondary-structure element it belongs to. This is the annotation track that anchors any DMS heatmap or per-residue interpretation to the protein's actual physical context.


When to use this skill

  • Building a per-residue annotation track for a DMS heatmap
  • Deciding whether a variant of interest is in an interface, in a pocket, or in the core — context that often distinguishes plausible mechanisms
  • Reading SAE feature drops at a position against the protein's known biology (a feature drop at a ligand-pocket residue means something different from a drop at a surface residue)

Not for:

  • Multi-conformer ensembles or NMR structure comparisons → use tooluniverse-computational-biophysics
  • Whole-structure pocket detection without a known ligand → use a docking tool (e.g. SwissDock) or PDBe's pre-computed pockets

Required inputs

Input Format Example
PDB ID 4 characters 6VJJ (KRAS-RAF1-GTP analogue)
Target chain single character A
Partner chain(s) list of chain IDs ["B"]
Ligand resnames 3-letter PDB names ["GNP", "MG"]

Optional:

  • distance_cutoff (default 5.0 Å)
  • core_rsa_cutoff (default 0.25)
  • include_secondary_structure (default false; uses PDBe REST if true)
  • pdb_content instead of pdb_id for local / predicted structures

Workflow

Step 1 (optional): Find the relevant PDB

If you only have a UniProt accession or gene symbol, pick a structure first:

# PDBe's curated UniProt→PDB mapping (recommended; ranks by coverage + resolution)
PDBeSIFTS_get_best_structures(uniprot_accession="P01116")
# Returns a ranked list of PDB IDs for KRAS with chain mapping

# Or full list (unranked)
PDBeSIFTS_get_all_structures(uniprot_accession="P01116")

# RCSB advanced search (free-text, when you don't have a UniProt yet)
RCSBAdvSearch_search_structures(query="KRAS GTP complex")

Pick the structure that contains the right complex: include the binding partner chain you care about, the relevant ligand, and a resolution adequate for distance-based classification (≤ 3 Å is a safe default).

Step 2: Run the annotation

Structure_annotate_per_residue(
    pdb_id="6VJJ",
    target_chain="A",
    partner_chains=["B"],
    ligand_resnames=["GNP", "MG"],
    distance_cutoff=5.0,
    core_rsa_cutoff=0.25,
    include_secondary_structure=False,
)

Returns annotations: List[{position, aa, dist_partner, dist_ligand, rsa, region, is_core, ss_element?}] for every residue of the target chain. For KRAS in 6VJJ, this yields 168 rows.

Step 3: Verify the numbering before joining

PDB residue numbers carry silent offsets — crystal constructs add N-terminal cloning residues, and published figures sometimes shift the track relative to the panel sequence. Always verify with a landmark:

# Get the canonical reference sequence
UniProt_get_sequence_by_accession(accession="P01116")
# Then spot-check: KRAS canonical position 12 should be glycine
assert annotations[11]["aa"] == "G"  # 1-indexed position 12, 0-indexed index 11

If the landmark mismatches, record the offset explicitly (e.g. pdb_pos = uniprot_pos + offset) before any downstream join. Do not silently rebase positions.

Step 4: Combine with secondary structure (optional)

If you set include_secondary_structure=True, the tool fetches per-residue helix/strand/coil from PDBe REST. Alternatively, use the dedicated PDBe secondary-structure tool separately:

pdbe_get_entry_secondary_structure(pdb_id="6VJJ")
# Returns per-chain helix + strand ranges

Step 5: Use the annotation

The returned table is keyed by 1-based canonical residue number. Typical downstream uses:

Use case Field to read
Is variant X in a pocket? by_pos = {a["position"]: a for a in annotations}; by_pos[X]["region"] in ("ligand", "both") — index by position field, NOT list index (PDB residue numbers may not start at 1 or be contiguous)
Build a DMS heatmap annotation track [(r["position"], r["region"], r["is_core"], r.get("ss_element"))]
Filter SAE hotspot features to ligand-binding residues filter clusters by region == "ligand"
Compare buried vs surface signal group statistics by is_core

Interpretation table

Region label Biological meaning Common functional role
interface Within distance_cutoff of a partner chain Protein-protein binding residue; variants often disrupt complex formation
ligand Within distance_cutoff of a ligand heavy atom Pocket residue; variants often disrupt substrate / cofactor / drug binding
both Both Allosteric or shared-surface residue
other Neither Surface (if not is_core)
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл tooluniverse-protein-structural-annotation-pdb?

Given a PDB structure, produce a per-residue annotation table: which residues sit at a binding interface (vs a partner chain), which line a ligand pocket, which are buried (core) vs solvent-exposed (surface), and optionally secondary structure. This is the structural track drawn under a DMS heatmap and the structural prior SAE feature drops are read against. Use when you need to anchor a variant-interpretation or DMS analysis to the protein's actual physical context.

Как установить скилл tooluniverse-protein-structural-annotation-pdb?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tooluniverse-protein-structural-annotation-pdb запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tooluniverse-protein-structural-annotation-pdb с