Chemical Data Processing Library Python API - Version 1.4.0
Public Member Functions | Properties | List of all members
CDPL.Shape.AlignmentResult Class Reference

Result of a Gaussian-shape alignment between a reference and an aligned shape. More...

+ Inheritance diagram for CDPL.Shape.AlignmentResult:

Public Member Functions

None __init__ ()
 Constructs the AlignmentResult instance.
 
None __init__ (AlignmentResult res)
 Initializes a copy of the AlignmentResult instance res. More...
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
AlignmentResult assign (AlignmentResult res)
 Replaces the current state of self with a copy of the state of the AlignmentResult instance res. More...
 
Math.Matrix4D getTransform ()
 Returns the rigid-body transformation matrix that maps the aligned shape onto the reference shape. More...
 
None setTransform (Math.Matrix4D xform)
 Sets the rigid-body transformation matrix. More...
 
float getScore ()
 Returns the score of the alignment. More...
 
None setScore (float score)
 Sets the score of the alignment. More...
 
int getReferenceShapeSetIndex ()
 Returns the index of the reference shape set the aligned shape was matched against. More...
 
None setReferenceShapeSetIndex (int idx)
 Sets the index of the reference shape set. More...
 
int getReferenceShapeIndex ()
 Returns the index of the reference shape within its shape set. More...
 
None setReferenceShapeIndex (int idx)
 Sets the index of the reference shape within its shape set. More...
 
int getAlignedShapeIndex ()
 Returns the index of the aligned shape. More...
 
None setAlignedShapeIndex (int idx)
 Sets the index of the aligned shape. More...
 
float getOverlap ()
 Returns the calculated overlap between the reference and the aligned shape (shape-only contribution). More...
 
None setOverlap (float overlap)
 Sets the overlap between the reference and the aligned shape (shape-only contribution). More...
 
float getColorOverlap ()
 Returns the calculated overlap between the reference and the aligned shape (color/pharmacophore contribution). More...
 
None setColorOverlap (float overlap)
 Sets the overlap between the reference and the aligned shape (color/pharmacophore contribution). More...
 
float getReferenceSelfOverlap ()
 Returns the self-overlap of the reference shape (shape-only contribution). More...
 
None setReferenceSelfOverlap (float overlap)
 Sets the self-overlap of the reference shape (shape-only contribution). More...
 
float getReferenceColorSelfOverlap ()
 Returns the self-overlap of the reference shape (color/pharmacophore contribution). More...
 
None setReferenceColorSelfOverlap (float overlap)
 Sets the self-overlap of the reference shape (color/pharmacophore contribution). More...
 
float getAlignedSelfOverlap ()
 Returns the self-overlap of the aligned shape (shape-only contribution). More...
 
None setAlignedSelfOverlap (float overlap)
 Sets the self-overlap of the aligned shape (shape-only contribution). More...
 
float getAlignedColorSelfOverlap ()
 Returns the self-overlap of the aligned shape (color/pharmacophore contribution). More...
 
None setAlignedColorSelfOverlap (float overlap)
 Sets the self-overlap of the aligned shape (color/pharmacophore contribution). More...
 

Properties

 objectID = property(getObjectID)
 
 transform = property(getTransform, setTransform)
 
 score = property(getScore, setScore)
 
 referenceShapeSetIndex = property(getReferenceShapeSetIndex, setReferenceShapeSetIndex)
 
 referenceShapeIndex = property(getReferenceShapeIndex, setReferenceShapeIndex)
 
 alignedShapeIndex = property(getAlignedShapeIndex, setAlignedShapeIndex)
 
 overlap = property(getOverlap, setOverlap)
 
 colorOverlap = property(getColorOverlap, setColorOverlap)
 
 referenceSelfOverlap = property(getReferenceSelfOverlap, setReferenceSelfOverlap)
 
 referenceColorSelfOverlap = property(getReferenceColorSelfOverlap, setReferenceColorSelfOverlap)
 
 alignedSelfOverlap = property(getAlignedSelfOverlap, setAlignedSelfOverlap)
 
 alignedColorSelfOverlap = property(getAlignedColorSelfOverlap, setAlignedColorSelfOverlap)
 

Detailed Description

Result of a Gaussian-shape alignment between a reference and an aligned shape.

Bundles the rigid-body transformation that brings the aligned shape onto the reference shape together with the resulting overlap-based score values, source/destination shape indices, and the self-overlap values used for normalization.

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Shape.AlignmentResult.__init__ ( AlignmentResult  res)

Initializes a copy of the AlignmentResult instance res.

Parameters
resThe AlignmentResult instance to copy.

Member Function Documentation

◆ getObjectID()

int CDPL.Shape.AlignmentResult.getObjectID ( )

Returns the numeric identifier (ID) of the wrapped C++ class instance.

Different Python AlignmentResult instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two AlignmentResult instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ assign()

AlignmentResult CDPL.Shape.AlignmentResult.assign ( AlignmentResult  res)

Replaces the current state of self with a copy of the state of the AlignmentResult instance res.

