Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a chemical name into a SMILES identifier string
ResourceFunction["NameToSMILES"]["name"] returns a SMILES string corresponding to the given chemical name. |
Find the SMILES string from a chemical name:
In[1]:= | ![]() |
Out[1]= | ![]() |
Use a chemical name with defined stereochemistry:
In[2]:= | ![]() |
Out[2]= | ![]() |
When given an invalid chemical name, NameToSMILES will return a Failure identifying the uninterpretable portion of the name:
In[3]:= | ![]() |
Out[3]= | ![]() |
Fixing the typographical error allows the name to be parsed:
In[4]:= | ![]() |
Out[4]= | ![]() |
By default, NameToSMILES will parse fragment names such as “oxo” and “keto” as radicals with unpaired electrons. Use the option "AllowRadicals" to disable this behavior:
In[5]:= | ![]() |
Out[5]= | ![]() |
When parsing a chemical substituent, it is possible to add dummy atoms at the relevant attachment points:
In[6]:= | ![]() |
Out[6]= | ![]() |
Wolfram Language 12.0 (April 2019) or above
This work is licensed under a Creative Commons Attribution 4.0 International License