This skill covers navigating the SMCRA (Structure-Model-Chain-Residue-Atom) hierarchy in Biopython Bio.PDB. Use it to access specific parts of structures, iterate over components, extract sequences, and handle disordered atoms.
Scanned 6/1/2026
Install via CLI
openskills install tools-only/X-Skills# Structure Navigation - Usage Guide
## Overview
This skill covers navigating the SMCRA (Structure-Model-Chain-Residue-Atom) hierarchy in Biopython Bio.PDB. Use it to access specific parts of structures, iterate over components, extract sequences, and handle disordered atoms.
## Prerequisites
```bash
pip install biopython
```
## Quick Start
Tell your AI agent what you want to do:
- "List all chains in this PDB file"
- "Extract the sequence from chain A"
- "Find all ligands in this structure"
## Example Prompts
### Accessing Structure Parts
> "Get chain A from model 0"
> "Show me all atoms in residue 100"
> "What is the B-factor of the CA atom in residue 50?"
### Iterating
> "Print all residue numbers in chain B"
> "List all C-alpha coordinates"
> "Count atoms in each chain"
### Extracting Information
> "Extract the protein sequence from this structure"
> "Find all ARG residues"
> "List all hetero groups (ligands)"
### Handling Disorder
> "Show alternative conformations for residue 42"
> "List all disordered atoms in chain A"
## What the Agent Will Do
1. Parse the structure file
2. Navigate to requested level using SMCRA hierarchy
3. Extract requested information (coordinates, properties, sequences)
4. Handle disordered atoms/residues appropriately
5. Return organized results
## SMCRA Hierarchy
```
Structure (whole PDB entry)
Model (NMR conformer or asymmetric unit)
Chain (polypeptide or nucleic acid)
Residue (amino acid, nucleotide, ligand, water)
Atom (individual atom with coordinates)
```
## Tips
- **Use `get_` methods** for iteration: `get_chains()`, `get_residues()`, `get_atoms()`
- **Residue ID is a tuple** - `(hetfield, resseq, icode)`, not just a number
- **hetfield values**: `' '` = amino acid, `'W'` = water, `'H_xxx'` = hetero
- **PPBuilder** extracts polypeptide sequences from coordinates
- **CaPPBuilder** works better for structures with missing atoms
- **Selection.unfold_entities** extracts all entities at a level (R=residue, A=atom)
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.