Parameters
resThe AlignmentResult instance to copy.
Returns
self

◆ getTransform()

Math.Matrix4D CDPL.Shape.AlignmentResult.getTransform ( )

Returns the rigid-body transformation matrix that maps the aligned shape onto the reference shape.

Returns
The transformation matrix.

◆ setTransform()

None CDPL.Shape.AlignmentResult.setTransform ( Math.Matrix4D  xform)

Sets the rigid-body transformation matrix.

Parameters
xformThe transformation matrix.

◆ getScore()

float CDPL.Shape.AlignmentResult.getScore ( )

Returns the score of the alignment.

Returns
The alignment score.

◆ setScore()

None CDPL.Shape.AlignmentResult.setScore ( float  score)

Sets the score of the alignment.

Parameters
scoreThe alignment score.

◆ getReferenceShapeSetIndex()

int CDPL.Shape.AlignmentResult.getReferenceShapeSetIndex ( )

Returns the index of the reference shape set the aligned shape was matched against.

Returns
The reference shape set index.

◆ setReferenceShapeSetIndex()

None CDPL.Shape.AlignmentResult.setReferenceShapeSetIndex ( int  idx)

Sets the index of the reference shape set.

Parameters
idxThe reference shape set index.

◆ getReferenceShapeIndex()

int CDPL.Shape.AlignmentResult.getReferenceShapeIndex ( )

Returns the index of the reference shape within its shape set.

Returns
The reference shape index.

◆ setReferenceShapeIndex()

None CDPL.Shape.AlignmentResult.setReferenceShapeIndex ( int  idx)

Sets the index of the reference shape within its shape set.

Parameters
idxThe reference shape index.

◆ getAlignedShapeIndex()

int CDPL.Shape.AlignmentResult.getAlignedShapeIndex ( )

Returns the index of the aligned shape.

Returns
The aligned shape index.

◆ setAlignedShapeIndex()

None CDPL.Shape.AlignmentResult.setAlignedShapeIndex ( int  idx)

Sets the index of the aligned shape.

Parameters
idxThe aligned shape index.

◆ getOverlap()

float CDPL.Shape.AlignmentResult.getOverlap ( )

Returns the calculated overlap between the reference and the aligned shape (shape-only contribution).

Returns
The shape overlap value.

◆ setOverlap()

None CDPL.Shape.AlignmentResult.setOverlap ( float  overlap)

Sets the overlap between the reference and the aligned shape (shape-only contribution).

Parameters
overlapThe shape overlap value.

◆ getColorOverlap()

float CDPL.Shape.AlignmentResult.getColorOverlap ( )

Returns the calculated overlap between the reference and the aligned shape (color/pharmacophore contribution).

Returns
The color overlap value.

◆ setColorOverlap()

None CDPL.Shape.AlignmentResult.setColorOverlap ( float  overlap)

Sets the overlap between the reference and the aligned shape (color/pharmacophore contribution).

Parameters
overlapThe color overlap value.

◆ getReferenceSelfOverlap()

float CDPL.Shape.AlignmentResult.getReferenceSelfOverlap ( )

Returns the self-overlap of the reference shape (shape-only contribution).

Returns
The reference shape self-overlap value.

◆ setReferenceSelfOverlap()

None CDPL.Shape.AlignmentResult.setReferenceSelfOverlap ( float  overlap)

Sets the self-overlap of the reference shape (shape-only contribution).

Parameters
overlapThe reference shape self-overlap value.

◆ getReferenceColorSelfOverlap()

float CDPL.Shape.AlignmentResult.getReferenceColorSelfOverlap ( )

Returns the self-overlap of the reference shape (color/pharmacophore contribution).

Returns
The reference shape color self-overlap value.

◆ setReferenceColorSelfOverlap()

None CDPL.Shape.AlignmentResult.setReferenceColorSelfOverlap ( float  overlap)

Sets the self-overlap of the reference shape (color/pharmacophore contribution).

Parameters
overlapThe reference shape color self-overlap value.

◆ getAlignedSelfOverlap()

float CDPL.Shape.AlignmentResult.getAlignedSelfOverlap ( )

Returns the self-overlap of the aligned shape (shape-only contribution).

Returns
The aligned shape self-overlap value.

◆ setAlignedSelfOverlap()

None CDPL.Shape.AlignmentResult.setAlignedSelfOverlap ( float  overlap)

Sets the self-overlap of the aligned shape (shape-only contribution).

Parameters
overlapThe aligned shape self-overlap value.

◆ getAlignedColorSelfOverlap()

float CDPL.Shape.AlignmentResult.getAlignedColorSelfOverlap ( )

Returns the self-overlap of the aligned shape (color/pharmacophore contribution).

Returns
The aligned shape color self-overlap value.

◆ setAlignedColorSelfOverlap()

None CDPL.Shape.AlignmentResult.setAlignedColorSelfOverlap ( float  overlap)

Sets the self-overlap of the aligned shape (color/pharmacophore contribution).

Parameters
overlapThe aligned shape color self-overlap value.