local_resolution_view
Color a density map's isosurface by local-resolution values instead of a single global number. Validates voxel grids and converts breakpoints to the correct sigma scale.
Instructions
Colour a map's isosurface by a local-resolution volume instead of by chain.
A single global resolution number misrepresents almost every map: a rigid core at 2.5 Å and a flexible periphery at 5 Å live in the same volume, and one isosurface invites the reader to believe all of it is equally real.
Two things make this harder than it looks, and both are handled. The volumes must share a voxel grid — colouring one map by another samples it at the first map's coordinates, so a mismatch in extent, spacing, origin or axis order draws colour from the wrong place and renders smooth, plausible and wrong. This tool refuses and names what differs. And PyMOL normalises maps on load, so ramp breakpoints given in Ångström must be converted to sigma against the RESOLUTION map's own header — a different sigma scale from the contour level, which comes from the density map's. Every breakpoint is reported in both units.
Local resolution is an estimate. Estimators disagree with each other on the same map, and the value at a voxel depends on the window and the mask as much as on the data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Surface object name (defaults to "<map_obj>_localres") | |
| carve | No | Carve radius in Ångström; ignored without a selection | |
| level | No | Contour level for the isosurface. If omitted, 1.5 sigma is used. | |
| units | No | Units of `level` only: "sigma" or "absolute". Ramp breakpoints are always in Ångström. | sigma |
| breaks | No | Ascending resolution breakpoints in Ångström. Defaults to the resolution map's own observed range. | |
| map_obj | Yes | The density volume to draw, loaded through the load_map tool | |
| palette | No | One PyMOL colour per breakpoint. Defaults to blue (best) through red (worst). | |
| res_obj | Yes | A local-resolution volume (values in Ångström), loaded through the load_map tool | |
| ramp_name | No | Ramp object name (defaults to "<res_obj>_ramp") | |
| selection | No | Restrict the surface to a carve around this PyMOL selection | |
| validate_only | No | Run the grid check and report, creating nothing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |