![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Driver for the generation of low-energy conformer ensembles for single molecular fragments (chain, small ring system or macrocycle) More...
#include <FragmentConformerGenerator.hpp>
Public Types | |
| typedef boost::indirect_iterator< ConformerDataArray::const_iterator, const ConformerData > | ConstConformerIterator |
| A constant iterator over the generated conformers. More... | |
| typedef boost::indirect_iterator< ConformerDataArray::const_iterator, ConformerData > | ConformerIterator |
| A mutable iterator over the generated conformers. More... | |
Public Member Functions | |
| FragmentConformerGenerator () | |
Constructs the FragmentConformerGenerator instance. More... | |
| FragmentConformerGenerator (const FragmentConformerGenerator &)=delete | |
| ~FragmentConformerGenerator () | |
| Destructor. More... | |
| FragmentConformerGenerator & | operator= (const FragmentConformerGenerator &)=delete |
| FragmentConformerGeneratorSettings & | getSettings () |
| Returns the current generator settings (mutable). More... | |
| const FragmentConformerGeneratorSettings & | getSettings () const |
| Returns the current generator settings. More... | |
| void | setAbortCallback (const CallbackFunction &func) |
| Sets the callback invoked periodically to allow conformer generation to be aborted by the user. More... | |
| const CallbackFunction & | getAbortCallback () const |
| Returns the currently configured abort-check callback. More... | |
| void | setTimeoutCallback (const CallbackFunction &func) |
| Sets the callback invoked periodically to check whether the configured timeout has elapsed. More... | |
| const CallbackFunction & | getTimeoutCallback () const |
| Returns the currently configured timeout-check callback. More... | |
| void | setLogMessageCallback (const LogMessageCallbackFunction &func) |
| Sets the callback that receives log messages produced during conformer generation. More... | |
| const LogMessageCallbackFunction & | getLogMessageCallback () const |
| Returns the currently configured log-message callback. More... | |
| unsigned int | generate (const Chem::MolecularGraph &molgraph) |
| Generates a conformer ensemble for the fragment molgraph (the fragment type is perceived automatically). More... | |
| unsigned int | generate (const Chem::MolecularGraph &molgraph, unsigned int frag_type) |
| Generates a conformer ensemble for the fragment molgraph using the fragment-type-specific settings selected by frag_type. More... | |
| unsigned int | generate (const Chem::MolecularGraph &molgraph, const Chem::MolecularGraph &fixed_substr, const Math::Vector3DArray &fixed_substr_coords) |
| Generates a conformer ensemble for the fragment molgraph while keeping the substructure fixed_substr at the supplied 3D coordinates. More... | |
| unsigned int | generate (const Chem::MolecularGraph &molgraph, unsigned int frag_type, const Chem::MolecularGraph &fixed_substr, const Math::Vector3DArray &fixed_substr_coords) |
| Generates a conformer ensemble for the fragment molgraph using the fragment-type-specific settings selected by frag_type while keeping the substructure fixed_substr at the supplied 3D coordinates. More... | |
| void | setConformers (Chem::MolecularGraph &molgraph) const |
| Transfers the generated conformer ensemble onto molgraph. More... | |
| std::size_t | getNumConformers () const |
| Returns the number of generated conformers. More... | |
| const ConformerData & | getConformer (std::size_t idx) const |
| Returns the conformer at index idx. More... | |
| ConformerData & | getConformer (std::size_t idx) |
| Returns the conformer at index idx. More... | |
| ConstConformerIterator | getConformersBegin () const |
| Returns a constant iterator pointing to the first generated conformer. More... | |
| ConstConformerIterator | getConformersEnd () const |
| Returns a constant iterator pointing one past the last generated conformer. More... | |
| ConformerIterator | getConformersBegin () |
| Returns a mutable iterator pointing to the first generated conformer. More... | |
| ConformerIterator | getConformersEnd () |
| Returns a mutable iterator pointing one past the last generated conformer. More... | |
| ConstConformerIterator | begin () const |
| Returns a constant iterator pointing to the first generated conformer (range-based for support). More... | |
| ConstConformerIterator | end () const |
| Returns a constant iterator pointing one past the last generated conformer (range-based for support). More... | |
| ConformerIterator | begin () |
| Returns a mutable iterator pointing to the first generated conformer (range-based for support). More... | |
| ConformerIterator | end () |
| Returns a mutable iterator pointing one past the last generated conformer (range-based for support). More... | |
Driver for the generation of low-energy conformer ensembles for single molecular fragments (chain, small ring system or macrocycle)
Conformer sampling is done in a stochastic manner using distance-geometry-based raw coordinates generation, MMFF94 energy minimization and conformer RMSD clustering.
| typedef boost::indirect_iterator<ConformerDataArray::const_iterator, const ConformerData> CDPL::ConfGen::FragmentConformerGenerator::ConstConformerIterator |
A constant iterator over the generated conformers.
| typedef boost::indirect_iterator<ConformerDataArray::const_iterator, ConformerData> CDPL::ConfGen::FragmentConformerGenerator::ConformerIterator |
A mutable iterator over the generated conformers.
| CDPL::ConfGen::FragmentConformerGenerator::FragmentConformerGenerator | ( | ) |
Constructs the FragmentConformerGenerator instance.
|
delete |
| CDPL::ConfGen::FragmentConformerGenerator::~FragmentConformerGenerator | ( | ) |
Destructor.
|
delete |
| FragmentConformerGeneratorSettings& CDPL::ConfGen::FragmentConformerGenerator::getSettings | ( | ) |
Returns the current generator settings (mutable).
| const FragmentConformerGeneratorSettings& CDPL::ConfGen::FragmentConformerGenerator::getSettings | ( | ) | const |
Returns the current generator settings.
const reference to the settings. | void CDPL::ConfGen::FragmentConformerGenerator::setAbortCallback | ( | const CallbackFunction & | func | ) |
Sets the callback invoked periodically to allow conformer generation to be aborted by the user.
| func | The abort-check callback. |
| const CallbackFunction& CDPL::ConfGen::FragmentConformerGenerator::getAbortCallback | ( | ) | const |
Returns the currently configured abort-check callback.
const reference to the abort-check callback. | void CDPL::ConfGen::FragmentConformerGenerator::setTimeoutCallback | ( | const CallbackFunction & | func | ) |
Sets the callback invoked periodically to check whether the configured timeout has elapsed.
| func | The timeout-check callback. |
| const CallbackFunction& CDPL::ConfGen::FragmentConformerGenerator::getTimeoutCallback | ( | ) | const |
Returns the currently configured timeout-check callback.
const reference to the timeout-check callback. | void CDPL::ConfGen::FragmentConformerGenerator::setLogMessageCallback | ( | const LogMessageCallbackFunction & | func | ) |
Sets the callback that receives log messages produced during conformer generation.
| func | The log-message callback. |
| const LogMessageCallbackFunction& CDPL::ConfGen::FragmentConformerGenerator::getLogMessageCallback | ( | ) | const |
Returns the currently configured log-message callback.
const reference to the log-message callback. | unsigned int CDPL::ConfGen::FragmentConformerGenerator::generate | ( | const Chem::MolecularGraph & | molgraph | ) |
Generates a conformer ensemble for the fragment molgraph (the fragment type is perceived automatically).
| molgraph | The fragment to process. |
| unsigned int CDPL::ConfGen::FragmentConformerGenerator::generate | ( | const Chem::MolecularGraph & | molgraph, |
| unsigned int | frag_type | ||
| ) |
Generates a conformer ensemble for the fragment molgraph using the fragment-type-specific settings selected by frag_type.
| molgraph | The fragment to process. |
| frag_type | One of the ConfGen::FragmentType values selecting the per-fragment-class settings. |
| unsigned int CDPL::ConfGen::FragmentConformerGenerator::generate | ( | const Chem::MolecularGraph & | molgraph, |
| const Chem::MolecularGraph & | fixed_substr, | ||
| const Math::Vector3DArray & | fixed_substr_coords | ||
| ) |
Generates a conformer ensemble for the fragment molgraph while keeping the substructure fixed_substr at the supplied 3D coordinates.
| molgraph | The fragment to process. |
| fixed_substr | The substructure that must retain the supplied 3D coordinates. |
| fixed_substr_coords | The 3D coordinates assigned to fixed_substr. |
| unsigned int CDPL::ConfGen::FragmentConformerGenerator::generate | ( | const Chem::MolecularGraph & | molgraph, |
| unsigned int | frag_type, | ||
| const Chem::MolecularGraph & | fixed_substr, | ||
| const Math::Vector3DArray & | fixed_substr_coords | ||
| ) |
Generates a conformer ensemble for the fragment molgraph using the fragment-type-specific settings selected by frag_type while keeping the substructure fixed_substr at the supplied 3D coordinates.
| molgraph | The fragment to process. |
| frag_type | One of the ConfGen::FragmentType values selecting the per-fragment-class settings. |
| fixed_substr | The substructure that must retain the supplied 3D coordinates. |
| fixed_substr_coords | The 3D coordinates assigned to fixed_substr. |
| void CDPL::ConfGen::FragmentConformerGenerator::setConformers | ( | Chem::MolecularGraph & | molgraph | ) | const |
Transfers the generated conformer ensemble onto molgraph.
The per-conformer 3D coordinates are written to each atom's 3D-coordinates array (via Chem::set3DCoordinatesArray) and the corresponding per-conformer energies are attached to the molecular graph (via Chem::setConformerEnergies).
| molgraph | The molecular graph that receives the conformer coordinates and energies. |
| std::size_t CDPL::ConfGen::FragmentConformerGenerator::getNumConformers | ( | ) | const |
Returns the number of generated conformers.
| const ConformerData& CDPL::ConfGen::FragmentConformerGenerator::getConformer | ( | std::size_t | idx | ) | const |
Returns the conformer at index idx.
| idx | The zero-based conformer index. |
const reference to the conformer data. | Base::IndexError | if the number of conformers is zero or idx is not in the range [0, getNumConformers() - 1]. |
| ConformerData& CDPL::ConfGen::FragmentConformerGenerator::getConformer | ( | std::size_t | idx | ) |
Returns the conformer at index idx.
| idx | The zero-based conformer index. |
| Base::IndexError | if the number of conformers is zero or idx is not in the range [0, getNumConformers() - 1]. |
| ConstConformerIterator CDPL::ConfGen::FragmentConformerGenerator::getConformersBegin | ( | ) | const |
Returns a constant iterator pointing to the first generated conformer.
| ConstConformerIterator CDPL::ConfGen::FragmentConformerGenerator::getConformersEnd | ( | ) | const |
Returns a constant iterator pointing one past the last generated conformer.
| ConformerIterator CDPL::ConfGen::FragmentConformerGenerator::getConformersBegin | ( | ) |
Returns a mutable iterator pointing to the first generated conformer.
| ConformerIterator CDPL::ConfGen::FragmentConformerGenerator::getConformersEnd | ( | ) |
Returns a mutable iterator pointing one past the last generated conformer.
| ConstConformerIterator CDPL::ConfGen::FragmentConformerGenerator::begin | ( | ) | const |
Returns a constant iterator pointing to the first generated conformer (range-based for support).
| ConstConformerIterator CDPL::ConfGen::FragmentConformerGenerator::end | ( | ) | const |
Returns a constant iterator pointing one past the last generated conformer (range-based for support).
| ConformerIterator CDPL::ConfGen::FragmentConformerGenerator::begin | ( | ) |
Returns a mutable iterator pointing to the first generated conformer (range-based for support).
| ConformerIterator CDPL::ConfGen::FragmentConformerGenerator::end | ( | ) |
Returns a mutable iterator pointing one past the last generated conformer (range-based for support).