Driver for the systematic enumeration of conformers obtained by rotating around rotatable bonds of a molecular graph, using preferred torsion angles taken from configured ConfGen.TorsionLibrary instances.
More...
Driver for the systematic enumeration of conformers obtained by rotating around rotatable bonds of a molecular graph, using preferred torsion angles taken from configured ConfGen.TorsionLibrary instances.
◆ getObjectID()
| int CDPL.ConfGen.TorsionDriver.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python TorsionDriver 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 TorsionDriver 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.
◆ getSettings()
Returns the current driver settings (mutable).
- Returns
- A reference to the settings.
◆ addTorsionLibrary()
| None CDPL.ConfGen.TorsionDriver.addTorsionLibrary |
( |
TorsionLibrary |
lib | ) |
|
Adds lib to the list of torsion libraries consulted during torsion driving.
- Parameters
-
| lib | The torsion library to add. |
◆ setup() [1/2]
Sets up the driver for molgraph with the default rotatable bond perception.
- Parameters
-
| molgraph | The input molecular graph. |
- Returns
- A ConfGen.ReturnCode value reporting the outcome of the setup.
◆ setup() [2/2]
Sets up the driver for molgraph using only the bonds whose corresponding bit is set in bond_mask as rotatable.
- Parameters
-
| molgraph | The input molecular graph. |
| bond_mask | The bit mask of rotatable bonds (one bit per bond of molgraph). |
- Returns
- A ConfGen.ReturnCode value reporting the outcome of the setup.
◆ clearInputCoordinates()
| None CDPL.ConfGen.TorsionDriver.clearInputCoordinates |
( |
int |
frag_idx | ) |
|
Removes all input coordinates of the fragment at index frag_idx.
- Parameters
-
| frag_idx | The zero-based fragment index. |
◆ addInputCoordinates() [1/3]
Adds coords as a new starting conformation that the driver will torsion-drive.
- Parameters
-
| coords | The input 3D coordinates. |
◆ addInputCoordinates() [2/3]
| None CDPL.ConfGen.TorsionDriver.addInputCoordinates |
( |
Math.Vector3DArray |
coords, |
|
|
int |
frag_idx |
|
) |
| |
Adds coords as a new starting conformation restricted to the fragment at index frag_idx.
- Parameters
-
| coords | The input 3D coordinates of the fragment. |
| frag_idx | The zero-based fragment index. |
◆ addInputCoordinates() [3/3]
| None CDPL.ConfGen.TorsionDriver.addInputCoordinates |
( |
ConformerData |
conf_data, |
|
|
int |
frag_idx |
|
) |
| |
Adds the conformer data shared reference conf_data as a new starting conformation restricted to the fragment at index frag_idx.
- Parameters
-
| conf_data | The input conformer data. |
| frag_idx | The zero-based fragment index. |
◆ setAbortCallback()
Sets the callback invoked periodically to allow the generation to be aborted by the user.
- Parameters
-
| func | The abort-check callback. |
◆ getAbortCallback()
Returns the currently configured abort-check callback.
- Returns
- A reference to the abort-check callback.
◆ setTimeoutCallback()
Sets the callback invoked periodically to check whether the configured timeout has elapsed.
- Parameters
-
| func | The timeout-check callback. |
◆ getTimeoutCallback()
Returns the currently configured timeout-check callback.
- Returns
- A reference to the timeout-check callback.
◆ setLogMessageCallback()
Sets the callback receiving log messages emitted by the driver.
- Parameters
-
| func | The log-message callback. |
◆ getLogMessageCallback()
Returns the currently configured log-message callback.
- Returns
- A reference to the log-message callback.
◆ generateConformers()
| int CDPL.ConfGen.TorsionDriver.generateConformers |
( |
| ) |
|
Runs the torsion-driving conformer enumeration.
- Returns
- A ConfGen.ReturnCode value reporting the outcome of the generation.
◆ getNumConformers()
| int CDPL.ConfGen.TorsionDriver.getNumConformers |
( |
| ) |
|
Returns the number of generated conformers.
- Returns
- The conformer count.
◆ getConformer()
| ConformerData CDPL.ConfGen.TorsionDriver.getConformer |
( |
int |
conf_idx | ) |
|
◆ __getitem__()
| ConformerData CDPL.ConfGen.TorsionDriver.__getitem__ |
( |
int |
conf_idx | ) |
|