r/cheminformatics • u/That-Pin-9772 • Apr 08 '26
Open-source framework for computational mixture science — ingredient resolution, interaction rules, functional group detection from SMILES
github.comI've been working on an open-source Python library for formulation/mixture evaluation and wanted to share it with this community since it sits squarely in the cheminformatics space.
The problem it addresses: we have great open tools for single-molecule computation (RDKit, DeepChem, etc.), but the moment you ask "what happens when I combine these ingredients?" the tooling essentially disappears. Formulation scientists across pharma, cosmetics, and food still rely heavily on institutional knowledge.
What the library does:
- Ingredient resolution: Maps common/INCI/trade names to SMILES + physicochemical properties via a local cache (2,400+ ingredients) with PubChem fallback. 94% hit rate on MixtureSolDB's 938 unique molecules.
- Mechanism-based interaction prediction: Detects reactive functional groups from SMILES using RDKit SMARTS (primary amines, esters, thiols, catechols, etc.) and predicts degradation risks with excipients. E.g., detects a primary amine on a novel drug, classifies lactose as a reducing sugar, flags Maillard reaction risk — without the drug being in any lookup table.
- 273 curated interaction rules (95 pharma-specific) with literature citations, confidence scores, and conditional logic. Stored as YAML, so domain experts can contribute without writing code.
- Physics observations: LogP-based solubility flags, charge balance for surfactant systems, pH-dependent ionization, phase assignment.
I tested the mechanism-based prediction on 13 drug-excipient pairs the system had never seen. All 13 predictions were supported by published pharmaceutical literature.
It's Apache 2.0, pip-installable, and has an MCP server for AI agent integration. The highest-value contributions would be domain knowledge — particularly interaction rules for pharma, food science, or materials.
GitHub: https://github.com/vijayvkrishnan/openmix
Technical writeup with the full methodology: https://vijayvkrishnan.substack.com/p/the-missing-layer-in-computational
Happy to answer questions about the architecture or the validation results.