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
 
Constructor:
 
    AtomProbMask(grid,
                 molOrientationSels,
                 molPlaneSel,
                 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.
      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.
 
 
  Methods:
 
   swapZdir() - swap zDirSels selections, to reverse the sign of the plane
                normal.
 
   update()  - compute all derived quantities
 
   apply(data,
         R,t      ) - Mask data given orienataion R and translation t.
                      No return value. 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 &'
mapCenter(self, *args, **kwargs) -> 'Vec3 const &'
mapOrientation(self, *args, **kwargs) -> 'Mat3 const &'
maskRot(self, *args, **kwargs) -> 'Mat3 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) -> 'Pair< AtomSel,AtomSel > const &'

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

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

 
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 &'
mapCenter(self, *args, **kwargs) -> 'Vec3 const &'
mapOrientation(self, *args, **kwargs) -> 'Mat3 const &'
maskRot(self, *args, **kwargs) -> 'Mat3 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) -> 'Pair< AtomSel,AtomSel > const &'

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

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 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(...)

Data descriptors defined here:
__dict__

 
dictionary for instance variables (if defined)
__weakref__

 
list of weak references to the object (if defined)
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