SMILES notation
A line notation that represents a molecular structure with a string of characters.
Published · Updated
Read ethanol from one end and you can write CCO. Start from the other and you can write OCC. An ordinary text comparison sees two records. A chemist sees the same connectivity.
Recognize two spellings of one molecule
Try that pair before deduplicating a thousand catalogue rows. Save the original spelling, the normalized representation and the parser version. Then add an example where stereochemistry matters, or a record with disconnected components.
Now equality has a question attached to it. Did the strings describe the same structure all along, or did the normalization deliberately discard a distinction? For some tasks the distinction is exactly what you needed to preserve.
SMILES encodes atoms, bonds, branching and rings in text, with conventions for details such as stereochemistry. A molecule can have several valid strings. A chosen canonicalization procedure helps compare records under its rules, provided the rules retain the chemistry your question depends on.
SMILES can express branching, ring closures, bond types and stereochemical information. Two strings may represent identical connectivity, and two records with the same bare connectivity may differ in an important stereochemical detail. Decide which distinction the project needs before removing punctuation, stripping components or merging records.
Cheminformatics software can parse a string into a molecular graph and calculate descriptors or fingerprints from it. A language model, by contrast, might work directly with the tokenized string. These approaches receive different representations of the chemistry. A parsing failure and an unfamiliar token are different problems to record.
For a shared catalogue, keep the submitted text and record normalization settings and software versions. A future reader should be able to explain why two strings merged, or why they stayed separate despite looking like the same compound to a text search.
Related terms: Molecular Fingerprint, Retrosynthesis
Related guide: Chemistry
