wiki.crvscience.com • 1920 Articles
📡 Wiki RSS

Science Wiki

AI-assisted, human-supervised knowledge wiki spanning Earth & climate systems, genetics, molecular biophysics, vector entomology, and astrobiology.

← Wiki Index / Biochemistry & Biophysics / Molecular Fingerprint
🔬 Biochemistry & Biophysics

Molecular Fingerprint

A molecular fingerprint is a binary bit vector or integer count array that encodes the topological substructures, circular atomic neighborhoods, or 3D pharmacophores of a molecule for rapid chemical similarity searching and machine learning.

Molecular fingerprint is a mathematical representation in chemoinformatics that encodes the structural features, topological bond paths, circular atomic environments, or three-dimensional pharmacophore patterns of a chemical compound as a fixed-length binary bit vector (x ∈ {0, 1}L, typically L = 166, 881, 1,024, or 2,048 bits) or sparse integer count vector (x ∈ ℕ0L). Because testing two arbitrary molecular graphs for exact subgraph isomorphism or maximum common subgraph (MCS) overlap is an NP-hard combinatorial problem, transforming molecules into bit vectors reduces chemical comparison to hardware-accelerated bitwise logical operations (AND, OR, XOR, and population count POPCNT), enabling a single CPU core to compute pairwise similarity across 106 to 107 molecules per second during virtual screening.

Originally developed in the 1970s and 1980s at Molecular Design Limited (MDL) and Daylight Chemical Information Systems as bit-screens to pre-filter database records before running Ullmann subgraph isomorphism searches, molecular fingerprints evolved following the formulation of Mark Johnson and Gerald Maggiora's (1990) Similarity Property Principle and David Rogers and Mathew Hahn's (2010) Extended-Connectivity Fingerprints (ECFPs) into the primary feature input for quantitative structure–activity relationship (QSAR) regression, library diversity clustering, and chemical space manifold visualization.

Taxonomy of Molecular Fingerprints: Dictionary, Path, Circular, and 3D

Structural Key (Dictionary-Based) Fingerprints

In a dictionary-based fingerprint (or structural key), each bit position k ∈ {1, ..., *L*} is mapped 1-to-1 to a predefined chemical substructure, functional group, ring system, or element count specified as a SMARTS pattern in a fixed lookup table. If the query substructure is present in the molecule at least once, bit k is set to 1; otherwise, it remains 0:

  • MACCS (Molecular ACCess System) 166-Bit Keys: Developed by MDL Information Systems, the public 166-bit MACCS fingerprint evaluates 166 common organic fragments (e.g., whether the molecule contains a 6-membered aromatic ring, a sulfonamide group, a halogen atom, or >1 oxygen atom).
  • PubChem 881-Bit Substructure Fingerprint: Used across PubChem and ChEMBL for substructure pre-screening and 2D similarity indexing, partitioned into hierarchical sections covering element counts, ring topologies, atom pairs, and smarts-defined functional groups.

Because dictionary fingerprints can only detect fragments explicitly anticipated by their authors, molecules lacking unusual dictionary patterns yield sparse vectors, motivating open-ended hashed fingerprints.

Topological Path-Based and Atom-Pair Fingerprints

Path-based hashed fingerprints—exemplified by the Daylight Fingerprint and the RDKit Topological Fingerprint—require no predefined fragment dictionary. Instead, the algorithm exhaustively enumerates all linear and branched covalent bond paths up to a specified path length (typically l = 1 to 7 bonds) through the molecular graph. Each extracted path string (recording atom types and bond orders) is passed to a deterministic pseudo-random number generator (PRNG) or cyclic redundancy hash function that sets between 1 and 4 bit positions in a fixed 1,024- or 2,048-bit array via modulo arithmetic (bit_index = hash(path) mod L). Related topological encodings include Raymond Carhart's (1985) Atom-Pair (AP) fingerprint, which encodes all pairs of heavy atoms together with the shortest topological bond path separating them (AtomType_i - Distance_ij - AtomType_j), and Topological Torsion (TT) fingerprints (Nilakantan et al., 1987), which encode linear sequences of four consecutively bonded heavy atoms.

Extended-Connectivity Circular Fingerprints (ECFP / Morgan)

Formulated by David Rogers and Mathew Hahn in 2010 as a modification of H. L. Morgan's (1965) canonical graph numbering algorithm, Extended-Connectivity Fingerprints (ECFPs)—implemented in RDKit as Morgan Fingerprints—are the gold-standard 2D representation for bioactivity prediction and QSAR modeling. Instead of linear paths, ECFP captures concentric circular neighborhoods around every heavy atom up to a specified bond radius r (where diameter d = 2*r*; thus r = 2 corresponds to ECFP4 [4-bond diameter] and r = 3 corresponds to ECFP6 [6-bond diameter]):

  1. Initial Atom Identifier Assignment (r = 0): Every non-hydrogen atom i is hashed into an initial 32-bit signed integer identifier Ii(0) derived from six Daylight atomic invariants: number of heavy-atom neighbors, valence minus attached hydrogens, atomic number, atomic mass, formal charge, and attached hydrogen count (plus ring membership). In Functional-Class Fingerprints (FCFP4 / FCFP6), this initial state is replaced by a 6-bit pharmacophoric role code (hydrogen-bond donor, hydrogen-bond acceptor, positively ionizable, negatively ionizable, aromatic, or halogen).
  2. Iterative Neighborhood Updating (r = 1, ..., R): In each iteration k, atom i collects its own current identifier Ii(k−1) together with the bond orders and identifiers (bij, Ij(k−1)) of all directly bonded neighbor atoms j, sorts the neighbor list canonically, and hashes the array into a new 32-bit integer Ii(k).
  3. Duplicate Removal and Modulo Folding: Substructures spanning an identical set of bonds from different center atoms are deduplicated, and the surviving 32-bit integers are folded into a fixed-length binary vector of L = 1,024 or 2,048 bits via index = I mod L.

3D Pharmacophore and Shape Fingerprints

To capture stereoelectronic recognition independent of 2D covalent connectivity (scaffold hopping), 3D pharmacophore fingerprints (such as 3D-PP and 4-point pharmacophore signatures) bin the Euclidean distances (in Ångströms) among triads or tetrads of pharmacophoric features across conformational ensembles, while Extended 3D Fingerprints (E3FP, Axen et al., 2017) generalize the iterative Morgan shell expansion to three-dimensional spherical shells in Cartesian space.

Fingerprint ClassCanonical ExampleTypical Vector Length (L)Feature Extraction MechanismEmpirical Active Threshold (Tc)
Dictionary / Structural KeyMACCS Keys; PubChem Fingerprint166 bits (MACCS); 881 bits (PubChem)Predefined SMARTS functional-group dictionary lookupTc ≥ 0.80–0.85 (MACCS)
Topological Path-BasedDaylight / RDKit Topological1,024 or 2,048 bitsExhaustive enumeration & hashing of 1–7 bond pathsTc ≥ 0.65–0.70
Topological Atom-Pair / TorsionCarhart Atom-Pairs (AP); Torsions (TT)2,048 bits (or sparse counts)Shortest-path distance pairs (i, dij, j) or 4-atom dihedralsTc ≥ 0.50–0.60
Circular / Morgan (Atom Type)ECFP4 (r = 2); ECFP6 (r = 3)1,024 or 2,048 bitsConcentric Morgan neighborhood hashing of radius rTc ≥ 0.40–0.55 (ECFP4)
Circular PharmacophoricFCFP4 (r = 2); FCFP6 (r = 3)1,024 or 2,048 bitsCircular shells over HBD/HBA/aromatic/ionizable rolesTc ≥ 0.50–0.65
3D Conformational ShellE3FP (Extended 3D Fingerprint)1,024 or 2,048 bits3D spherical coordinate shells around heavy atomsTc ≥ 0.25–0.35

Quantitative Similarity Metrics and Bit-Collision Trade-offs

Tanimoto, Dice, Cosine, and Asymmetric Tversky Indices

Given two binary fingerprints A and B of length L, let a = ∑ Ak be the count of active (1) bits in molecule A, b = ∑ Bk be the count of active bits in molecule B, and c = ∑ (Ak ∧ Bk) be the count of shared bits active in both molecules. The standard similarity metric in chemoinformatics—validated across large-scale benchmarks by Dávid Bajusz, Anita Rácz, and Károly Héberger (2015)—is the Tanimoto coefficient (Tc, or Jaccard index):

Tc(A, B) = c / (a + b − c)

Alternative symmetric coefficients include the Dice (Sørensen–Dice) coefficient, SDice = 2*c* / (a + b) (which is monotonic with Tc via SDice = 2*T*c / (1 + Tc)), and the Cosine (Ochiai) similarity, SCos = c / √(ab). When comparing a small fragment or lead molecule A against a larger elaborated drug candidate B, symmetric metrics penalize the extra bits in B; chemists then employ the asymmetric Tversky index:

