Energy that drives the structure to match an input-provided template. The difference with the template is always calculated by automatically considering the rotation and translation that best maximize the overlap with the template.
The template match energy measures the structural deviation from a reference template. It supports two modes:RMSD mode (default, distogram_separation=False):ERMSD=RMSD(XG,Xtemplate)Distogram mode (distogram_separation=True):Edistogram=Npairs1α,β∈G∑dαβ−dαβtemplate
XG are the atom positions of the selected residues after optimal superposition
Xtemplate are the template atom positions
dαβ and dαβtemplate are pairwise distances in the structure and template, respectively
Whether structure - template separation is measured by taking the root mean square of the difference between the two pairwise distance matrices. By default, the root mean square of the difference in positions is used instead.