David Simpson Apps

SMILES 2D Molecular Structure Macro

The simplified molecular-input line-entry system (SMILES) is a specification in the form of a line notation for describing the structure of chemical species using short ASCII strings.

The SMILES macro renders strings in SMILES format into two-dimensional drawings of the molecules.

How to use

In the Confluence editor, type /smiles and select SMILES 2D Molecular Structure.

Confluence editor showing /smiles macro selection

The macro properties panel will appear.

Add your SMILES Text and width and height:

SMILES 2D Molecular Structure macro properties panel with SMILES text input

Save the Confluence page and the 2D Molecular Structure will be rendered.

Examples of SMILES notation and the macro output

Some examples of the SMILES 2D Molecular Structure macro:

Phenol

SMILES text:

C1=CC=C(C=C1)O

Macro output:

2D molecular structure of Phenol rendered from SMILES notation

Reaction SMILES • Example 1

SMILES text:

C=CCBr.[Na+].[I-]>CC(=O)C>C=CCI.[Na+].[Br-] __{'textBelowArrow': '90%'}__

Macro output:

Reaction SMILES example 1: allyl bromide iodide exchange reaction

Reaction SMILES • Example 2

SMILES text:

CC(=O)O.OCC>[H+].[Cl-].OCC>CC(=O)OCC

Macro output:

Reaction SMILES example 2: esterification reaction

Aspirin

SMILES text:

CC(=O)OC1=CC=CC=C1C(=O)O

Macro output:

2D molecular structure of Aspirin rendered from SMILES notation

Codeine

SMILES text:

CN1CCC23C4C1CC5=C2C(=C(C=C5)OC)OC3C(C=C4)O

Macro output:

2D molecular structure of Codeine rendered from SMILES notation

Glucose

SMILES text:

OC[C@@H](O1)[C@@H](O)[C@H](O)[C@@H](O)[C@H](O)1

Macro output:

2D molecular structure of Glucose rendered from SMILES notation

Beta-carotene

SMILES text:

CC1CCC/C(C)=C1/C=C/C(C)=C/C=C/C(C)=C/C=C/C=C(C)/C=C/C=C(C)/C=C/C2=C(C)/CCCC2(C)C

Macro output:

2D molecular structure of Beta-carotene rendered from SMILES notation

Melatonin

SMILES text:

CC(=O)NCCC1=CNc2c1cc(OC)cc2CC(=O)NCCc1c[nH]c2ccc(OC)cc12

Macro output:

2D molecular structure of Melatonin rendered from SMILES notation