Search molecular libraries for specific structural patterns using SMARTS. Filter compounds by functional groups, pharmacophores, or scaffold features.
pip install rdkit
Tell your AI agent what you want to do: - "Find all compounds with a carboxylic acid group" - "Filter out molecules containing reactive groups" - "Search for benzimidazole scaffold in my library" - "Highlight the matched atoms in my molecule"
"Find all molecules containing a primary amine."
"Search for compounds with both hydroxyl and carbonyl groups."
"Remove compounds with nitro groups or Michael acceptors."
"Keep only molecules with aromatic rings."
"Show me the carboxylic acid group highlighted in this molecule."
"Mark the matched substructure in red."
[OX2H], [NH2], [CX3]; atom-only queries such as [NH2] do not define the neighboring functional-group context[OX2H] neutral hydroxyl, [NX3;H2;$(N-[#6]);!$(N-[C,S,P]=[O,S,N])] carbon-substituted primary amine excluding common amide-like N, and c1ccccc1 an aromatic six-cycle (including cycles embedded in fused systems)