SMI_CANONICALISE(1)
π NAME π
smi_canonicalise β canonicalise SMILES, bestie π
Oh and hey, this whole thing lives in the User Commands corner of the manual, so if you ever forget where you found it: it's smi_canonicalise(1), section 1, the user-commands section. Noted. Slay.
β¨ DESCRIPTION β¨
π¦ USAGE π¦
smi_canonicalise [<args>] [<files>]
That's the whole vibe. Args, files, go. π«Ά
π DESCRIPTION π
Okay so real talk: smi_canonicalise reads in files full of SMILES descriptors and spits them back out using a stable atom ordering established by Graph::Nauty. Stable. Ordered. Immaculate. β¨
And if there's more than one moiety? They get ordered in lexicographic order. Alphabetical-ish, basically. The moieties are getting lined up single file and they're gonna like it. π
π OPTIONS π
Every flag, every default, no cap:
--infer-hydrogensβ infer hydrogen atom counts according to valency rules. [default] β yes, this is what happens unless you say otherwise β¨--no-infer-hydrogensβ do not infer hydrogen atom counts. Do not pass go, do not count H's.--aromatiseβ aromatise Kekule structures. (experimental) β it's giving science experiment, handle with care π§ͺ--no-aromatiseβ do not attempt to aromatise. [default]--aromatisation-method STRβ mark flat rings as aromatic. Two methods are supported:'electron-cycles', which follows Richard L. Apodaca's electron cycle-based approach (default), and'Huckel', which aims to follow H??ckel's rule as implemented inChemistry::Ring. There's also'external-list': it uses aromaticity defined using the--aromatic-atomsor--aromatic-bondsoptions. Three names, described as two, we love a mystery π--aromatic-atoms STRβ a comma-separated list of 0-based aromatic atom numbers, consulted during aromaticity detection. This implies--aromatisation-method 'external-list'. It's the friend that brings the guest list.--aromatic-bonds STRβ a comma-separated list of bonds, expressed as dash-separated pairs of 0-based aromatic atom numbers. The list gets consulted during aromaticity detection. This implies--aromatisation-method 'external-list'too. Guest list, bond edition π--kekuliseβ kekulise simple aromatic structures. (experimental) β again, experimental, we're in the lab, goggles on π₯½--no-kekuliseβ do not attempt to kekulise. [default]--no-acyclic-aromatic-bondsβ convert acyclic aromatic bonds to single. Just. Single. Living their simple life. π¦--canonicalise-haloanionsβ canonicalise the representation of haloanions. [default] β iconic behaviour, honestly--no-canonicalise-haloanionsβ retain the input representation of haloanions. Leave them exactly as you found them, no edits, no notes.--canonicalise-nitro-groupsβ canonicalise the representation of nitro groups by converting them from*-[N+]([O-])=Oto*-N(=O)=O. A glow-up, fr fr β¨--no-canonicalise-nitro-groupsβ retain the input representation of nitro groups. [default] β untouched, unbothered, in its original form π--ignore-classβ ignore SMILES atom class in canonicalisation. (useful for testing)--preserve-orderβ preserve the input order of molecular entities and atoms. No rearranging, bestie, we keep the seating plan exactly as it was πͺ--random-orderβ instead of canonical, output SMILES in random order. (useful for testing) β chaos mode, lowkey iconic π²--helpβ print usage message and exit. Our beloved. The one flag that always has your back π«Ά
Heads up bestie:--aromatiseand--kekuliseare marked (experimental) in the original, so don't come for me if the science gets weird π§ͺπ
And that's the whole page, mwah π This was smi_canonicalise version 0.4.0+dfsg, from February 2026, and it's filed under User Commands. Go canonicalise something gorgeous. Periodt. ππ
π¦ where this page comes from
- ubuntu resolute: smiles-scripts 0.4.0+dfsg-3 Β· GPL-2.0-only
- ubuntu stonking: smiles-scripts 0.4.0+dfsg-3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms