A fingerprint converts a variable-sized structure into a fixed-length numeric vector that records which local features are present. It makes molecules directly comparable as points, at the cost of discarding the structure itself.
Tanimoto similarity
For two binary fingerprints, let \(a\) and \(b\) be the number of features set in each and \(c\) the number set in both. Then \[ T = \frac{c}{a + b - c} \] gives a value between 0 and 1. A value near 1 means the two molecules share most of their features; a value near 0 means they share almost none. The measure is a similarity score, not a probability.
Graph or SMILES
- Variable length
- Full connectivity preserved
- Structure can be reconstructed
- Used when a model must build or edit a molecule
Fingerprint
- Fixed length
- Only presence of features recorded
- Structure cannot be recovered
- Used when a model must compare or rank molecules