Skip to content
Back to skills

572 Usage Guide 67c40ed2

ASecurity

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.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
developmentpythonbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned June 1, 2026

npx -y skills add tools-only/X-Skills --skill 572-usage-guide_67c40ed2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 572 Usage Guide 67c40ed2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 572 Usage Guide 67c40ed2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-572-usage-guide-67c40ed2/badge)](https://www.skillsdirectory.com/skills/tools-only-572-usage-guide-67c40ed2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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)

Files in this skill

  • README.md1018 B
  • skill.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.