Chemical Data Processing Library Python API - Version 1.2.0
Public Member Functions | Static Public Attributes | Properties | List of all members
CDPL.Descr.MACCSFingerprintGenerator Class Reference

Generation of 166 bit MACCS key fingerprints. More...

+ Inheritance diagram for CDPL.Descr.MACCSFingerprintGenerator:

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)
 

Detailed Description

Generation of 166 bit MACCS key fingerprints.

Since
1.2
See also
[MACCSK]

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.Descr.MACCSFingerprintGenerator.__init__ ( Chem.MolecularGraph  molgraph,
Util.BitSet  fp 
)

Constructs the MACCSFingerprintGenerator instance and generates the fingerprint of the molecular graph molgraph.

Parameters
molgraphThe molecular graph for which to generate the fingerprint.
fpThe generated fingerprint.

◆ __init__() [2/2]

None CDPL.Descr.MACCSFingerprintGenerator.__init__ ( MACCSFingerprintGenerator  gen)

Initializes a copy of the MACCSFingerprintGenerator instance gen.

Parameters
genThe MACCSFingerprintGenerator instance to copy.

Member Function Documentation

◆ getObjectID()

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().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ assign()

MACCSFingerprintGenerator CDPL.Descr.MACCSFingerprintGenerator.assign ( MACCSFingerprintGenerator  gen)

Replaces the current state of self with a copy of the state of the MACCSFingerprintGenerator instance gen.

Parameters
genThe MACCSFingerprintGenerator instance to copy.
Returns
self

◆ generate()

None CDPL.Descr.MACCSFingerprintGenerator.generate ( Chem.MolecularGraph  molgraph,
Util.BitSet  fp 
)

Generates the fingerprint of the molecular graph molgraph.

Parameters
molgraphThe molecular graph for which to generate the fingerprint.
fpThe generated fingerprint.