Skip to content
Back to skills

572 Usage Guide 5a9ba4b3

ASecurity

This skill covers modifying protein structures: transforming coordinates, removing/adding atoms and residues, modifying B-factors and occupancies, and building structures programmatically.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
datapythonbash

Security analysis

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

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of 572 Usage Guide 5a9ba4b3?

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

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

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

SKILL.md
# Structure Modification - Usage Guide

## Overview

This skill covers modifying protein structures: transforming coordinates, removing/adding atoms and residues, modifying B-factors and occupancies, and building structures programmatically.

## Prerequisites

```bash
pip install biopython numpy
```

## Quick Start

Tell your AI agent what you want to do:
- "Remove all water molecules from this structure"
- "Translate the structure by 10 Angstroms in X"
- "Set B-factors based on this conservation score data"

## Example Prompts

### Transformations
> "Center this structure at the origin"

> "Rotate the structure 90 degrees around the Z axis"

> "Translate chain A by [10, 5, 0]"

### Removing Entities
> "Remove hydrogens from this structure"

> "Delete chain B"

> "Remove all hetero atoms (keep only protein)"

### Modifying Properties
> "Set all B-factors to 20"

> "Color by conservation score in the B-factor column"

> "Set occupancy to 0.5 for chain A"

### Structure Building
> "Renumber residues starting from 1"

> "Rename chain A to X"

> "Merge these two PDB files"

## What the Agent Will Do

1. Parse input structure(s)
2. Navigate to target entities
3. Apply requested modifications
4. Save modified structure to new file

## Key Operations

| Operation | Method |
|-----------|--------|
| Remove atom | `residue.detach_child(atom_id)` |
| Remove residue | `chain.detach_child(residue_id)` |
| Remove chain | `model.detach_child(chain_id)` |
| Transform | Modify `atom.coord` directly |
| Modify B-factor | Set `atom.bfactor` |
| Modify occupancy | Set `atom.occupancy` |
| Rename chain | Set `chain.id` |
| Renumber residue | Set `residue.id` |

## Tips

- **Use `detach_child()`** to remove entities, not `del`
- **Modify coord directly** - `atom.coord` is a numpy array
- **B-factors for visualization** - Use B-factor column to encode custom data
- **Chain IDs are single characters** - typically A-Z
- **Residue ID is a tuple** - `(hetfield, resnum, icode)`
- **Copy before modifying** if you need to preserve original
- **StructureBuilder** for building from scratch

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.