Development preview. Not validated. Not for clinical decision making.
Please select an antibiotic.
PenicillinX predicts which beta-lactam antibiotics are likely to cross-react, by measuring how chemically similar their side chains are. It is a companion to a chemoinformatics manuscript, and displays precomputed results — no analysis runs in your browser.
Every drug here shares the same beta-lactam core, so the core cannot explain why a patient reacts to one drug and tolerates another. Hypersensitivity is instead largely driven by the side chains hanging off that core: the R1 group, and for cephalosporins the R2 group. Each molecule is drawn with its beta-lactam ring shaded blue so you can see the shared anatomy, and matched side chain atoms circled in red (R1) or blue (R2).
Compare answers "my patient reacted to these drugs — what do they share?". Pick up to three antibiotics and see them drawn side by side, with the prediction for every pair underneath.
Matrix shows all 51 antibiotics against each other at once. Cell colour is the published ground truth from Hutten et al. (2025); the dot on top is this model's prediction. The interesting cells are where the two disagree.
| No cross-reactivity | |
| Cross-reactivity | |
| Discrepancy between source studies | |
| No data | |
| Same drug |
| R1-driven | |
| R2-exclusive — R1 similarity fell below threshold | |
| R1 and R2 both fired independently |
The R2-exclusive case is the novel finding of the accompanying work: pairs that look unrelated by their R1 groups, but share an R2 group closely enough to matter.
Seven algorithms vote, combined by logical OR — a pair is predicted to cross-react if any of them fires. Four compare whole-molecule fingerprints and return a single similarity score; three identify the specific atoms responsible and can therefore drive the highlighting.
| Algorithm | Threshold | Highlights atoms |
|---|---|---|
| Direct Matching (DM) | substructure test | yes |
| Permissive SMARTS Direct Matching (PDM) | substructure test | yes |
| Maximum Common Substructure (MCS) | 0.8998 | yes |
| Morgan Dice (MD) | 0.4798 | no |
| Pharmacophore Dice | 0.6714 | no |
| MACCS Dice | 0.7745 | no |
| Atom Pairs Dice (AP) | 0.5281 | no |
Thresholds were optimised by differential evolution against a specificity floor of 0.95. DM and PDM are unthresholded binary substructure tests.
Because the four fingerprint methods fire on aggregate similarity, they have no per-atom attribution. A pair can therefore report a high algorithm count with no atoms highlighted at all — the molecules are broadly similar without sharing one specific region. This is expected, not a fault.
Results must not inform clinical decision making to any extent.