| tagPairPot |
index |
TagPairPot is an energy term consisting of restraints to one or more
target distance distributions corresponding to distances between two tags
represented by weighted sidechain rotamers.
One normally creates TagPairPot objects using the create_TagPairPot
function within the tagPairPotTools module.
Constructor:
tagPairPot(instanceName,
nonTagSel)
instanceName is a user-specified identifier. The nonTagSel argument
is a string or atomSel.AtomSel object specifying atoms which are
not paramagnetic tags, but which should be considered in the computation
of tag weight due to overlap.
methods:
calcEnergy() - calc energy, returns the energy value-
the scaled sum of restraint energies.
calcEnergyAndDerivs(derivs) - calc energy, derivs, returns the energy value.
numRestraints() - return the number of restraints defined for
this term.
clearRestraints() - remove all restraints.
restraints() - return a sequence of restraints. See the
description of the Restraint class below.
Restraint properties can thus be modified.
violations() - return number of violations
simulation() - return the associated simulation.Simulation.
nonTagSelection() - return atomSel.AtomSel corresponding to the
nonTagSel argument given when the object was created.
tagEnv() - return the associated tagPairDist.TagEnvironment
object.
addRestraint(rVals, - add one restraint with distance and target
atomSel1, P(r) specified in the rVals and PrObs
atomSel2, arrays, respectively. The pair of tags giving
weight1, rise to this trace is given by atomSel1 and
weight2, atomSel2 as strings or atomSel.AtomSel
PrObs, objects. Arrays weight1 and weight2 specify
comment="") rotamer intrinsic weights for each selection in
atomSel1 and atomSel2, resepectively, and must
be of the appropriate length. An optional
comment may be specified.
removeTagAtoms1(sel) - remove the atoms in atomSel1 in all restraints as
specified in the atomSel.AtomSel sel argument.
removeTagAtoms2(sel) - remove the atoms in atomSel2 in all restraints as
specified in the atomSel.AtomSel sel argument.
accessors:
The quantities below may be retrieved using the member function form
quantity(), while they are set using the form setQuantity(value).
targetType - specifies one of "correlation" or "difference", and
controls the form of the energy function. ["correlation"]
verbose - boolean controlling verbose output. [False]
aWeights1 - these specify optional aWeights.AWeights objects
aWeights2 used to vary and optimize the per-rotamer intrinsic weights
used for all restraints. If these are not set, then rotamer
weights are not varied.
scale - energy scale factor (force constant) applied to all
restraints [1].
The Restraint class - returned by TagPairPot's restraints() method
Members:
pot - the associated instance of DEERPot
comment - return comment given in DEERPot.addRestraint(), if any.
Accessors:
The quantities below may be retrieved using the member function form
quantity(), while they are set using the form setQuantity(value).
scale() - per-restraint energy scale. [1]
Methods:
PrObs() - the target value of Pr(r), specified at construction time.
correlation() - the correlation between observed and computed Pr(r);
corr = \sum_i (Pr_i - avePr) x (PrObs_i - avePrObs) /
[\sum_i (Pr_i-avePr)^2 \sum_i (PrObs_i-avePrObs)^2]
energy() - return restraint energy. For targetType="correlation", this
is
E = scale * (1.0 - corr)
For targetType="difference"
E = 0.5 * scale * \sum_i (Pr_i-PrObs_i)^2
tagPairDist() - return the associated tagPairDist.TagPairDist
object describing the distance distribution arising from
the pair of tag ensembles.
Associated short-cut methods, returning methods from tagPairDist():
rVals() - return the r,Pr values associated with
Pr() - the distance probability distribution computed from
atomic coordinates.
iWeights1()/setIWeights1(val) - return/set the intrinsic weights of
iWeights2()/setIWeights2(val) each rotamer in the two tags.
pairDist() - return tagPairDist's
pairDist.PairDist object.
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||
| ||