Pharm::ScreeningDBCreator implementation that builds optimized pharmacophore screening databases in the built-in PSD format.
More...
#include <PSDScreeningDBCreator.hpp>
Pharm::ScreeningDBCreator implementation that builds optimized pharmacophore screening databases in the built-in PSD format.
◆ SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated PSDScreeningDBCreator instances.
◆ PSDScreeningDBCreator() [1/3]
| CDPL::Pharm::PSDScreeningDBCreator::PSDScreeningDBCreator |
( |
| ) |
|
Constructs a PSDScreeningDBCreator instance without an associated database.
◆ PSDScreeningDBCreator() [2/3]
| CDPL::Pharm::PSDScreeningDBCreator::PSDScreeningDBCreator |
( |
const std::string & |
name, |
|
|
Mode |
mode = CREATE, |
|
|
bool |
allow_dup_entries = true |
|
) |
| |
Constructs a PSDScreeningDBCreator instance that will write data to the database-file specified by name in the given insert mode.
- Parameters
-
| name | The name of the database-file. |
| mode | Specifies whether to (re)create the database or to update/append to existing records. |
| allow_dup_entries | Specifies whether input molecules that are duplicates of already stored molecules should be discarded. |
◆ PSDScreeningDBCreator() [3/3]
◆ ~PSDScreeningDBCreator()
| CDPL::Pharm::PSDScreeningDBCreator::~PSDScreeningDBCreator |
( |
| ) |
|
◆ operator=()
◆ open()
| void CDPL::Pharm::PSDScreeningDBCreator::open |
( |
const std::string & |
name, |
|
|
Mode |
mode = CREATE, |
|
|
bool |
allow_dup_entries = true |
|
) |
| |
|
virtual |
Opens the database-file specified by name in the given insert mode.
- Parameters
-
| name | The name of the database-file. |
| mode | Specifies whether to (re)create the database or to update/append to existing records. |
| allow_dup_entries | Specifies whether input molecules that are duplicates of already stored molecules should be discarded. |
Implements CDPL::Pharm::ScreeningDBCreator.
◆ close()
| void CDPL::Pharm::PSDScreeningDBCreator::close |
( |
| ) |
|
|
virtual |
◆ getMode()
| Mode CDPL::Pharm::PSDScreeningDBCreator::getMode |
( |
| ) |
const |
|
virtual |
◆ allowDuplicateEntries()
| bool CDPL::Pharm::PSDScreeningDBCreator::allowDuplicateEntries |
( |
| ) |
const |
|
virtual |
Tells whether duplicate database entries are currently allowed.
- Returns
true if duplicates are allowed, and false otherwise.
Implements CDPL::Pharm::ScreeningDBCreator.
◆ process()
Processes molgraph and inserts the resulting molecule (with derived conformer pharmacophores) into the database.
- Parameters
-
| molgraph | The molecular graph to process. |
- Returns
true if the molecule was inserted, and false if it was rejected (e.g. as a duplicate).
Implements CDPL::Pharm::ScreeningDBCreator.
◆ merge()
Merges all molecule/pharmacophore records of db_acc into the currently open database.
- Parameters
-
| db_acc | The source database accessor. |
| func | A progress-reporting callback invoked during the merge. |
- Returns
true if the merge completed successfully, and false if it was aborted (e.g. by the callback).
Implements CDPL::Pharm::ScreeningDBCreator.
◆ getDatabaseName()
| const std::string& CDPL::Pharm::PSDScreeningDBCreator::getDatabaseName |
( |
| ) |
const |
|
virtual |
Returns the name of the currently associated database-file.
- Returns
- A
const reference to the database-file name (or an empty string if no database is open).
Implements CDPL::Pharm::ScreeningDBCreator.
◆ getNumProcessed()
| std::size_t CDPL::Pharm::PSDScreeningDBCreator::getNumProcessed |
( |
| ) |
const |
|
virtual |
Returns the total number of input molecules processed since the database was opened.
- Returns
- The processed-molecule count.
Implements CDPL::Pharm::ScreeningDBCreator.
◆ getNumRejected()
| std::size_t CDPL::Pharm::PSDScreeningDBCreator::getNumRejected |
( |
| ) |
const |
|
virtual |
Returns the number of processed molecules that were rejected (e.g. as duplicates).
- Returns
- The rejected-molecule count.
Implements CDPL::Pharm::ScreeningDBCreator.
◆ getNumDeleted()
| std::size_t CDPL::Pharm::PSDScreeningDBCreator::getNumDeleted |
( |
| ) |
const |
|
virtual |
Returns the number of pre-existing database entries that were deleted (under Mode::UPDATE/CREATE).
- Returns
- The deleted-entry count.
Implements CDPL::Pharm::ScreeningDBCreator.
◆ getNumInserted()
| std::size_t CDPL::Pharm::PSDScreeningDBCreator::getNumInserted |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file: