Driver for populating a ConfGen::FragmentLibrary with conformers of canonicalized molecular fragments.
More...
#include <FragmentLibraryGenerator.hpp>
Driver for populating a ConfGen::FragmentLibrary with conformers of canonicalized molecular fragments.
For each input fragment the generator constructs the corresponding ConfGen::CanonicalFragment, computes its hash code and SMILES string, generates a representative conformer ensemble using ConfGen::FragmentConformerGenerator and stores the result as a new FragmentLibraryEntry in the associated FragmentLibrary. Already-present entries (identified by hash code) are skipped.
◆ FragmentLibraryGenerator() [1/3]
| CDPL::ConfGen::FragmentLibraryGenerator::FragmentLibraryGenerator |
( |
| ) |
|
Constructs the FragmentLibraryGenerator instance without an associated fragment library.
◆ FragmentLibraryGenerator() [2/3]
Constructs the FragmentLibraryGenerator instance and associates it with lib.
- Parameters
-
| lib | The fragment library to populate. |
◆ FragmentLibraryGenerator() [3/3]
◆ operator=()
◆ setFragmentLibrary()
Sets the fragment library to populate.
- Parameters
-
| lib | The new fragment library. |
◆ getFragmentLibrary()
Returns the currently associated fragment library.
- Returns
- A
const reference to the fragment library smart pointer.
◆ getSettings() [1/2]
Returns a reference to the fragment conformer generation settings.
- Returns
- A reference to the settings.
◆ getSettings() [2/2]
Returns a const reference to the fragment conformer generation settings.
- Returns
- A
const reference to the settings.
◆ setAbortCallback()
| void CDPL::ConfGen::FragmentLibraryGenerator::setAbortCallback |
( |
const CallbackFunction & |
func | ) |
|
Sets the callback invoked periodically to allow conformer generation to be aborted.
- Parameters
-
| func | The abort-check callback. |
◆ getAbortCallback()
| const CallbackFunction& CDPL::ConfGen::FragmentLibraryGenerator::getAbortCallback |
( |
| ) |
const |
Returns the currently configured abort-check callback.
- Returns
- A
const reference to the abort-check callback.
◆ setTimeoutCallback()
| void CDPL::ConfGen::FragmentLibraryGenerator::setTimeoutCallback |
( |
const CallbackFunction & |
func | ) |
|
Sets the callback invoked periodically to check whether the configured timeout has elapsed.
- Parameters
-
| func | The timeout-check callback. |
◆ getTimeoutCallback()
| const CallbackFunction& CDPL::ConfGen::FragmentLibraryGenerator::getTimeoutCallback |
( |
| ) |
const |
Returns the currently configured timeout-check callback.
- Returns
- A
const reference to the timeout-check callback.
◆ setLogMessageCallback()
Sets the callback that receives log messages produced during fragment processing.
- Parameters
-
| func | The log-message callback. |
◆ getLogMessageCallback()
Returns the currently configured log-message callback.
- Returns
- A
const reference to the log-message callback.
◆ process()
Adds a library entry for the fragment frag of the parent molecular graph parent.
- Parameters
-
| frag | The fragment to add. |
| parent | The parent molecular graph the fragment was derived from. |
- Returns
- A status code defined in ConfGen::ReturnCode.
◆ getNumGeneratedConformers()
| std::size_t CDPL::ConfGen::FragmentLibraryGenerator::getNumGeneratedConformers |
( |
| ) |
const |
Returns the number of conformers generated during the last process() call.
- Returns
- The number of generated conformers.
◆ getLibraryEntryHashCode()
| std::uint64_t CDPL::ConfGen::FragmentLibraryGenerator::getLibraryEntryHashCode |
( |
| ) |
const |
Returns the hash code of the library entry created during the last process() call.
- Returns
- The hash code of the library entry.
The documentation for this class was generated from the following file: