rdkit.Chem.Draw.SimilarityMaps module — The RDKit 2025.03.3 documentation (original) (raw)

rdkit.Chem.Draw.SimilarityMaps.GetAPFingerprint(mol, atomId=-1, fpType='normal', nBits=2048, minLength=1, maxLength=30, nBitsPerEntry=4, **kwargs)

Calculates the atom pairs fingerprint with the torsions of atomId removed.

Parameters:

rdkit.Chem.Draw.SimilarityMaps.GetAtomicWeightsForFingerprint(refMol, probeMol, fpFunction, metric=<Boost.Python.function object>)

Calculates the atomic weights for the probe molecule based on a fingerprint function and a metric.

Parameters:

Note

If fpFunction needs additional parameters, use a lambda construct

rdkit.Chem.Draw.SimilarityMaps.GetAtomicWeightsForModel(probeMol, fpFunction, predictionFunction)

Calculates the atomic weights for the probe molecule based on a fingerprint function and the prediction function of a ML model.

Parameters:

rdkit.Chem.Draw.SimilarityMaps.GetMorganFingerprint(mol, atomId=-1, radius=2, fpType='bv', nBits=2048, useFeatures=False, **kwargs)

Calculates the Morgan fingerprint with the environments of atomId removed.

Parameters:

any additional keyword arguments will be passed to the fingerprinting function.

rdkit.Chem.Draw.SimilarityMaps.GetRDKFingerprint(mol, atomId=-1, fpType='bv', nBits=2048, minPath=1, maxPath=5, nBitsPerHash=2, **kwargs)

Calculates the RDKit fingerprint with the paths of atomId removed.

Parameters:

rdkit.Chem.Draw.SimilarityMaps.GetSimilarityMapForFingerprint(refMol, probeMol, fpFunction, draw2d, metric=<Boost.Python.function object>, **kwargs)

Generates the similarity map for a given reference and probe molecule, fingerprint function and similarity metric.

Parameters:

rdkit.Chem.Draw.SimilarityMaps.GetSimilarityMapForModel(probeMol, fpFunction, predictionFunction, draw2d, **kwargs)

Generates the similarity map for a given ML model and probe molecule, and fingerprint function.

Parameters:

rdkit.Chem.Draw.SimilarityMaps.GetSimilarityMapFromWeights(mol, weights, draw2d, colorMap=None, scale=-1, size=(250, 250), sigma=None, coordScale=1.5, step=0.01, colors='k', contourLines=10, alpha=0.5, gridResolution=0.1, extraGridPadding=0.5, useFillThreshold=False, fillThreshold=0.01, fillThresholdIsFraction=True, **kwargs)

Generates the similarity map for a molecule given the atomic weights.

Parameters:

rdkit.Chem.Draw.SimilarityMaps.GetStandardizedWeights(weights)

Normalizes the weights, such that the absolute maximum weight equals 1.0.

Parameters:

weights (weights -- the list with the atomic) –

rdkit.Chem.Draw.SimilarityMaps.GetTTFingerprint(mol, atomId=-1, fpType='normal', nBits=2048, targetSize=4, nBitsPerEntry=4, **kwargs)

Calculates the topological torsion fingerprint with the pairs of atomId removed.

Parameters:

any additional keyword arguments will be passed to the fingerprinting function.