Chemical Data Processing Library Python API - Version 1.2.0
Classes | Public Member Functions | Static Public Attributes | Properties | List of all members
CDPL.GRAIL.GRAILXDescriptorCalculator Class Reference

GRAILXDescriptorCalculator. More...

+ Inheritance diagram for CDPL.GRAIL.GRAILXDescriptorCalculator:

Classes

class  ElementIndex
 

Public Member Functions

None __init__ ()
 Initializes the GRAILXDescriptorCalculator instance.
 
None __init__ (GRAILXDescriptorCalculator calc)
 Initializes a copy of the GRAILXDescriptorCalculator instance calc. More...
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
GRAILXDescriptorCalculator assign (GRAILXDescriptorCalculator calc)
 Replaces the current state of self with a copy of the state of the GRAILXDescriptorCalculator instance calc. More...
 
None initTargetData (Chem.MolecularGraph tgt_env, Chem.Atom3DCoordinatesFunction coords_func, bool tgt_env_changed=True)
 
None initLigandData (Chem.MolecularGraph ligand)
 
None calculate (Math.Vector3DArray atom_coords, Math.DVector descr, bool update_lig_part=True)
 

Static Public Attributes

int TOTAL_DESCRIPTOR_SIZE = 177
 
int LIGAND_DESCRIPTOR_SIZE = 31
 

Properties

 objectID = property(getObjectID)
 

Detailed Description

GRAILXDescriptorCalculator.

See also
[GRAIL]

Constructor & Destructor Documentation

◆ __init__()

None CDPL.GRAIL.GRAILXDescriptorCalculator.__init__ ( GRAILXDescriptorCalculator  calc)

Initializes a copy of the GRAILXDescriptorCalculator instance calc.

Parameters
calcThe GRAILXDescriptorCalculator instance to copy.

Member Function Documentation

◆ getObjectID()

int CDPL.GRAIL.GRAILXDescriptorCalculator.getObjectID ( )

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

Different Python GRAILXDescriptorCalculator 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 GRAILXDescriptorCalculator 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()

GRAILXDescriptorCalculator CDPL.GRAIL.GRAILXDescriptorCalculator.assign ( GRAILXDescriptorCalculator  calc)

Replaces the current state of self with a copy of the state of the GRAILXDescriptorCalculator instance calc.

Parameters
calcThe GRAILXDescriptorCalculator instance to copy.
Returns
self

◆ initTargetData()

None CDPL.GRAIL.GRAILXDescriptorCalculator.initTargetData ( Chem.MolecularGraph  tgt_env,
Chem.Atom3DCoordinatesFunction  coords_func,
bool   tgt_env_changed = True 
)
Parameters
tgt_env
coords_func
tgt_env_changed

◆ initLigandData()

None CDPL.GRAIL.GRAILXDescriptorCalculator.initLigandData ( Chem.MolecularGraph  ligand)
Parameters
ligand

◆ calculate()

None CDPL.GRAIL.GRAILXDescriptorCalculator.calculate ( Math.Vector3DArray  atom_coords,
Math.DVector  descr,
bool   update_lig_part = True 
)
Parameters
atom_coords
descr
update_lig_part