Chemical Data Processing Library Python API - Version 1.2.0
|
CircularFingerprintGenerator. More...
Classes | |
class | DefAtomIdentifierFunctor |
The functor for the generation of ECFP atom identifiers. More... | |
class | DefBondIdentifierFunctor |
The default functor for the generation of bond identifiers. More... | |
Public Member Functions | |
None | __init__ () |
Constructs the CircularFingerprintGenerator instance. | |
None | __init__ (CircularFingerprintGenerator gen) |
Initializes a copy of the CircularFingerprintGenerator instance gen. More... | |
None | __init__ (Chem.MolecularGraph molgraph) |
Constructs the CircularFingerprintGenerator instance and generates the atom-centered circular substructure fingerprint of the molecular graph molgraph. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
None | setAtomIdentifierFunction (Chem.SizeTypeAtomMolecularGraphFunctor func) |
Allows to specify a customized function for the generation of initial atom identifiers. More... | |
None | setBondIdentifierFunction (Chem.UInt64BondFunctor func) |
Allows to specify a customized function for the generation of initial bond identifiers. More... | |
None | setNumIterations (int num_iter) |
Allows to specify the desired number of feature substructure growing iterations. More... | |
int | getNumIterations () |
Returns the number of feature substructure growing iterations. More... | |
None | includeHydrogens (bool include) |
bool | hydrogensIncluded () |
None | includeChirality (bool include) |
bool | chiralityIncluded () |
None | generate (Chem.MolecularGraph molgraph) |
Generates the atom-centered circular substructure fingerprint of the molecular graph molgraph. More... | |
None | setFeatureBits (Util.BitSet bs, bool reset=True) |
Maps previously generated feature identifiers to bit indices and sets the correponding bits of bs. More... | |
None | setFeatureBits (int atom_idx, Util.BitSet bs, bool reset=True) |
Maps previously generated identifiers of structural features involving the atom specified by atom_idx to bit indices and sets the correponding bits of bs. More... | |
int | getNumFeatures () |
int | getFeatureIdentifier (int ftr_idx) |
Util.BitSet | getFeatureSubstructure (int ftr_idx) |
None | getFeatureSubstructure (int ftr_idx, Chem.Fragment frag, bool clear=True) |
None | getFeatureSubstructures (int bit_idx, int bs_size, Chem.FragmentList frags, bool clear=True) |
CircularFingerprintGenerator | assign (CircularFingerprintGenerator gen) |
Replaces the current state of self with a copy of the state of the CircularFingerprintGenerator instance gen. More... | |
Static Public Attributes | |
int | DEF_ATOM_PROPERTY_FLAGS = 3166 |
Specifies the default set of atomic properties considered in the generation of atom identifiers by CircularFingerprintGenerator.DefAtomIdentifierFunction. | |
int | DEF_BOND_PROPERTY_FLAGS = 10 |
Specifies the default set of bond properties considered in the generation of bond identifiers by CircularFingerprintGenerator.DefBondIdentifierFunction. | |
Properties | |
objectID = property(getObjectID) | |
numFeatures = property(getNumFeatures) | |
numIterations = property(getNumIterations, setNumIterations) | |
incHydrogens = property(hydrogensIncluded, includeHydrogens) | |
incChirality = property(chiralityIncluded, includeChirality) | |
None CDPL.Descr.CircularFingerprintGenerator.__init__ | ( | CircularFingerprintGenerator | gen | ) |
Initializes a copy of the CircularFingerprintGenerator instance gen.
gen | The CircularFingerprintGenerator instance to copy. |
None CDPL.Descr.CircularFingerprintGenerator.__init__ | ( | Chem.MolecularGraph | molgraph | ) |
Constructs the CircularFingerprintGenerator
instance and generates the atom-centered circular substructure fingerprint of the molecular graph molgraph.
molgraph | The molecular graph to process. |
int CDPL.Descr.CircularFingerprintGenerator.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python CircularFingerprintGenerator 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 CircularFingerprintGenerator 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()
.
None CDPL.Descr.CircularFingerprintGenerator.setAtomIdentifierFunction | ( | Chem.SizeTypeAtomMolecularGraphFunctor | func | ) |
Allows to specify a customized function for the generation of initial atom identifiers.
func | A CircularFingerprintGenerator.AtomIdentifierFunction instance that wraps the target function. |
None CDPL.Descr.CircularFingerprintGenerator.setBondIdentifierFunction | ( | Chem.UInt64BondFunctor | func | ) |
Allows to specify a customized function for the generation of initial bond identifiers.
func | A CircularFingerprintGenerator.BondIdentifierFunction instance that wraps the target function. |
None CDPL.Descr.CircularFingerprintGenerator.setNumIterations | ( | int | num_iter | ) |
Allows to specify the desired number of feature substructure growing iterations.
num_iter | The number of iterations. |
int CDPL.Descr.CircularFingerprintGenerator.getNumIterations | ( | ) |
Returns the number of feature substructure growing iterations.
None CDPL.Descr.CircularFingerprintGenerator.includeHydrogens | ( | bool | include | ) |
include |
bool CDPL.Descr.CircularFingerprintGenerator.hydrogensIncluded | ( | ) |
None CDPL.Descr.CircularFingerprintGenerator.includeChirality | ( | bool | include | ) |
include |
bool CDPL.Descr.CircularFingerprintGenerator.chiralityIncluded | ( | ) |
None CDPL.Descr.CircularFingerprintGenerator.generate | ( | Chem.MolecularGraph | molgraph | ) |
Generates the atom-centered circular substructure fingerprint of the molecular graph molgraph.
molgraph | The molecular graph to process. |
None CDPL.Descr.CircularFingerprintGenerator.setFeatureBits | ( | Util.BitSet | bs, |
bool | reset = True |
||
) |
Maps previously generated feature identifiers to bit indices and sets the correponding bits of bs.
bs | The target bitset. |
reset | If True, bs will be cleared before any feature bits are set. |
None CDPL.Descr.CircularFingerprintGenerator.setFeatureBits | ( | int | atom_idx, |
Util.BitSet | bs, | ||
bool | reset = True |
||
) |
Maps previously generated identifiers of structural features involving the atom specified by atom_idx to bit indices and sets the correponding bits of bs.
atom_idx | The index of the atom that has to be involved in the structural features. |
bs | The target bitset. |
reset | If True, bs will be cleared before any feature bits are set. |
int CDPL.Descr.CircularFingerprintGenerator.getNumFeatures | ( | ) |
int CDPL.Descr.CircularFingerprintGenerator.getFeatureIdentifier | ( | int | ftr_idx | ) |
ftr_idx |
Util.BitSet CDPL.Descr.CircularFingerprintGenerator.getFeatureSubstructure | ( | int | ftr_idx | ) |
ftr_idx |
None CDPL.Descr.CircularFingerprintGenerator.getFeatureSubstructure | ( | int | ftr_idx, |
Chem.Fragment | frag, | ||
bool | clear = True |
||
) |
ftr_idx | |
frag | |
clear |
None CDPL.Descr.CircularFingerprintGenerator.getFeatureSubstructures | ( | int | bit_idx, |
int | bs_size, | ||
Chem.FragmentList | frags, | ||
bool | clear = True |
||
) |
bit_idx | |
bs_size | |
frags | |
clear |
CircularFingerprintGenerator CDPL.Descr.CircularFingerprintGenerator.assign | ( | CircularFingerprintGenerator | gen | ) |
Replaces the current state of self with a copy of the state of the CircularFingerprintGenerator instance gen.
gen | The CircularFingerprintGenerator instance to copy. |