![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Contains classes and functions related to the generation and processing of pharmacophore and molecule descriptors. More...
Functions | |
| float | calcCosineSimilarity (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Cosine Similarity [WCOS] of the bitsets bs1 and bs2. More... | |
| float | calcCosineSimilarity (Math.DVector v1, Math.DVector v2) |
| Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2. More... | |
| float | calcCosineSimilarity (Math.FVector v1, Math.FVector v2) |
| Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2. More... | |
| float | calcCosineSimilarity (Math.LVector v1, Math.LVector v2) |
| Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2. More... | |
| float | calcCosineSimilarity (Math.ULVector v1, Math.ULVector v2) |
| Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2. More... | |
| float | calcDiceSimilarity (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Dice Similarity [GSIM] of the bitsets bs1 and bs2. More... | |
| float | calcEuclideanDistance (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Euclidean Distance [CITB] between the bitsets bs1 and bs2. More... | |
| float | calcEuclideanDistance (Math.DVector v1, Math.DVector v2) |
| Calculates the Euclidean Distance [CITB] between the vectors v1 and v2. More... | |
| float | calcEuclideanDistance (Math.FVector v1, Math.FVector v2) |
| Calculates the Euclidean Distance [CITB] between the vectors v1 and v2. More... | |
| float | calcEuclideanDistance (Math.LVector v1, Math.LVector v2) |
| Calculates the Euclidean Distance [CITB] between the vectors v1 and v2. More... | |
| float | calcEuclideanDistance (Math.ULVector v1, Math.ULVector v2) |
| Calculates the Euclidean Distance [CITB] between the vectors v1 and v2. More... | |
| float | calcEuclideanSimilarity (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Euclidean Similarity [GSIM] of the bitsets bs1 and bs2. More... | |
| float | calcGeometricalDiameter (Chem.AtomContainer cntnr, Chem.Atom3DCoordinatesFunction coords_func) |
| Calculates the geometrical diameter of the atoms in cntnr. More... | |
| float | calcGeometricalDiameter (Chem.Entity3DContainer cntnr) |
| float | calcGeometricalRadius (Chem.AtomContainer cntnr, Chem.Atom3DCoordinatesFunction coords_func) |
| Calculates the geometrical radius of the atoms in cntnr. More... | |
| float | calcGeometricalRadius (Chem.Entity3DContainer cntnr) |
| int | calcHammingDistance (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Hamming Distance [WHAM, CITB] between the bitsets bs1 and bs2. More... | |
| float | calcKierShape1 (Chem.MolecularGraph molgraph) |
| float | calcKierShape2 (Chem.MolecularGraph molgraph) |
| float | calcKierShape3 (Chem.MolecularGraph molgraph) |
| float | calcManhattanDistance (Math.DVector v1, Math.DVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | calcManhattanDistance (Math.FVector v1, Math.FVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | calcManhattanDistance (Math.LVector v1, Math.LVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | calcManhattanDistance (Math.ULVector v1, Math.ULVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | calcManhattanSimilarity (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Manhattan Similarity [GSIM] of the bitsets bs1 and bs2. More... | |
| float | calcMolecularComplexity (Chem.MolecularGraph molgraph) |
| float | calcRandicIndex (Chem.MolecularGraph molgraph) |
| float | calcRingComplexity (Chem.MolecularGraph molgraph) |
| float | calcTanimotoSimilarity (Util.BitSet bs1, Util.BitSet bs2) |
| Calculates the Tanimoto Similarity [CITB] of the bitsets bs1 and bs2. More... | |
| float | calcTanimotoSimilarity (Math.DVector v1, Math.DVector v2) |
| Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2. More... | |
| float | calcTanimotoSimilarity (Math.FVector v1, Math.FVector v2) |
| Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2. More... | |
| float | calcTanimotoSimilarity (Math.LVector v1, Math.LVector v2) |
| Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2. More... | |
| float | calcTanimotoSimilarity (Math.ULVector v1, Math.ULVector v2) |
| Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2. More... | |
| int | calcTopologicalDiameter (Chem.MolecularGraph molgraph) |
| int | calcTopologicalRadius (Chem.MolecularGraph molgraph) |
| int | calcTotalWalkCount (Chem.MolecularGraph molgraph) |
| float | calcTverskySimilarity (Util.BitSet bs1, Util.BitSet bs2, float a, float b) |
| Calculates the Tversky Similarity [GSIM] of the bitsets bs1 and bs2. More... | |
| int | calcWienerIndex (Chem.MolecularGraph molgraph) |
| int | calcZagrebIndex1 (Chem.MolecularGraph molgraph) |
| int | calcZagrebIndex2 (Chem.MolecularGraph molgraph) |
Contains classes and functions related to the generation and processing of pharmacophore and molecule descriptors.
| float CDPL.Descr.calcCosineSimilarity | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Cosine Similarity [WCOS] of the bitsets bs1 and bs2.
The Cosine Similarity \( S_{ab} \) is calculated by:
\[ S_{ab} = \frac{N_{ab}}{\sqrt{N_a * N_b}} \]
where \( N_{ab} \) is the number of bits that are set in both bitsets, \( N_a \) is the number of bits that are set in the first bitset and \( N_b \) is the number of bits that are set in the second bitset.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcCosineSimilarity | ( | Math.DVector | v1, |
| Math.DVector | v2 | ||
| ) |
Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2.
The Cosine Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}{\left \| \vec{v}_2 \right \|}} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcCosineSimilarity | ( | Math.FVector | v1, |
| Math.FVector | v2 | ||
| ) |
Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2.
The Cosine Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}{\left \| \vec{v}_2 \right \|}} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcCosineSimilarity | ( | Math.LVector | v1, |
| Math.LVector | v2 | ||
| ) |
Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2.
The Cosine Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}{\left \| \vec{v}_2 \right \|}} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcCosineSimilarity | ( | Math.ULVector | v1, |
| Math.ULVector | v2 | ||
| ) |
Calculates the Cosine Similarity [WCOS] of the vectors v1 and v2.
The Cosine Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}{\left \| \vec{v}_2 \right \|}} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcDiceSimilarity | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Dice Similarity [GSIM] of the bitsets bs1 and bs2.
The Dice Similarity \( S_{ab} \) is calculated by:
\[ S_{ab} = \frac{2 * N_{ab}}{N_a + N_b + 2 * N_{ab}} \]
where \( N_{ab} \) is the number of bits that are set in both bitsets, \( N_a \) is the number of bits that are only set in the first bitset and \( N_b \) is the number of bits that are only set in the second bitset.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcEuclideanDistance | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Euclidean Distance [CITB] between the bitsets bs1 and bs2.
The Euclidean Distance \( D_{ab} \) is calculated by:
\[ D_{ab} = \sqrt{N_a + N_b} \]
where \( N_a \) is the number of bits that are set in the first bitset but not in the second bitset and \( N_b \) is the number of bits that are set in the second bitset but not in the first one.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcEuclideanDistance | ( | Math.DVector | v1, |
| Math.DVector | v2 | ||
| ) |
Calculates the Euclidean Distance [CITB] between the vectors v1 and v2.
The Euclidean Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcEuclideanDistance | ( | Math.FVector | v1, |
| Math.FVector | v2 | ||
| ) |
Calculates the Euclidean Distance [CITB] between the vectors v1 and v2.
The Euclidean Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcEuclideanDistance | ( | Math.LVector | v1, |
| Math.LVector | v2 | ||
| ) |
Calculates the Euclidean Distance [CITB] between the vectors v1 and v2.
The Euclidean Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcEuclideanDistance | ( | Math.ULVector | v1, |
| Math.ULVector | v2 | ||
| ) |
Calculates the Euclidean Distance [CITB] between the vectors v1 and v2.
The Euclidean Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcEuclideanSimilarity | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Euclidean Similarity [GSIM] of the bitsets bs1 and bs2.
The Euclidean Similarity \( S_{ab} \) is calculated by:
\[ S_{ab} = \sqrt{\frac{N_{ab} + N_{!ab}}{N_a + N_b + N_{ab} + N_{!ab}}} \]
where \( N_{ab} \) is the number of bits that are set in both bitsets, \( N_a \) is the number of bits that are set only in the first bitset, \( N_b \) is the number of bits that are set only in the second bitset and \( N_{!ab} \) is the number of bits that are not set in both bitsets.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcGeometricalDiameter | ( | Chem.AtomContainer | cntnr, |
| Chem.Atom3DCoordinatesFunction | coords_func | ||
| ) |
Calculates the geometrical diameter of the atoms in cntnr.
The geometrical diameter is the maximum distance between any pair of atoms in the container. If cntnr contains at most one atom, 0 is returned.
| cntnr | The container with the atoms for which to calculate the geometrical diameter. |
| coords_func | A function that provides the 3D coordinates of an atom. |
| float CDPL.Descr.calcGeometricalDiameter | ( | Chem.Entity3DContainer | cntnr | ) |
| cntnr |
| float CDPL.Descr.calcGeometricalRadius | ( | Chem.AtomContainer | cntnr, |
| Chem.Atom3DCoordinatesFunction | coords_func | ||
| ) |
Calculates the geometrical radius of the atoms in cntnr.
The geometrical radius is the minimum, taken over all atoms, of the maximum distance from a given atom to any other atom in the container. If cntnr contains at most one atom, 0 is returned.
| cntnr | The container with the atoms for which to calculate the geometrical radius. |
| coords_func | A function that provides the 3D coordinates of an atom. |
| float CDPL.Descr.calcGeometricalRadius | ( | Chem.Entity3DContainer | cntnr | ) |
| cntnr |
| int CDPL.Descr.calcHammingDistance | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Hamming Distance [WHAM, CITB] between the bitsets bs1 and bs2.
The Hamming Distance \( D_{ab} \) is calculated by:
\[ D_{ab} = N_a + N_b \]
where \( N_a \) is the number of bits that are set in the first bitset but not in the second bitset and \( N_b \) is the number of bits that are set in the second bitset but not in the first one.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcKierShape1 | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcKierShape2 | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcKierShape3 | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcManhattanDistance | ( | Math.DVector | v1, |
| Math.DVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|}_1 \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcManhattanDistance | ( | Math.FVector | v1, |
| Math.FVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|}_1 \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcManhattanDistance | ( | Math.LVector | v1, |
| Math.LVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|}_1 \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcManhattanDistance | ( | Math.ULVector | v1, |
| Math.ULVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
\[ D_{12} = {\left \| \vec{v}_1 - \vec{v}_2 \right \|}_1 \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcManhattanSimilarity | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Manhattan Similarity [GSIM] of the bitsets bs1 and bs2.
The Manhattan Similarity \( S_{ab} \) is calculated by:
\[ S_{ab} = 1 - \frac{N_a + N_b}{N_a + N_b + N_{ab} + N_{!ab}} \]
where \( N_{ab} \) is the number of bits that are set in both bitsets, \( N_a \) is the number of bits that are set only in the first bitset, \( N_b \) is the number of bits that are set only in the second bitset and \( N_{!ab} \) is the number of bits that are not set in both bitsets.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcMolecularComplexity | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcRandicIndex | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcRingComplexity | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcTanimotoSimilarity | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2 | ||
| ) |
Calculates the Tanimoto Similarity [CITB] of the bitsets bs1 and bs2.
The Tanimoto Similarity \( S_{ab} \) is calculated by:
\[ S_{ab} = \frac{N_{ab}}{N_a + N_b - N_{ab}} \]
where \( N_{ab} \) is the number of bits that are set in both bitsets, \( N_a \) is the number of bits that are set in the first bitset and \( N_b \) is the number of bits that are set in the second bitset.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| float CDPL.Descr.calcTanimotoSimilarity | ( | Math.DVector | v1, |
| Math.DVector | v2 | ||
| ) |
Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2.
The Tanimoto Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}^2 + {\left \| \vec{v}_2 \right \|}^2 - \vec{v}_1 \cdot \vec{v}_2} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcTanimotoSimilarity | ( | Math.FVector | v1, |
| Math.FVector | v2 | ||
| ) |
Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2.
The Tanimoto Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}^2 + {\left \| \vec{v}_2 \right \|}^2 - \vec{v}_1 \cdot \vec{v}_2} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcTanimotoSimilarity | ( | Math.LVector | v1, |
| Math.LVector | v2 | ||
| ) |
Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2.
The Tanimoto Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}^2 + {\left \| \vec{v}_2 \right \|}^2 - \vec{v}_1 \cdot \vec{v}_2} \]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.calcTanimotoSimilarity | ( | Math.ULVector | v1, |
| Math.ULVector | v2 | ||
| ) |
Calculates the Tanimoto Similarity [CITB] of the vectors v1 and v2.
The Tanimoto Similarity \( S_{12} \) is calculated by:
\[ S_{12} = \frac{\vec{v}_1 \cdot \vec{v}_2}{{\left \| \vec{v}_1 \right \|}^2 + {\left \| \vec{v}_2 \right \|}^2 - \vec{v}_1 \cdot \vec{v}_2} \]
| v1 | The first vector. |
| v2 | The second vector. |
| int CDPL.Descr.calcTopologicalDiameter | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| int CDPL.Descr.calcTopologicalRadius | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| int CDPL.Descr.calcTotalWalkCount | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| float CDPL.Descr.calcTverskySimilarity | ( | Util.BitSet | bs1, |
| Util.BitSet | bs2, | ||
| float | a, | ||
| float | b | ||
| ) |
Calculates the Tversky Similarity [GSIM] of the bitsets bs1 and bs2.
The Tversky Similarity \( S_{ab} \) is calculated by:
\[ S_{ab} = \frac{N_{ab}}{a * N_a + b * N_b + N_{ab}} \]
where \( N_{ab} \) is the number of bits that are set in both bitsets, \( N_a \) is the number of bits that are only set in the first bitset and \( N_b \) is the number of bits that are only set in the second bitset. \( a \) and \( b \) are bitset contribution weighting factors.
The Tversky measure is asymmetric. Setting the parameters \( a = b = 1.0 \) makes it identical to the Tanimoto measure.
If the specified bitsets bs1 and bs2 are of different size, missing bits at the end of the smaller bitset are assumed to be zero.
| bs1 | The first bitset. |
| bs2 | The second bitset. |
| a | Weights the contribution of the first bitset. |
| b | Weights the contribution of the second bitset. |
| int CDPL.Descr.calcWienerIndex | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| int CDPL.Descr.calcZagrebIndex1 | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |
| int CDPL.Descr.calcZagrebIndex2 | ( | Chem.MolecularGraph | molgraph | ) |
| molgraph |