electrostatic_view
Colors a protein molecular surface by approximate electrostatic potential using a red-white-blue spectrum, highlighting charged regions with atom- or residue-based charge assignment.
Instructions
Colors the molecular surface by approximate residue-based electrostatics.
Surface is colored red→white→blue via a B-factor spectrum. A white cartoon is shown beneath a semi-transparent surface. Organic ligands shown as sticks with yellow carbons.
For a more accurate Poisson-Boltzmann electrostatic surface, use poisson_boltzmann_view (requires APBS and PDB2PQR to be installed).
Args: obj_name: PyMOL object name (e.g. "1abc") mode: Charge assignment strategy. "atomic" (default) — charges assigned only to terminal charged atoms (e.g. ARG NH1/NH2/NE, LYS NZ, ASP OD1/OD2, GLU OE1/OE2, HIS ND1/NE2). Produces localized color at charge centers with natural falloff to white. "residue" — charges assigned uniformly to all atoms in each charged residue. Produces saturated patches; useful for quickly locating charged regions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | atomic | |
| obj_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |