pymol
/pymol
Wizualizuje i renderuje struktury białek w PyMOL, nakłada struktury, mierzy odległości i koloruje je według pLDDT.
- Autor
- ekko8600 ↗
- Repozytorium
- enzyme_design_harness ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 08.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 9
- Skrypty
- 3
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 3 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/functional_geometry.py, scripts/verify_session.py, scripts/verify_session_bundle.py
Co robi i kiedy
Wizualizuje i renderuje struktury białek w PyMOL, nakłada struktury, mierzy odległości i koloruje je według pLDDT.
Oryginalny opis (EN)
Visualize, analyze, and render protein and molecular structures using PyMOL. Use when the user wants to create images of protein structures, perform structural alignments or superposition, measure distances or contacts, highlight binding sites or active site residues, color by B-factor/pLDDT, or analyze protein-ligand interactions. Do not use for docking, molecular dynamics, or sequence-only analysis.
Jak działa
- Prerequisites
- Overview
- Setup (Agent Instructions)
- Core Rules
- Quick Start
- Common Recipes
- Interpreting Output
Podgląd SKILL.md
---
name: pymol
description: 'Visualize, analyze, and render protein and molecular structures using
PyMOL. Use when the user wants to create images of protein structures, perform structural
alignments or superposition, measure distances or contacts, highlight binding sites
or active site residues, color by B-factor/pLDDT, or analyze protein-ligand interactions.
Do not use for docking, molecular dynamics, or sequence-only analysis.
'
metadata:
category: visualization
taxonomy_version: enzyme-agent/taxonomy/v1
capability_ids:
- reporting.scientific_visualization
---
# PyMOL
## Prerequisites
1. **Python/PyMOL**: Prefer an existing Python environment with `pymol`
importable, or a system `pymol` executable. `python` is optional and must
not be treated as a hard prerequisite.
2. **User Notification**: If LICENSE_NOTIFICATION.txt does not already exist in
the current task output directory then (1) prominently notify the user to check the
license at https://www.pymol.org/, then (2) create the file recording the
notification text and timestamp.
## Overview
PyMOL commands run on the host with software rendering when available; no GPU,
display, or X server should be required. Structure files must be downloaded to
the host before running PyMOL. If PyMOL is not installed, skip visualization and
record an optional-missing quality warning instead of blocking context building,
rational design, or QC.
**Do NOT use when:**
- The user wants to run AlphaFold predictions.
- The user wants docking or molecular dynamics simulations.
- The user only has a sequence and no structure file — fetch the structure
first. Check if any other installed skills can retrieve structures from the
PDB or AlphaFold Database before proceeding.
## Setup (Agent Instructions)
Check availability before writing a PyMOL-dependent step:
```bash
python - <<'PY'
import importlib.util, shutil
print({"python_pymol": bool(importlib.util.find_spec("pymol")), "pymol_bin": shutil.which("pymol")})
PY
```
If neither route exists, write a clear skip reason to the stage manifest and
continue with non-PyMOL structure analysis.
## Core Rules
- **Output paths must be absolute or relative to the user's project root.**
Always run PyMOL scripts from the user's project directory.
- **Software rendering only.** Use `cmd.png()` for output. Never use
`cmd.draw()` or `cmd.ray()` with hardware acceleration — OSMesa does not
support it. Set environment variable `PYOPENGL_PLATFORM=osmesa` for headless
rendering.
- **Always save a `.pse` session file** alongside any PNG output. This lets
the user open the session in their local PyMOL for further inspection.
- **Always call `cmd.quit()`** at the end of every PyMOL script. Omitting it
causes the process to stop responding.
- **Init boilerplate is mandatory.** Every PyMOL script must begin with the
initialization sequence. `from pymol import cmd` must come after
`finish_launching()`, not before.
- See [references/PYMOL_REFERENCE.md](references/PYMOL_REFERENCE.md) for
selection syntax, common commands, and gotchas.
- **Pre-Flight File Check**: Before writing the PyMOL script or running it,
you MUST verify that the requested structure file actually exists on the
host machine.
- **Verify Structure Load**: After loading a structure with `cmd.load()`,
always verify it succeeded by checking `cmd.count_atoms("all")`. If the
result is 0, print an error to stdout and call `cmd.quit()` immediately.
- **Notification**: If this skill is used, ensure this is mentioned in the
output.
## Quick Start
### Verify a saved session
Use the registered `verify_session` operation when a task requires evidence that
a `.pse` file can be reopened. It loads the session with PyMOL, records object
and atom counts, and writes a JSON receipt. This verifies reloadability only.
For cases where the reviewer must inspect input provenance, use
`verify_session_bundle` with a bundle containing `bundle_manifest.json`,
`geometry.pse`, and `geometry.json`; the operation checks the declared hashes
and provenance before reopening the session.
* Ensure structure files are downloaded to a directory in the user's project.
* Write a PyMOL Python script (e.g., `render.py`) with the required init
boilerplate and PEP 0723 header.
* Run it with the project Python environment: `python render.py`
### Minimal example script (`render.py`)
```python
# /// script
# requires-python = ">=3.10, <3.13"
# dependencies = [
# "pymol-open-source-whl",
# ]
# ///
import os
import sys
# Set environment variable for headless rendering
os.environ["PYOPENGL_PLATFORM"] = "osmesa"
import pymol # pytype: disable=import-error
pymol.pymol_argv = ["pymol", "-cq"]
pymol.finish_launching()
from pymol import cmd # pytype: disable=import-error
cmd.load("AF-P00520-F1-model_v4.cif", "structure")
cmd.show("cartoon")
cmd.color("green", "ss h")
cmd.color("yellow", "ss s")
cmd.color("gray", "ss l+''")
cmd.orient()
cmd.set("ray_opaque_background", 1)
cmd.png("output/render.png", width=1200, height=900, dpi=150)
cmd.save("output/session.pse")
cmd.quit()
```
## Common Recipes
See [references/RECIPES.md](references/RECIPES.md) for complete, copy-paste
ready recipes. Available recipes:
- **Cartoon with secondary structure coloring** — basic helix/sheet/loop
coloring
- **B-factor (pLDDT) coloring** — continuous spectrum coloring by B-factor
- **AlphaFold pLDDT coloring** — canonical threshold-based confidence colors
- **Highlight specific residues** — show active site or key residues as sticks
- **Surface rendering** — transparent surface over cartoon
- **Electrostatic surface rendering** — vacuum electrostatics (qualitative)
- **Multi-chain complex colors** — automatic per-chain coloring
- **B-factor putty analysis** — tube width proportional to flexibility
- **Cavity and pocket visualization** — surface cavity detection with ligand
focus
- **Multi-structure batch rendering** — render a directory of structures
- **Measure distance between residues** — CA–CA distance with labels
- **Zoom into binding pocket** — simple pocket focus
- **Protein-ligand interaction** — ligand isolation, styled rendering, polar
contacts
- **Two-structure superposition with RMSD** — align/cealign with auto-fallback
- **In silico mutagenesis** — mutate residues with the mutagenesis wizard
- **Load and modify an existing session** — re-open a `.pse` file
## Interpreting Output
- The `output/` directory contains PNG images and a `.pse` session file.
- Any measurements or metrics (distances, RMSD, atom counts) are printed to
stdout by the PyMOL script. Report these values to the user.
- Present PNG images to the user and describe the visualization.
- Tell the user they can open the `.pse` file in their local PyMOL to further
explore, rotate, or modify the visualization.
- If the user wants modifications, load the saved `.pse` in a new script and
re-run.
- Large sessions with surfaces can exceed the `--max_output_mb` limit (default
500 MB). Increase it with `--max_output_mb=1000` if needed.
Pliki w paczce (9)
- SKILL.md 7 KB
- execution_profile.json 2 KB
- scientific_contract.yaml 1 KB
- agents/openai.yaml 1 KB
- references/PYMOL_REFERENCE.md 5 KB
- references/RECIPES.md 11 KB
- scripts/functional_geometry.py 4 KB
- scripts/verify_session.py 2 KB
- scripts/verify_session_bundle.py 3 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · ekko8600/enzyme_design_harness | 100 | Apache-2.0 |
| google-deepmind/science-skills | 100 | Apache-2.0 |
| mkurman/zorai | 100 | MIT |
| neuroaihub/brainpilot | 100 | AGPL-3.0 |
| ai4protein/venusfactory2 | 90 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 1e1c4b658709 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90protein-structure
Analizuje trójwymiarowe struktury białek: modelowanie homologii, interpretację predykcji AlphaFold, dokowanie i oddziaływania z ligandami. - 95alphafold-database-fetch-and-analyze
Pobiera i analizuje struktury białek przewidziane przez AlphaFold dla podanego UniProt ID: ufność pLDDT, granice domen i ocenę nieuporządkowania. - 100protein-structure-analysis
Analizuje struktury białek: parsowanie PDB i mmCIF, superpozycja RMSD, analiza Ramachandrana, kieszenie wiążące, mapy kontaktów, elastyczność B-factor, DSSP i konwersja formatów. - 100alphafold-database-fetch-and-analyze
Pobiera przewidywane struktury AlphaFold dla białka o identyfikatorze UniProt i analizuje pewność pLDDT, granice domen oraz nieuporządkowanie. - 100alphafold-db
Pobiera z bazy AlphaFold DB przewidziane struktury 3D białek w formatach PDB i mmCIF, metryki pewności pLDDT i PAE oraz metadane według numeru UniProt. - 95alphafold-database-fetch-and-analyze
Pobiera przewidywaną strukturę białka z AlphaFold po identyfikatorze UniProt i ocenia pLDDT, granice domen oraz nieuporządkowanie.