Status: Accepted. Extends 0017 (shares its meshing and overlay rendering) and 0007; reuses the spatial grid of 0009.
Cryo-EM structures are deposited as a density map (EMDB) plus a model fitted into it (PDB). Checking a model against its map is a core cryo-EM task and JMVS could not show maps at all (roadmap slice 14). The target: an EM map and its fitted model shown together, with a contour level the user can adjust interactively. Slice 11 already meshes a scalar field on a grid with surface nets and draws an overlay, opaque or transparent.
core.io.MrcMapReader, core.map.DensityMap): MRC2014 and CCP4 maps (.map, .mrc, .ccp4,
optionally gzipped), as served by EMDB. Byte order from the machine stamp, else guessed from the header; data modes
0, 1, 2, 6 and 12; MAPC/MAPR/MAPS axis order; extended header skipped; origin from the MRC2014 ORIGIN field when
set, else start indices × voxel size; oblique cells via the usual fractional-to-Cartesian matrix. Statistics (min,
max, mean, rms) are computed rather than read from the header, which is often stale. Errors are a typed
MapReadException (0011).density.maxVoxels (32 million, 128 MB of floats) are binned while reading by averaging
b³ blocks, with the smallest b that fits; the origin moves to the first block’s centre.SurfaceNets, Grid and the 16-bit chunking move to a public
scene.mesh package. SurfaceNets.extract takes a level and which side is inside, so a map is meshed in place in
grid-index space without copying it per level; vertices and normals (by the inverse transpose) are then moved to
Cartesian space. Chunks keep each quad’s two triangles together, so the mesh style draws the quad outlines
(GL_LINES, no diagonals) from the same vertices; the surface style draws the triangles. Switching style re-uploads
indices only.mean + 2.5σ (density.sigma), where σ is the map’s rms. On the sample EMD-3488 this is 0.094,
close to the depositors’ recommended 0.09; levels are shown both absolute and in σ. --contour takes either.[ / ] (0.1σ, Shift for
0.5σ) and the Map menu. Each change starts a background build; a generation counter cancels superseded builds
between slabs, and the previous contour stays shown until the new one is ready, so dragging stays smooth.density.zoneRadius (3 Å), found with SpatialGrid; other vertices use density.colour (grey). The vertex atom
-1 (Isosurface.NO_ATOM) means “map colour”, so every colour scheme applies and recolouring never rebuilds
geometry. When another structure opens the contour’s geometry is reused: it is shown in the map colour at once, then
re-zoned in the background.--map).