Chemical Data Processing Library Python API - Version 1.2.0
|
Generation of 166 bit MACCS key fingerprints. More...
Public Member Functions | |
None | __init__ () |
Constructs the MACCSFingerprintGenerator instance. | |
None | __init__ (Chem.MolecularGraph molgraph, Util.BitSet fp) |
Constructs the MACCSFingerprintGenerator instance and generates the fingerprint of the molecular graph molgraph. More... | |
None | __init__ (MACCSFingerprintGenerator gen) |
Initializes a copy of the MACCSFingerprintGenerator instance gen. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
MACCSFingerprintGenerator | assign (MACCSFingerprintGenerator gen) |
Replaces the current state of self with a copy of the state of the MACCSFingerprintGenerator instance gen. More... | |
None | generate (Chem.MolecularGraph molgraph, Util.BitSet fp) |
Generates the fingerprint of the molecular graph molgraph. More... | |
Static Public Attributes | |
int | NUM_BITS = 166 |
Properties | |
objectID = property(getObjectID) | |
None CDPL.Descr.MACCSFingerprintGenerator.__init__ | ( | Chem.MolecularGraph | molgraph, |
Util.BitSet | fp | ||
) |
Constructs the MACCSFingerprintGenerator
instance and generates the fingerprint of the molecular graph molgraph.
molgraph | The molecular graph for which to generate the fingerprint. |
fp | The generated fingerprint. |
None CDPL.Descr.MACCSFingerprintGenerator.__init__ | ( | MACCSFingerprintGenerator | gen | ) |
Initializes a copy of the MACCSFingerprintGenerator instance gen.
gen | The MACCSFingerprintGenerator instance to copy. |
int CDPL.Descr.MACCSFingerprintGenerator.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python MACCSFingerprintGenerator 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 MACCSFingerprintGenerator 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()
.
MACCSFingerprintGenerator CDPL.Descr.MACCSFingerprintGenerator.assign | ( | MACCSFingerprintGenerator | gen | ) |
Replaces the current state of self with a copy of the state of the MACCSFingerprintGenerator instance gen.
gen | The MACCSFingerprintGenerator instance to copy. |
None CDPL.Descr.MACCSFingerprintGenerator.generate | ( | Chem.MolecularGraph | molgraph, |
Util.BitSet | fp | ||
) |
Generates the fingerprint of the molecular graph molgraph.
molgraph | The molecular graph for which to generate the fingerprint. |
fp | The generated fingerprint. |