HomeAI & Machine LearningMolecule Screening Engine — Similarity Search Live

🧪 Molecule Screening Engine — Similarity Search Live

Screen a synthetic compound library against a target molecular fingerprint using real Tanimoto similarity, watching candidate molecules rank and cluster by chemical likeness in real time.

AI & Machine Learning3DAdvanced60 FPS
ai-drug-discovery-molecule-screening ↗ Open standalone

About this simulation

This engine performs a genuine similarity-search workflow used throughout early-stage drug discovery: a target molecular fingerprint — a 128-bit vector standing in for real substructure keys like ECFP or MACCS — is compared against every member of a synthetic compound library using the exact Tanimoto (Jaccard) coefficient, |A∩B| / |A∪B|. Every candidate is ranked live by that real score, a threshold slider marks off genuine "hits", and a similarity-based cluster map positions each molecule by its actual computed distance from the target, so chemically similar scaffolds visibly group together.

🔬 What it shows

128-bit synthetic fingerprints for a target molecule and a library of 20–300 candidates, generated from a handful of "scaffold" families at varying mutation distances from the target. Every candidate's Tanimoto score against the target is computed directly from its bit vector — nothing is faked or pre-scripted.

🎮 How to use

Randomize the target fingerprint or its bit density, resize the library and its scaffold diversity, and drag the hit threshold to see the orange cutoff ring redraw and the hit count update. Switch between the cluster map, rank-only and histogram views, and click any node to inspect it.

💡 Did you know?

Real virtual-screening campaigns routinely rank libraries of millions of compounds by Tanimoto similarity to a known active molecule before ever synthesising anything, because structurally similar compounds are far more likely to share biological activity — a principle called the "similarity property principle".

Frequently asked questions

What is Tanimoto similarity and why is it used for molecules?

Tanimoto similarity (also called the Jaccard coefficient in this binary form) measures overlap between two sets as |A ∩ B| / |A ∪ B| — the number of shared members divided by the number of members in either set. Applied to molecular fingerprints, where each bit flags the presence of a substructure or feature, it gives a score from 0 (no shared features) to 1 (identical fingerprints). It is the de-facto standard similarity metric in cheminformatics because it is simple, fast to compute on bit vectors, and correlates well with shared biological activity between compounds.

What is a molecular fingerprint?

A molecular fingerprint encodes a compound's structure as a fixed-length bit vector, where each bit (or hashed bit position) represents the presence or absence of a particular substructure, functional group, or circular atom environment. Real cheminformatics tools compute fingerprints like ECFP or MACCS keys from a molecule's actual graph structure. This simulation uses simplified synthetic 128-bit vectors to demonstrate the same downstream mathematics — the similarity search, ranking, and clustering logic — without requiring a real chemistry parser.

How does virtual screening use similarity search?

Virtual screening ranks a large compound library by similarity to a known active molecule (the target), on the assumption that structurally similar molecules tend to share biological activity. In practice this lets researchers prioritise a small number of promising candidates from a library of millions for expensive laboratory testing, rather than testing everything blindly. This simulation reproduces that exact ranking step: every candidate's real Tanimoto score against the target determines its position in the ranked list.

Why do the candidates cluster into groups on the map?

The synthetic library is generated from a handful of scaffold fingerprints, each built by mutating the target fingerprint by a different amount, then each candidate is a further small mutation of one scaffold. That mirrors how real compound libraries contain chemical series (families of related analogues) rather than pure random noise. Because node position is derived directly from each candidate's Tanimoto score, molecules from the same scaffold family naturally land near each other, and the whole cluster moves closer to the target sphere as similarity increases.

Is this a real cheminformatics computation or just a visual effect?

The similarity mathematics is real: every score shown is the exact |A∩B|/|A∪B| Tanimoto coefficient computed over live 128-bit vectors, recalculated whenever the target, library size, scaffold diversity, or threshold changes. What is synthetic is the chemistry itself — the fingerprints are procedurally generated bit patterns rather than derived from real molecular graphs, since there is no chemistry parser running in the browser. The ranking, thresholding, and score distribution you see are genuine outputs of that computation, not scripted animation.

⚙ Under the hood

Every candidate is a real 128-bit substructure fingerprint, scored against the target with the exact Tanimoto/Jaccard coefficient and re-ranked live as parameters change.

Three.jsCheminformaticsTanimoto SimilarityVirtual Screening

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install