#include <BALL/STRUCTURE/molecularSimilarity.h>
Definition at line 29 of file molecularSimilarity.h.
BALL::MolecularSimilarity::MolecularSimilarity |
( |
String |
smarts_file | ) |
|
float BALL::MolecularSimilarity::calculateSimilarity |
( |
vector< bool > & |
fingerprint1, |
|
|
vector< bool > & |
fingerprint2 |
|
) |
| |
Calculate Tanimoto coefficient for two given binary fingerprints.
float BALL::MolecularSimilarity::calculateSimilarity |
( |
vector< Size > & |
fingerprint1, |
|
|
vector< Size > & |
fingerprint2, |
|
|
vector< float > * |
stddev |
|
) |
| |
Calculate similarity between two fingerprints.
If stddev for function-group counts are specified, then the similarity of position i in the fingerprint-vectors is defined as zero if their absolute difference is larger than the the standard deviation, else as 1-abs(difference_i/stddev_i). If no stddev for function-group counts are given, the calculated similarity-value is equal to Tanimoto.
void BALL::MolecularSimilarity::filterRedundantMolecules |
( |
const list< Molecule * > & |
molecules, |
|
|
float |
similarity_threshold |
|
) |
| |
void BALL::MolecularSimilarity::filterRedundantMolecules |
( |
System & |
molecules, |
|
|
float |
similarity_threshold |
|
) |
| |
void BALL::MolecularSimilarity::generateFingerprint |
( |
Molecule & |
molecule, |
|
|
vector< Size > & |
fingerprint |
|
) |
| |
void BALL::MolecularSimilarity::generateFingerprints |
( |
System & |
molecules, |
|
|
vector< vector< Size > > & |
fingerprints |
|
) |
| |
void BALL::MolecularSimilarity::generateFingerprints |
( |
const list< Molecule * > & |
molecules, |
|
|
vector< vector< Size > > & |
fingerprints |
|
) |
| |
void BALL::MolecularSimilarity::generatePathFingerprint |
( |
Molecule & |
mol, |
|
|
vector< bool > & |
fingerprint |
|
) |
| |
bool BALL::MolecularSimilarity::generatePathFingerprint_ |
( |
const Atom * |
atom, |
|
|
std::vector< Size > & |
path, |
|
|
std::set< const Bond * > & |
path_bonds, |
|
|
std::vector< bool > & |
fingerprint |
|
) |
| |
|
protected |
void BALL::MolecularSimilarity::generatePathHash_ |
( |
vector< Size > & |
path, |
|
|
Size & |
hash |
|
) |
| |
|
protected |
Generate a hash-ID for a given molecule-path.
This function was adapted from OpenBabel (finger2.cpp).
const vector<String>& BALL::MolecularSimilarity::getFunctionalGroupNames |
( |
| ) |
|
Returns the names of the functional groups that have been read from the SMARTS-file
vector<vector<Size> > BALL::MolecularSimilarity::fingerprints_ |
|
protected |
vector<String> BALL::MolecularSimilarity::smart_names_ |
|
protected |
vector<String> BALL::MolecularSimilarity::smarts_ |
|
protected |