Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Official government website icon

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

icon-https

Secure .gov websites use HTTPS
A lock ( Lock Locked padlock icon )or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

NIH: National Institute of Diabetes and Digestive and Kidney Diseases NIH: National Institute of Diabetes and Digestive and Kidney Diseases
bit Xplor-NIH VMD-XPLOR
Pydoc: module atomProb
 
atomProb
index

represent ensemble of structures as a density map.
 
See 
   C.D. Schwieters and G.M. Clore, ``G.M. Reweighted atomic densities 
   to represent ensembles of NMR structures,'' J. Biomol. NMR 23, 221-225
   (2002).
 
 
constructor:
  AtomProb(atomSel,
           atomPosList) - 
    atomSel is a string or atomSel.AtomSel
    atomPosList is a list of atomic coordinates for the structures which
      will make up the map. If it is omitted, coordinates will be take from
      the coordinates assocated with the atomSel argument.
 
 
methods:
  calc()             - calculate density map
  writeEDM(filename) - write map to specified file in xplor edm format
 
  getGrid()            - return the densityGrid.DensityGrid object
                         corresponding to the current coordinates and
                         settings - generated by calc().
  getGridRaw()         - same as above, but immediately returns the
                         DensityGrid object without first updating.
  selection()          - return atomSel given during construction.
  setAtomRadius(val)   - set default atomic radius
  calc()               - compute atomic probability 
 
  calcGradient(derivList,  - given a derivList.DerivList, and dFdRho_ijk,
               dFdRho    )   compute the gradient of dFdq_l
  radiusGradient(dFdRho)   - return a vector with the value of dFdr_l,
                             given dFdRho_ijk.
accessor pairs:
  
  verbose        - boolean
  radii          - vector of atomic radii- one per atom in selection's
                   simulation. Default value is 1 Angstrom.
  atomWeights    - vector of per-atom weights- one per atom in selection's
                   simulation, and distinct from the weights member for
                   per-structure weights. This defaults to 1,
  generateGrid   - boolean. If true, calc() will regenerate the grid
                   extent based on the gridVals member.
  distType      - one of "quartic","gaussian"
  scaleType    - one of "amplitude", "distribution", "normalize",
                 "flat", "volume" or "off". This specifies the normalization
                 of an atom's contribution to the distribution:
                     off and flat  -specify that no normalization be applied:
                                    for each atom contribution in the
                                    supplied atomPosList array a normalized
                                    distribution will be contributed to the
                                    grid. This corresponds to ρeven  below.
                     amplitude     -contribution from each atom will be
                                    normalized by the maximum contribution
                                    from that atom.
                     normalize     -same as amplitude, but the prefactor
                                    is divided by an additional
                                    factor proportional to volume.
                     volume        -a normalized distribution is multiplied
                                    by the associated volume. With this
                                    scaleType, all atoms contribute constant
                                    density.
                     distribution  - FIX: ??
                     
  weights        - a list of per structure weights which must be
                              the same length as atomPosList. These weights
                              are normalized.
  isProjection   - if True, generate a 2D projection in a map which has znum=1.
  mapType        - one of "density", "projection", or "height"
                   [default: "density"]
 
  translation    - translation vector t  for centering a projection.
  orientation    - Rotation matrix R  defining orientation for projection.
                   This transformation is given by:
 
                     q → R(q − qc) + qc + t
 
                   where qc  is the selection centroid:
 
                     qc = 1 ⁄ Ns∑iqi
 
                   where Ns  is the number of atoms in the selection.
 
  qc             - center of rotation. The defaults to the average position
                   of atomSel.
  centroidSel    - selection used to define qc.
 
  mapResolution  - resolution (Gaussian width) of the experimental map which
                   is fit to, used for Gaussian blurring. This is
                   currently only used by AtomProbProjections, and
                   defaults to 0 (no blurring).
 
  mask - an optional atomProbMask.AtomProbMask object to mask the map
         computed by atomProb(). Using the accessor setMask has the
         side-effect that centroidSel is reset to mask.molPlaneSel.
 
 
members:
 
  gridVals    - a densityGrid.DensityGrid_Params object used to
                generate grid extents if generateGrid is True.
 
  d_dt        - for projections and height maps, after calcGradient is
                called, this is filled with the gradient with respect to the
                translation vector.
 
  d_dR        - for projections and height maps, after calcGradient is called,
                this is filled with the gradient with respect to the
                orientation matrix.
 
 
 
<string>

The evenly-weighted atom density at point q is defined as

ρeven(q) = (1)/(Ns)Ns∑k = 1Na∑l = 1ρa(q − qkl), 

where Ns is the number of structures in the ensemble, Na the number of atoms in each structure, qkl the position (after application of rotation R and translation t) of atom l in structure k. ρa(q) is a normalized distribution for a single atom. By default this density is a piecewise function, whose nonzero region is a quartic polynomial:

