Generate PyMOL scripts for highlighting specific protein residues in molecular structures.
This skill creates PyMOL command scripts to visualize protein structures with specific residues highlighted using various representation styles (sticks, spheres, surface, etc.).
The skill generates .pml script files that can be executed directly in PyMOL to:
ParameterTypeDescriptionpdb_filestringPath to PDB file or PDB ID (e.g., "1abc")residueslistList of residue specifications (chain:resnum:resname)stylestringVisualization style: "sticks", "spheres", "surface", "cartoon"color_schemestringColor scheme: "rainbow", "chain", "element", custom hexoutput_namestringOutput filename for the generated script
chain:resnum:resname or resnum (for single chain)A:145:ASP, B:23:LYS, 156A:* (all residues in chain A)bash
python scripts/main.py --pdb 1mbn --residues "A:64:HIS,A:93:VAL,A:97:LEU" --style sticks --color_scheme rainbow --output myoglobin_active_site.pml
This will generate a PyMOL script highlighting the specified residues in myoglobin's active site.
Generated .pml script includes:
See references/ directory for:
Medium - requires understanding of PyMOL scripting syntax and protein structure concepts.
Risk IndicatorAssessmentLevelCode ExecutionPython scripts with toolsHighNetwork AccessExternal API callsHighFile System AccessRead/write dataMediumInstruction TamperingStandard prompt guidelinesLowData ExposureData handled securelyMedium
No additional Python packages required.
Current Stage: Draft
Next Review Date: 2026-03-06
Known Issues: None
Planned Improvements: