tagPairDist
index


TagPairDist- A class used for computing a pairwise distance distribution
arising from a pair of sidechain rotamer tags. This is used in the
deerPot and tagPairPot modules.
 
Constructor:
 
  TagPairDist(tagEnvironment,
              rVals,
              atomSel1,
              atomSel2)
 
    tagEnvironment is a TagEnvironment object (described below), rVals
    is a sequence of distance values (in Angstroms) to compute a Pr(r).
    atomSel1 and atomSel2 define two sets of tag rotamers between which
    the Pr is computed.
 
Members
 
 comment   - optional comment string.
 tagRadii1 - arrays containing radii for each rotamer corresponding to atoms
 tagRadii2   in atomSel1 and atomSel2.
 
Methods
 
  iWeights1()/setIWeights1(val) - return/set the intrinsic weights of 
  iWeights2()/setIWeights2(val) - each rotamer in the two tags.
 
  distanceWeights1() - return the weights computed from overlap of tag atom 
  distanceWeights2()   identified in atomSel1/2 with tagEnvironment's
                       nonTagSel.
 
    distanceWeight for each tag atom is the product of
 
       w_d = 1 * w_1 * w_2 *  ... w_N
 
    where N = min(env.numClosestAtoms,num neighbors).
    The weight w_i corresponding to overlap between the tag atom and
    neighbor i is given by a piecewise continuous function depending
    on distance d_i = |q_tag - q_i|:
 
           / L(d_i-r_tag-r_i) , for d_i < r_tag+r_i
    w_i = |  P(d_i-r_tag-r_i) , for d_i >= r_tag+r_i,
          |                         d_i < r_tag+r_i+r_c
           \ 1                , for d_i >= r_tag+r_i+r_c
 
    where r_i is the radius of neighbor i and r_tag is the tag radius,
    r_c is distanceSigmoidWidth, L(r) the logistic curve, and P(r) a
    fifth order polynomial:
 
       L(r) = (1 + exp(-A_c r))^(-1) 
       P(r) = (1.+r*(1/5*r^4 -2/3*r_c^2*r^2 + r_c^4)/N_P) / 2 
 
    with A_c = 15/4/r_c, and N_P = 8/15*r_c^5.
 
 
  removeTagAtoms1(sel)  - remove the atoms in atomSel1 as specified in the
                          atomSel.AtomSel sel argument.
  removeTagAtoms2(sel)  - remove the atoms in atomSel2 as specified in the
                          atomSel.AtomSel sel argument.
 
  tagEnv() - return the TagEnvironment object.
 
  pairDist()  - the pairDist.PairDist object used to compute the Pr(r).
                The weights used in pairDist's computation of Pr(r) are
                (normalized) values of iWeights1 * distanceWeights1 and
                iWeights2 * distanceWeights2.
 
      Associated short-cut methods, returning methods from pairDist():
   
         rVals()    - return the r,Pr values associated with
         Pr()       - the distance probability distribution.
         atomSel1() - AtomSel objects describing the two sets of rotamers.
         atomSel2() 
 
  
class TagEnvironment describes rotamer tags and the environment with which
they interact. This class is instantiated in deerPot.DEERPot and
tagPairPot.TagPairPot.
 
Members:
 
  radii - array of radii, one for each atom in simulation()
 
Methods:
 
  nonTagSelection() - return atomSel.AtomSel corresponding to the
                      nonTagSel argument given when the object was created.
  printNeighborList() - print neighbors of all tagAtoms. These neighbors will
                        be come from nonTagSelection, specified 
 
  rValues(minR=-1,    - return an array of distances starting at minR, ending
          maxR=-1,      at maxR, with spacing of deltaR. If a negative value
          deltaR=-1)    is given, the object default values (below) are used.
                                      
 
  maxRadius()         - the maximum of tagRadii and radii
 
  simulation()        - the simulation.Simulation of nonTagSelection()
 
  addTagAtoms(sel)    - add the atoms specified as a atomSel.AtomSel in
                        the argument as tag atoms. This requries that
                        setTagRadii has been called previously for all atom
                        in sel.
  tagAtoms()          - return a list of all atoms added via addTagAtoms().
 
  setRadii(radii)       - set radii, one for each atom in simulation()
 
  setTagRadii(resname,  - set the radius for one tag atom specified by residue
              atomName,   name resname and atomName to val.
              val)
 
  tagRadius(resname,   - return the the radius set for the atom specified by
            atomName)    resname and AtomName.
 
Accessors:
 
 The quantities below may be retrieved using the member function form
 quantity(), while they are set using the form setQuantity(value).
 
  moveTol              - threshold triggering regeneration of neighbors of
                         tagAtoms: if any atom moves more (in Agstroms) than
                         moveTol, neighbors are recomputed.
  distanceSigmoidWidth - width used to control how quickly distance weights
                         change from 1 to 0 when there is overlap between
                         tagAtom and nonTagSelection [3 Angstrom].
  absoluteWeights - force all product weights to be positive [True].
  numClosestAtoms - number of atoms to use in computation of distance
                    weight [3].
  minR            - default values (in Angstroms) for [15]
  maxR              creation of                       [100]
  deltaR            the distance array.               [0.5]
  verbose         - toggle verbose output [False]
 
Static Functions:
 
  distanceWeight(dist,                - return the distance weight function
                 radius1,               with the given parameters
                 radius2,
                 distanceSigmoidWidth) 
 
  d_distanceWeight(dist,                - return the derivative of the
                  radius1,                distanceWeight function.
                  radius2,
                  distanceSigmoidWidth) 
 
 
 
# 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
       
builtins.object
CDSList_CDSList_int
Modified
ModifiedBase
TagEnvironment
TagPairDist

 
class CDSList_CDSList_int(builtins.object)
    CDSList_CDSList_int(*args)
 

 
  Methods defined here:
__delitem__(self, *args, **kwargs) -> 'void'
__getitem__(self, *args) -> 'CDSList< CDSList< int > >'
__getslice__(self, *args, **kwargs) -> 'CDSList< CDSList< int > >'
__init__(self, *args)
Initialize self.  See help(type(self)) for accurate signature.
__len__(self, *args, **kwargs) -> 'int'
__repr__ = _swig_repr(self)
__setitem__(self, *args, **kwargs) -> 'void'
append(self, *args, **kwargs) -> 'void'
help(self, *args, **kwargs) -> 'String'
remove(self, *args, **kwargs) -> 'void'
removeAll(self, *args, **kwargs) -> 'void'

Static methods defined here:
__swig_destroy__ = delete_CDSList_CDSList_int(...)

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

 
list of weak references to the object (if defined)
thisown

 
The membership flag

 
class Modified(builtins.object)
    Modified(*args, **kwargs)
 

 
  Methods defined here:
__call__(self, *args, **kwargs) -> 'int'
Call self as a function.
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
asString(self, *args, **kwargs) -> 'String'
clear(self, *args, **kwargs) -> 'void'
set(self, *args, **kwargs) -> 'void'
update(self, *args, **kwargs) -> 'void'
value(self, *args, **kwargs) -> 'int'

Static methods defined here:
__swig_destroy__ = delete_Modified(...)

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

 
list of weak references to the object (if defined)
thisown

 
The membership flag

Data and other attributes defined here:
MOD_SELF = 1
MOD_SIMULATION = 2

 
class ModifiedBase(builtins.object)
    ModifiedBase(*args, **kwargs)
 

 
  Methods defined here:
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
registerTo(self, *args, **kwargs) -> 'void'
unRegister(self, *args, **kwargs) -> 'void'
updateValues(self, *args, **kwargs) -> 'void'

Static methods defined here:
__swig_destroy__ = delete_ModifiedBase(...)

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

 
list of weak references to the object (if defined)
modified

 
registeredSimulations

 
thisown

 
The membership flag

 
class TagEnvironment(builtins.object)
    TagEnvironment(*args, **kwargs)
 

 
  Methods defined here:
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
absoluteWeights(self, *args, **kwargs) -> 'bool const'
addTagAtoms(self, *args, **kwargs) -> 'void'
deltaR(self, *args, **kwargs) -> 'float_type const'
distanceSigmoidWidth(self, *args, **kwargs) -> 'float_type const'
maxR(self, *args, **kwargs) -> 'float_type const'
maxRadius(self, *args, **kwargs) -> 'float_type'
maybeUpdateNeighborList(self, *args, **kwargs) -> 'void'
minR(self, *args, **kwargs) -> 'float_type const'
moveTol(self, *args, **kwargs) -> 'float_type const'
nonTagSelection(self, *args, **kwargs) -> 'AtomSel const &'
numClosestAtoms(self, *args, **kwargs) -> 'int const'
printNeighborList(self, *args, **kwargs) -> 'void'
rValues(self, *args, **kwargs) -> 'CDSVector< float_type >'
resize(self, *args, **kwargs) -> 'void'
setAbsoluteWeights(self, *args, **kwargs) -> 'void'
setDeltaR(self, *args, **kwargs) -> 'void'
setDistanceSigmoidWidth(self, *args, **kwargs) -> 'void'
setMaxR(self, *args, **kwargs) -> 'void'
setMinR(self, *args, **kwargs) -> 'void'
setMoveTol(self, *args, **kwargs) -> 'void'
setNumClosestAtoms(self, *args, **kwargs) -> 'void'
setRadii(self, *args, **kwargs) -> 'void'
setTagRadii(self, *args, **kwargs) -> 'void'
setVerbose(self, *args, **kwargs) -> 'void'
simulation(self, *args, **kwargs) -> 'Simulation const *'
tagAtoms(self, *args, **kwargs) -> 'CDSList< Atom >'
tagRadius(self, *args, **kwargs) -> 'float_type'
updateNeighborList(self, *args, **kwargs) -> 'void'
verbose(self, *args, **kwargs) -> 'bool const'

Static methods defined here:
__swig_destroy__ = delete_TagEnvironment(...)

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

 
list of weak references to the object (if defined)
radii

 
thisown

 
The membership flag

 
class TagPairDist(builtins.object)
    TagPairDist(*args, **kwargs)
 

 
  Methods defined here:
Pr(self, *args, **kwargs) -> 'CDSVector< float_type >'
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
atomSel1(self, *args, **kwargs) -> 'AtomSel const &'
atomSel2(self, *args, **kwargs) -> 'AtomSel const &'
distanceWeights1(self, *args, **kwargs) -> 'CDSVector< float_type >'
distanceWeights2(self, *args, **kwargs) -> 'CDSVector< float_type >'
iWeights1(self, *args, **kwargs) -> 'CDSVector< float_type >'
iWeights2(self, *args, **kwargs) -> 'CDSVector< float_type >'
pairDist(self, *args, **kwargs) -> 'PairDist &'
rVals(self, *args, **kwargs) -> 'CDSVector< float_type > const &'
removeTagAtoms1(self, *args, **kwargs) -> 'void'
removeTagAtoms2(self, *args, **kwargs) -> 'void'
setIWeights1(self, *args, **kwargs) -> 'void'
setIWeights2(self, *args, **kwargs) -> 'void'
tagEnv(self, *args, **kwargs) -> 'TagEnvironment const &'
update(self, *args, **kwargs) -> 'void'
updateDistanceWeights(self, *args, **kwargs) -> 'void'

Static methods defined here:
__swig_destroy__ = delete_TagPairDist(...)
d_distanceWeight(*args, **kwargs) -> 'float_type'
distanceWeight(*args, **kwargs) -> 'float_type'

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

 
list of weak references to the object (if defined)
closestAtomIndices1

 
closestAtomIndices2

 
comment

 
d_dw1

 
d_dw2

 
distanceWeights1_

 
distanceWeights2_

 
iWeights1_

 
iWeights2_

 
sortedDWeights1

 
sortedDWeights2

 
tagRadii1

 
tagRadii2

 
thisown

 
The membership flag

 
Functions
       
TagPairDist_d_distanceWeight(*args, **kwargs) -> 'float_type'
TagPairDist_distanceWeight(*args, **kwargs) -> 'float_type'
pyXplorHelp(*args) -> 'String'