STversky(A, B; α, β) = c / [ α(a − c) + β(b − c) + c ]

where setting α = 1, β = 0 measures the fraction of query *A*'s substructures embedded within target B (superstructure similarity), and α = β = 1 recovers the Tanimoto coefficient.

Modulo Folding, Bit Collisions, and Neural Fingerprints

When hashing 232 ≈ 4.29 × 109 possible circular environments into a compact vector of L = 1,024 bits, two unrelated chemical substructures occasionally map to the same bit index—a phenomenon known as a bit collision, which artificially inflates similarity scores and obscures feature interpretability in QSAR models. Increasing vector length to L = 2,048 or 4,096 bits or using unfolded sparse integer count maps eliminates bit collisions, while end-to-end differentiable graph neural networks (Duvenaud et al., 2015) replace fixed modulo hashing with learned continuous embedding vectors (h ∈ ℝd).

Frequently Asked Questions

What is the difference between ECFP4 and Morgan radius-2 fingerprints?

ECFP4 (Extended-Connectivity Fingerprint of diameter 4) and Morgan fingerprint with radius 2 refer to the same circular topological algorithm, differing only in naming convention and minor default atomic invariants. In the original Pipeline Pilot specification by Rogers and Hahn (2010), the number appended to ECFP denotes the effective bond diameter (d = 2*r*) of the largest circular substructure captured, so two iterations (r = 2) around a central atom span a 4-bond diameter (ECFP4), and three iterations (r = 3) span a 6-bond diameter (ECFP6). Open-source toolkits such as RDKit parameterize the function by the bond radius (radius=2 for ECFP4, radius=3 for ECFP6).

When should a researcher use FCFP4 or 3D fingerprints instead of ECFP4?

Standard ECFP4 hashes exact atomic numbers and bond orders, meaning a pyridine ring and a benzene ring—or a carboxylic acid (–COOH) and its bioisosteric tetrazole ring—generate completely non-overlapping bit identifiers despite forming analogous non-covalent interactions in a protein active site. When the goal is scaffold hopping (discovering a structurally distinct, patentable core scaffold that preserves hydrogen-bonding and ionic interactions), FCFP4 (which abstracts atoms into six pharmacophoric functional classes) or 3D pharmacophore/E3FP fingerprints outperform ECFP4 by matching functional geometry rather than exact atom types.

Why does Tanimoto similarity show a molecular-size bias for very small or very large molecules?

Because the Tanimoto denominator (a + b − c) is governed by the total number of active on-bits (a and b), two small fragment molecules (MW < 200 Da) that each activate only 8 to 12 bits in a 2,048-bit ECFP4 vector have a low probability of sharing bits unless they are nearly identical, whereas two large natural products (MW > 700 Da) activating 120 bits each exhibit elevated baseline similarity. To correct for size asymmetry when screening fragments against lead-like compounds, chemoinformaticians use the asymmetric Tversky index (e.g., α = 0.9, β = 0.1) or size-normalized Boltzmann similarity scores.

References

  1. Rogers, D., & Hahn, M. (2010). Extended-connectivity fingerprints. Journal of Chemical Information and Modeling, 50(5), 742–754. https://doi.org/10.1021/ci100050t
  2. Bajusz, D., Rácz, A., & Héberger, K. (2015). Why is Tanimoto index an appropriate choice for fingerprint-based similarity calculations? Journal of Cheminformatics, 7(1), 20. https://doi.org/10.1186/s13321-015-0069-3
  3. Durant, J. L., Leland, B. A., Henry, D. R., & Nourse, J. G. (2002). Reoptimization of MDL keys for use in drug discovery. Journal of Chemical Information and Computer Sciences, 42(6), 1273–1280. https://doi.org/10.1021/ci010132r
  4. Axen, S. D., Huang, X. P., Cáceres, E. L., Gendelev, L., Roth, B. L., & Keiser, M. J. (2017). A simple representation of three-dimensional molecular structure. Journal of Medicinal Chemistry, 60(17), 7393–7409. https://doi.org/10.1021/acs.jmedchem.7b00696
🧬 Support Open Science
Explore interactive science games on LowKey Games or browse scientific apparel & accessories in the CRV Science Shop.
💡 Spot an inaccuracy or have primary literature to expand this article?
Submit a citation or revision note using your shared CRV Science / LowKey Games profile ID.
Suggest Revision