ρa(q) = ⎧⎨⎩ (105)/(32πa7)(| q|2 − a2)2,   for |q| < a     0,   otherwise , 

where a[1 − √(2) ⁄ 2]1 ⁄ 2 is the distance at which the density is one-half its maximum value. This distance is given by the radii() method.

For "amplitude" scaleType, the density is reweighted such that the maximum is the same for each atom:

ρamp(q) = (1)/(Ns)Na∑l = 1wlNs∑k = 1ρa(q − qkl), 

where

1 ⁄ wl = max ∑kρa(q − qkl).

 
 
 
 
# 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
AtomProb
CDSList_AtomSel

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

 
  Methods defined here:
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
atomRadius(self, *args, **kwargs) -> 'double'
atomWeights(self, *args, **kwargs) -> 'CDSVector< float_type > const'
calc(self, *args, **kwargs) -> 'void'
calcGradient(self, *args, **kwargs) -> 'void'
centroidSel(self, *args, **kwargs) -> 'AtomSel const'
copyGrid(self, *args, **kwargs) -> 'void'
d_dR_maskRotDerivs(self, *args, **kwargs) -> 'Mat3'
distType(self, *args, **kwargs) -> 'AtomProb::DistType'
generateGrid(self, *args, **kwargs) -> 'bool const'
getGrid(self, *args, **kwargs) -> 'DensityGrid *'
getGridRaw(self, *args, **kwargs) -> 'DensityGrid *'
gridParams(self, *args, **kwargs) -> 'DensityGrid_Params const'
info(self, *args, **kwargs) -> 'String'
mapResolution(self, *args, **kwargs) -> 'float_type const'
mapType(self, *args, **kwargs) -> 'AtomProb::MapType'
mask(self, *args, **kwargs) -> 'AtomProbMask *'
modified(self, *args, **kwargs) -> 'bool'
orientation(self, *args, **kwargs) -> 'Mat3 const'
pyXplorHelp(self, *args, **kwargs) -> 'String'
qc(self, *args, **kwargs) -> 'Vec3 const'
radii(self, *args, **kwargs) -> 'CDSVector< float_type > const'
radiusGradient(self, *args, **kwargs) -> 'CDSVector< float_type >'
scaleType(self, *args, **kwargs) -> 'AtomProb::ScaleType'
selection(self, *args, **kwargs) -> 'AtomSel'
setAtomRadius(self, *args, **kwargs) -> 'void'
setAtomWeights(self, *args, **kwargs) -> 'void'
setCentroidSel(self, *args, **kwargs) -> 'void'
setDistType(self, *args, **kwargs) -> 'void'
setGenerateGrid(self, *args, **kwargs) -> 'void'
setGridParams(self, *args, **kwargs) -> 'void'
setIsProjection(s, isProjection)
backwards compatibility
setMapResolution(self, *args, **kwargs) -> 'void'
setMapType(self, *args, **kwargs) -> 'void'
setMask(self, *args, **kwargs) -> 'void'
setOrientation(self, *args, **kwargs) -> 'void'
setQc(self, *args, **kwargs) -> 'void'
setRadii(self, *args, **kwargs) -> 'void'
setScaleType(self, *args, **kwargs) -> 'void'
setTranslation(self, *args, **kwargs) -> 'void'
setUseMaskFrame(self, *args, **kwargs) -> 'void'
setVerbose(self, *args, **kwargs) -> 'void'
setWeights(self, *args, **kwargs) -> 'void'
translation(self, *args, **kwargs) -> 'Vec3 const'
updateValues(self, *args, **kwargs) -> 'void'
useMaskFrame(self, *args, **kwargs) -> 'bool const'
val(self, *args, **kwargs) -> 'double'
verbose(self, *args, **kwargs) -> 'bool const'
weights(self, *args, **kwargs) -> 'CDSVector< float_type >'
writeEDM(self, *args, **kwargs) -> 'void'

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

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

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

 
d_dt

 
thisown

 
The membership flag

Data and other attributes defined here:
AMPLITUDE = 0
DENSITY = 0
DISTRIBUTION = 1
FLAT = 3
GAUSSIAN = 1
HEIGHT = 2
NORMALIZE = 2
OFF = 4
PROJECTION = 1
QUARTIC = 0
QUARTICSPREAD = 2
VOLUME = 5

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

 
  Methods defined here:
__delitem__(self, *args, **kwargs) -> 'void'
__getitem__(self, *args) -> 'CDSList< AtomSel >'
__getslice__(self, *args, **kwargs) -> 'CDSList< AtomSel >'
__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_AtomSel(...)

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

 
Functions
       
pyXplorHelp(*args) -> 'String'

 
Data
        __CDSVector_hh__ = 1
  • Privacy Policy
  • Freedom of Information Act
  • Accessibility
  • Disclaimers
  • Copyright
  • Vulnerability Disclosure Policy
  • U.S. Department of Health and Human Services
  • National Institutes of Health