Ling-MD/md-agent-skills / pymol-academic-figures
pymol-academic-figures
VerifiedUse when creating, improving, or troubleshooting publication-ready molecular structure figures with PyMOL: protein cartoons, ligand binding pockets, surfaces, electrostatic-style views, hydrogen bonds, labels, structure alignments, MD representative snapshots, transparent PNG export, ray tracing, journal-quality panels, PyMOL .pml scripts, or automated headless PyMOL rendering.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.3 KB |
| agents/openai.yaml | config | 219 B |
| references/figure-recipes.md | markdown | 2.2 KB |
| scripts/run_pymol_render.py | script | 3.4 KB |
references/figure-recipes.md
View on GitHub# PyMOL Figure Recipes
## Publication Setup
```pml
reinitialize
bg_color white
set ray_opaque_background, off
set antialias, 2
set ray_trace_mode, 1
set ray_shadows, off
set ambient, 0.35
set direct, 0.65
set spec_reflect, 0.15
set cartoon_fancy_helices, on
set cartoon_smooth_loops, on
set depth_cue, off
set orthoscopic, on
set label_size, 24
set label_color, black
```
## Load And Clean
```pml
load input.pdb, mol
remove solvent
remove inorganic
hide everything
show cartoon, polymer.protein
color gray80, polymer.protein
```
For a PDB ID:
```pml
fetch 1ubq, async=0
remove solvent
hide everything
show cartoon, 1ubq
```
## Binding Site
```pml
select lig, resn LIG
select pocket, byres (polymer.protein within 4.0 of lig)
show cartoon, polymer.protein
color gray80, polymer.protein
show sticks, lig
color orange, lig
show sticks, pocket
color slate, pocket and elem C
color red, elem O
color blue, elem N
zoom lig or pocket, 8
```
## Hydrogen Bonds
```pml
dist hbonds, lig, pocket, mode=2
set dash_color, black, hbonds
set dash_width, 2.5
hide labels, hbonds
```
Use hydrogen bonds sparingly. Too many dashed lines make a figure look less scientific, not more.
## Pocket Surface
```pml
show surface, pocket
set transparency, 0.45, pocket
color gray70, pocket
show sticks, lig
color orange, lig
```
If the ligand disappears behind the surface, increase transparency or show only selected pocket residues.
## Structure Alignment
```pml
load reference.pdb, ref
load model.pdb, model
align model and polymer.protein, ref and polymer.protein
hide everything
show cartoon, ref
show cartoon, model
color gray70, ref
color teal, model
orient ref or model
```
Report the RMSD from the PyMOL output when it matters.
## MD Snapshot
```pml
load representative_snapshot.pdb, snap
hide everything
show cartoon, snap and polymer.protein
color gray80, snap and polymer.protein
show sticks, organic
color orange, organic
orient snap
```
For multiple representative states, use two or three colors at most and label states rather than every residue.
## Export
```pml
orient
zoom visible, 4
ray 2400, 1800
png figure.png, dpi=300
quit
```
Transparent PNG:
```pml
set ray_opaque_background, off
ray 2400, 1800
png figure.png, dpi=300
quit
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |