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 atomProbMask
 
atomProbMask
index


The AtomProbMask Class
 
  The mask contains a mask image and an optional definition of rotation matrices to place a molecule in the appropriate reference from for the mask.
 
<string>

Before a projection is computed the molcular coordinate are rotated into the appropriate frame using the rotation R:

R = RpseudoRorientRmask

where Rpseudo is the rotation matrix associated with pseudo-atoms, Rmask is the rotation matrix defined by atomic selections used to place the system into a defining reference frame, and Rorient is a user defined rotation (mapOrientation below) used to rotate from the defining reference frame to the mask frame.


 
 
Constructor:
 
    AtomProbMask(grid,
                 molOrientationSels,
                 molPlaneSel,
                 molCenterSel,
                 zDirSels,
                 mapCenter,
                 mapOrientation)
 
      grid               - a densityGrid.DensityGrid object containing 
                           the mask image.
      molOrientationSels - a sequence of two atomSel.AtomSel
                           objects which specify map direction (within the
                           map plane).
      zDirSels           - a sequence of two atomSel.AtomSel used to
                           disambiguate the sign of the plane normal vector.
      molPlaneSel        - an atomSel.AtomSel specifying atoms defining
                           the mask plane.
      molCenterSel       - selection specifying the molecular center of
                           rotation. 
      mapCenter          - a vec3.Vec3 specifying the mask center.
      mapOrientation     - a mat3.Mat3 specifying the mask orientation.
      
 
Read-only Accessors:
 
  These methods return values specified in the constructor:
    grid()
    molOrientationSels()
    molPlaneSel()
    zDirSels()
    mapCenter()
    mapOrientation()
 
  One of these values can be modified after mask creation:
 
    setZDirSels( val )
 
 
  The following accessors return computed values:
    molPlaneCentroid() - centroid of molPlaneSel
    molPlanePos()      - molPlaneSel's coordinates after subtraction by
                         molPlaneCentroid
    planeVals()        - eigenvalues of matrix molPlanePos molPlanePos^T
    planeVecs()        - corresponding eigenvectors.
    zDir()             - direction of zDirSels[1] - zDirSels[0]
    normal()           - normal to plane (eigenvector corresponding to the
                         smallest eigenvalue) with sign corrected s.t.
                         dot(zDir, normal) > 1.
 
    maskRot() - the rotation matrix formed by
                    / u0^T \
           maskR = |  u1^T |
                    \ n^T  /
 
           where n is normal()
           u0 = unitVec(molOrientation - dot(molOrientation,u2) u2)
           u1 = unitVec( u2 X u0 )
    normal    - plane normal direction.
    zRef      - vector defining the positive z direction of the
                plane normal. i.e. the sign of normal is chosen
                s.t. dot(zRef, normal) > 0.
 
    molCenterSel()- return rotation center selection
    molCenterAve()- return rotation center position.
 
  Methods:
 
   swapZdir() - swap zDirSels selections, to reverse the sign of the plane
                normal.
 
   update()  - compute all derived quantities.  If molOrientationSels
               contains an empty AtomSel, mapCenter and
               molPlaneCentroid are set to the origin and maskR is set
               to the dentity matrix.
 
   apply(data,
         R,t      ) - Mask data given orientation R and translation t,
                      which default to the identity matrix and zero vector,
                      respectively. No value is returned, but the passed 
                      grid is modified (masked). This involves interpolation of
                      the mask.
 
   applyInFrame(data) - apply massk to data in the mask frame. 
   
   placeInFrame(atomProb) - update the orientation and translation of
                            the passed atomProb.AtomProb object to be
                            in the mask frame.
 
 
 
 
 
# 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
AtomProbMask
Pair_AtomSel

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

 
  Methods defined here:
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
apply(self, *args, **kwargs) -> 'void'
derivs(self, *args, **kwargs) -> 'void'
grid(self, *args, **kwargs) -> 'DensityGrid const &'
isValid(self, *args, **kwargs) -> 'bool'
mapCenter(self, *args, **kwargs) -> 'Vec3 const &'
mapOrientation(self, *args, **kwargs) -> 'Mat3 const &'
maskRot(self, *args, **kwargs) -> 'Mat3 const &'
molCenterAve(self, *args, **kwargs) -> 'Vec3 const &'
molCenterPos(self, *args, **kwargs) -> 'CDSVector< Vec3 > const'
molCenterSel(self, *args, **kwargs) -> 'AtomSel const &'
molOrientationSels(self, *args, **kwargs) -> 'Pair< AtomSel,AtomSel > const &'
molPlaneCentroid(self, *args, **kwargs) -> 'Vec3 const &'
molPlanePos(self, *args, **kwargs) -> 'CDSVector< Vec3 > const'
molPlaneSel(self, *args, **kwargs) -> 'AtomSel const &'
normal(self, *args, **kwargs) -> 'Vec3 const &'
placeInFrame(self, *args, **kwargs) -> 'void'
planeVals(self, *args, **kwargs) -> 'FixedVector< float_type,3 > const &'
planeVecs(self, *args, **kwargs) -> 'FixedVector< Vec3,3 > const &'
setZDirSels(self, *args, **kwargs) -> 'void'
swapZdir(self, *args, **kwargs) -> 'void'
update(self, *args, **kwargs) -> 'void'
updateValues(self, *args, **kwargs) -> 'void'
zDir(self, *args, **kwargs) -> 'Vec3 const &'
zDirSels(self, *args, **kwargs) -> 'AtomProbMask::AtomSelPair const'

Static methods defined here:
__swig_destroy__ = delete_AtomProbMask(object, /)

Data descriptors defined here:
__dict__

 
dictionary for instance variables
__weakref__

 
list of weak references to the object
thisown

 
The membership flag

 
Mask = class AtomProbMask(builtins.object)
    Mask(*args, **kwargs)
 

 
  Methods defined here:
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)
apply(self, *args, **kwargs) -> 'void'
derivs(self, *args, **kwargs) -> 'void'
grid(self, *args, **kwargs) -> 'DensityGrid const &'
isValid(self, *args, **kwargs) -> 'bool'
mapCenter(self, *args, **kwargs) -> 'Vec3 const &'
mapOrientation(self, *args, **kwargs) -> 'Mat3 const &'
maskRot(self, *args, **kwargs) -> 'Mat3 const &'
molCenterAve(self, *args, **kwargs) -> 'Vec3 const &'
molCenterPos(self, *args, **kwargs) -> 'CDSVector< Vec3 > const'
molCenterSel(self, *args, **kwargs) -> 'AtomSel const &'
molOrientationSels(self, *args, **kwargs) -> 'Pair< AtomSel,AtomSel > const &'
molPlaneCentroid(self, *args, **kwargs) -> 'Vec3 const &'
molPlanePos(self, *args, **kwargs) -> 'CDSVector< Vec3 > const'
molPlaneSel(self, *args, **kwargs) -> 'AtomSel const &'
normal(self, *args, **kwargs) -> 'Vec3 const &'
placeInFrame(self, *args, **kwargs) -> 'void'
planeVals(self, *args, **kwargs) -> 'FixedVector< float_type,3 > const &'
planeVecs(self, *args, **kwargs) -> 'FixedVector< Vec3,3 > const &'
setZDirSels(self, *args, **kwargs) -> 'void'
swapZdir(self, *args, **kwargs) -> 'void'
update(self, *args, **kwargs) -> 'void'
updateValues(self, *args, **kwargs) -> 'void'
zDir(self, *args, **kwargs) -> 'Vec3 const &'
zDirSels(self, *args, **kwargs) -> 'AtomProbMask::AtomSelPair const'

Static methods defined here:
__swig_destroy__ = delete_AtomProbMask(object, /)

Data descriptors defined here:
__dict__

 
dictionary for instance variables
__weakref__

 
list of weak references to the object
thisown

 
The membership flag

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

 
  Methods defined here:
__eq__(self, *args, **kwargs) -> 'bool'
Return self==value.
__init__(self, *args)
Initialize self.  See help(type(self)) for accurate signature.
__repr__ = _swig_repr(self)

Static methods defined here:
__swig_destroy__ = delete_Pair_AtomSel(object, /)

Data descriptors defined here:
__dict__

 
dictionary for instance variables
__weakref__

 
list of weak references to the object
a

 
b

 
thisown

 
The membership flag

Data and other attributes defined here:
__hash__ = None

 
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