spectrum
Apply a color spectrum to a molecular selection based on properties like B-factor, occupancy, residue index, or partial charge.
Instructions
Colors selection in a spectrum
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| palette | No | Colour ramp, e.g. ``rainbow``, ``blue_white_red``, ``cyan_white_magenta``, ``green_yellow_red``. | rainbow |
| selection | No | PyMOL selection string, e.g. "1abc and chain A". See the module note for syntax. | all |
| expression | Yes | Atom property to colour by: ``b`` (B-factor or pLDDT), ``q`` (occupancy), ``count``, ``resi``, ``pc`` (partial charge). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |