chemaxon.fingerprints
In this package you can find functions for fingerprint calculations.
GitHub examples: https://github.com/ChemAxon/python-examples/blob/main/jupyter/08_fingerprint_calculations.ipynb
Chemical Fingerprint calculation.
The chemical hashed fingerprint of a molecule is bitstring (a sequence of 0 and 1 digits) that contains information on the structure.
Link: https://docs.chemaxon.com/display/docs/fingerprints_chemical-hashed-fingerprint.html
Parameters
- mol:
chemaxon.Molecule- Input molecule - bond_count:
int- The maximum length of consecutive bonds in the linear paths that are considered during the fragmentation of the molecule - bits_per_pattern:
int- The number of bits used to code each pattern in the hashed binary vector representation - length:
int- Default length (bit count) for CFP - folded binary fingerprint representation - consider_rings:
bool- IfTrue, the presence of rings is considered during the fragmentation of the molecule
Returns
Fingerprint- The generated CFP fingerprint
Extended Connectivity Fingerprint calculation.
Extended-Connectivity Fingerprints (ECFPs) are circular topological fingerprints designed for molecular characterization, similarity searching, and structure-activity modeling. They are among the most popular similarity search tools in drug discovery, and they are effectively used in a wide variety of applications.
Link: https://docs.chemaxon.com/display/docs/fingerprints_extended-connectivity-fingerprint-ecfp.html
Parameters
- mol:
chemaxon.Molecule- Input molecule - diameter:
int- It specifies the diameter of the circular neighborhood considered for each atom - length:
int- Sets the length of the ECFP fingerprint
Returns
Fingerprint- The generated ECFP fingerprint
Generic fingerprint representation This class is the result class of fingerprint generation algorithms.
Fingerprint - every bit of every int (64 bit) in the list represents a fingerprint bit
Generic float vector fingerprint representation This class is the result class of fingerprint generation algorithms.
Pharmacophore fingerprint calculation.
Pharmacophore fingerprints attempt to model binding related structural or chemical properties of chemical compounds with the use of simple statistics of chemical features. In the case of pharmacophore fingerprints generated these features are always assigned to individual atoms of the molecule thus these fingerprints are atom based pharmacophore fingerprints.
Link: https://docs.chemaxon.com/display/docs/fingerprints_pharmacophore-fingerprint.html
Parameters
- mol:
chemaxon.Molecule- Input molecule
Returns
FloatVectorFingerprint- The generated pharmacophore fingerprint
Reaction fingerprint calculation.
Reaction fingerprints are designed to capture the structural features of chemical reactions.
Link: https://docs.chemaxon.com/display/docs/fingerprints_reaction-fingerprint.html
Parameters
- mol:
chemaxon.Molecule- Input reaction molecule - length:
int- Length of the generated fingerprint. Must be a power of 2. Default value is2048. - bond_count:
int- Maximum bond count to be considered for the fingerprint. Default value is6. - bits_set:
int- Number of bits to set for each feature. Default value is2.
Returns
Fingerprint- The generated reaction fingerprint
Calculates the Tanimoto similarity coefficient of the two Fingerprint.
Parameters
- fp1:
Fingerprint- First fingerprint - fp2:
Fingerprint- Second fingerprint
Returns
float- The calculated Tanimoto coefficient (value between 0 and 1, where 1 means identical fingerprints)
Calculates the Tanimoto similarity coefficient of the two Fingerprint.
Parameters
- fp1:
FloatVectorFingerprint- First fingerprint - fp2:
FloatVectorFingerprint- Second fingerprint
Returns
float- The calculated Tanimoto coefficient (value between 0 and 1, where 1 means identical fingerprints)