Score Terms#

TMol score functions combine weighted tmol.ScoreType values. A tmol.ScoreFunction activates the energy term implementation associated with each non-zero weight, then renders a whole-pose, block-pair, or rotamer scoring module for a particular tmol.PoseStack.

Score-type map#

Score types

Energy-term class

Quantity represented

fa_ljatr, fa_ljrep, fa_lk

LJLKEnergyTerm

Attractive and repulsive Lennard-Jones interactions and isotropic Lazaridis-Karplus solvation.

fa_elec

ElecEnergyTerm

Distance-dependent full-atom electrostatics.

hbond

HBondEnergyTerm

Orientation-dependent hydrogen-bond interactions.

cart_lengths, cart_angles, cart_torsions, cart_impropers, cart_hxltorsions

CartBondedEnergyTerm

Bonded geometry used by Cartesian scoring and minimization.

constraint

ConstraintEnergyTerm

Harmonic distance, bounded distance, harmonic coordinate, and circular-harmonic torsion constraints attached through tmol.ConstraintSet.

disulfide

DisulfideEnergyTerm

Geometry of disulfide-linked cysteine pairs.

omega, rama

BackboneTorsionEnergyTerm

Backbone-dependent peptide omega and Ramachandran torsion preferences.

dunbrack_rot, dunbrack_rotdev, dunbrack_semirot

DunbrackEnergyTerm

Backbone-dependent amino-acid rotamer probabilities and deviations.

lk_ball_iso, lk_ball, lk_bridge, lk_bridge_uncpl

LKBallEnergyTerm

Directional water-mediated solvation and bridging terms.

ref

RefEnergyTerm

Per-residue-type reference energies.

gen_torsions

GenBondedEnergyTerm

Generic bonded torsions, including ligand torsional parameters.

na_torsion, na_torsion_well

NaTorsionEnergyTerm

DNA/RNA backbone, glycosidic-chi, sugar, coupling, and rotamer-well preferences with polymer-specific parameters.

ScoreType.n_score_types is a terminal size sentinel used for weight-vector allocation; it is not a score component.

Non-bonded and solvation terms#

class tmol.score.LJLKEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: AtomTypeDependentTerm, BondDependentTerm

class tmol.score.ElecEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: AtomTypeDependentTerm, BondDependentTerm

class tmol.score.HBondEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: AtomTypeDependentTerm, HBondDependentTerm

class tmol.score.LKBallEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: AtomTypeDependentTerm, HBondDependentTerm

Bonded, torsional, and reference terms#

class tmol.score.CartBondedEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: AtomTypeDependentTerm

class tmol.score.GenBondedEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: AtomTypeDependentTerm

class tmol.score.DisulfideEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: EnergyTerm

class tmol.score.BackboneTorsionEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: EnergyTerm

class tmol.score.DunbrackEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: EnergyTerm

class tmol.score.RefEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: EnergyTerm

Nucleic-acid term#

class tmol.score.NaTorsionEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: EnergyTerm

Score nucleic-acid backbone, sugar-pucker, and glycosidic torsions.

The tmol.score.na_torsion package exports the sugar-pucker helpers and fitted-model constants below for lower-level analysis and extension work.

Nucleic-acid torsion parameter resolution and scoring.

tmol.score.na_torsion.pucker_weights(ring, temperature)[source]#

Soft distribution over the 10 sugar pucker states.

ring: (…, 5, 3) ring coordinates in cyclic order, heteroatom last.

Walks the 5 cyclic rotations of the ring. Within each, dot measures how planar the leading four atoms are and exxo which face the fifth sits on. Softmax over -dot picks the apex; a sigmoid on exxo splits endo from exo.

tmol.score.na_torsion.sugar_ring_atoms(block_type, element_for_atom_type)[source]#

Ordered sugar ring, derived from the nu torsions rather than named.

nu0 and nu1 each span four consecutive ring atoms offset by one, so together they give the whole cycle in order. The pucker slot arithmetic is defined relative to a cycle ending on the ring heteroatom, so rotate to put it last.

Constraints#

class tmol.score.ConstraintEnergyTerm(param_db: ParameterDatabase, device: device)[source]#

Bases: EnergyTerm

Score coordinate and geometric constraints attached to a pose stack.

tmol.score.constrain_all_ca(pose_stack: PoseStack) → PoseStack[source]#

Add coordinate constraints at every available protein CA atom.

tmol.score.create_mainchain_coordinate_constraints(pose_stack: PoseStack) → PoseStack[source]#

Add coordinate constraints for every declared polymer main-chain atom.

Score-term construction#

tmol.score.ScoreTermFactory constructs the energy term associated with each score type. Most applications should configure a tmol.ScoreFunction rather than use the factory directly.

class tmol.score.ScoreTermFactory[source]#

Bases: object

Factory for the creation of EnergyTerms

This class uses import-time factory registration to discover the set of TermCreators that live in the same directory as it. To register a new TermCreator, simply put the term creator in this directory.

Was this page helpful?

Was this page helpful?