SMILES
SMILES is a textual notation standard that encodes molecular atoms, bonds, and connectivity using defined symbols and grammar rules.
Build AI Drug Discovery Pipelines
SMILES is a line notation that encodes molecular atoms, bonds, and connectivity as a text string using defined symbols and grammar rules.
- How it is used
- Uses compact molecular strings as input representations for machine-learning models in drug discovery.
- How deep it goes
- Explains symbols, bonds, branches, rings, stereochemistry, equivalent strings, and RDKit graph conversion, but defers complete grammar details.
- Examples
- Demonstrates aspirin, methane, ethane, carbon dioxide, hydrogen cyanide, acetic acid, cyclohexane, benzene, and triethylamine.
- What you can do after
- Build molecular graph inputs from SMILES using RDKit, including atom features, bonds, directed edges, and self-loops.
Read how Build AI Drug Discovery Pipelines explains SMILES →
Graph Neural Networks in Action
SMILES is a textual notation for encoding the structure of chemical compounds as molecular strings.
- How it is used
- Converts molecular records into graph objects for graph neural networks and molecular generation workflows.
- How deep it goes
- Explains notation use through parsing and graph conversion, but does not detail SMILES syntax or chemical validation rules.
- Examples
- Uses ZINC drug molecules, SMILES-to-graph code, molecular graph visualizations, and QED-based candidate generation.
- What you can do after
- Build it from scratch by parsing SMILES with RDKit and packaging atom-bond graphs for PyTorch Geometric models.
Related concepts
- canonical SMILESincludes · Canonical SMILES is a canonicalized SMILES representation generated by rules and algorithms so that equivalent chemical structures receive the same textual form.
- sanitizationused by · Sanitization is the process of checking, modifying, removing, or normalizing data to meet relevant safety, privacy, consistency, or domain requirements before use or sharing.
- isomeric SMILESincludes · Isomeric SMILES is a SMILES representation that explicitly encodes structural or spatial variations such as stereochemistry.
- molecular graphalternative to · A molecular graph is a graph representation of a molecule in which atoms are nodes and chemical bonds are edges.
- SMARTSincludes · SMARTS is a chemical pattern language for specifying substructural queries using atom, bond, and logical pattern syntax.
- RDKitused by · RDKit is an open-source cheminformatics toolkit for representing, manipulating, analyzing, transforming, and visualizing chemical structures.
Questions about SMILES
What is SMILES?
SMILES is a textual notation standard that encodes molecular atoms, bonds, and connectivity using defined symbols and grammar rules.
Which Manning books explain SMILES?
Build AI Drug Discovery Pipelines and Graph Neural Networks in Action.
What is the difference between SMILES and molecular graph?
SMILES is a textual notation standard that encodes molecular atoms, bonds, and connectivity using defined symbols and grammar rules. A molecular graph is a graph representation of a molecule in which atoms are nodes and chemical bonds are edges.
What kinds of SMILES are there?
Kinds of SMILES include canonical SMILES, isomeric SMILES and SMARTS.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

