Three things wrong with the PDB/mmCIF a refinement wrote:
- A LINK record read with the model was written back whatever the atoms
do in the refined model. The records are never restraints here (a record
the dictionary has no link for is ignored by prepare_topology, and the
bond count with and without them is the same), but the next program
takes each as a bond: phenix.refine made four "custom bonds" of a placed
model's clashes between NCS copies and wrote them as LINKs at 0.7 A, and
rugnux carried them on to its output at 4-5 A. A record whose two atoms
are farther than 3.5 A apart in the model written (longer than any bond,
a metal's included) is now left out, with a log line; hydrogen-bond
records stay. This also drops a metal's outer-sphere records that
AddMetalLinks refused as bonds, which otherwise reach the next program
as bonds.
- A HELIX record's blank length (columns 72-76) was read as 0 by the
vendored gemmi PDB reader and written back as 0, which
phenix.model_vs_data refuses ("Bad helix length"). Blank now stays
"not given" (-1), as Helix::length means it, and is written blank.
- The REMARK 3 TLS block was inserted before CRYST1, i.e. after HELIX and
LINK; it now follows the title section, where the format has it.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UqXYdJDrM65gxsCn2PrbfK