torchref.refinement.targets.geometry.ramachandran module
- class torchref.refinement.targets.geometry.ramachandran.RamachandranTarget(model=None, verbose=0)[source]
Bases:
GeometryTargetRamachandran restraint via pre-computed NLL surfaces.
Uses 6 residue-type-dependent NLL surfaces (general, glycine, cis-proline, trans-proline, pre-proline, ile/val) at 1-degree resolution. The loss is computed by bilinear interpolation of the NLL surface at the current (phi, psi) angles.
The surfaces store NLL = -log P(phi, psi | residue_type), so favored regions have low values and outlier regions have high values — consistent with all other geometry targets.