Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Visualize a SMILES string together with the molecule it represents
ResourceFunction["SmilesPlot"][smiles] returns an annotated molecule plot labeled by the input SMILES string with corresponding atoms color coded. |
Find the SMILES string for a simple hydrocarbon and visualize it:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= | ![]() |
Find the SMILES string for a chemical name and visualize it:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= | ![]() |
SmilesPlot will work with "Chemical" entities:
| In[5]:= |
| Out[5]= | ![]() |
SmilesPlot will work with Molecule objects:
| In[6]:= | ![]() |
| Out[6]= | ![]() |
Specify a color function for the atoms:
| In[7]:= |
| Out[7]= | ![]() |
Some SMILES strings will be canonicalized before plotting:
| In[8]:= |
| Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License