Algorithm 28 of the Supplementary Information to Jumper et al. (2021), p. 34. Every predicted atom is expressed in the local frame of every predicted residue, the same is done for the ground truth, and the two clouds are compared pointwise. Scoring each atom under every frame makes the loss sensitive to global arrangement as well as local geometry, and needs no superposition; it also distinguishes mirror images (supplement eq. 16-17).
Arguments
- frames_pred, frames_true
Lists of frames, each
list(R, t).- x, x_true
Matrices of atom positions,
natoms x 3.- Z
Length scale, 10 angstrom in the spec.
- dclamp
Distance clamp, 10 angstrom in the spec.
- eps
Added under the square root of line 3. It makes a perfect prediction score
sqrt(eps) / Zrather than exactly zero; passeps = 0for the unregularised form.
