WOLFRAM NOTEBOOK

Visualizing Molecules

Out[]=
Molecules are not visible to the human eye so plots are needed to understand what is present.
2D plots are generated with the
MoleculePlot
function.
Plot a water molecule:
water=MoleculePlot["water"]
Out[]=
Plot a benzene molecule:
benzene=MoleculePlot["benzene"]
Out[]=
Multiple plots can be combined with
Show
:
Show[water,benzene]
Out[]=
Rotatable 3D molecule plots are generated with the
MoleculePlot3D
function.
Systematic International Union of Pure and Applied Chemistry (IUPAC) names can be long but are more easily interpreted with the 3D structure:
MoleculePlot3D["(2S)-N-[(1S)-2-carbamoyl-1-[[(2S)-1-[(2S)-2-[[(1S)-1-[[(1S)-1-carbamoyl-2-(4-methoxyphenyl)ethyl]carbamoyl]-4-(diaminomethylideneamino)butyl]carbamoyl]pyrrolidin-1-yl]-1-oxo-3-sulfanylidene-propan-2-yl]carbamoyl]ethyl]-2-[[(2S)-2-[[(2S)-3-(4-hydroxyphenyl)-2-[[2-(1-sulfanylcyclohexyl)acetyl]amino]propanoyl]amino]-3-phenyl-propanoyl]amino]pentanediamide"]
Out[]=
Multiple 3D-representations of the same molecule are available:
In[]:=
MapMoleculePlot3D
allicin
CHEMICAL
,ImageSizeSmall,PlotTheme#&,{"Spacefilling","BallAndStick","Tubes","Wireframe"}
Out[]=
,
,
,
The Wolfram Function Repository (WFR) function MoleculeView is a great way to see how 2D- and 3D-representations of the same molecule are related:
ResourceFunction["MoleculeView"]["5-fluoro-1-(2R,5S)-[2(hydroxymethyl)-1,3-oxathiolan-5-yl]cytosine"]
Out[]=
Atom display:
All Atoms
Hide H
Bond highlight:
None
3D rendering:
Ball & stick
Tubes
Wire frame
Space filling
When visualizing DNA, RNA or peptides, use the WFR functions BioSequenceMoleculePlot and BioSequenceMoleculePlot3D.
View the structure of the “beefy meaty peptide”:
ResourceFunction["BioSequenceMoleculePlot"][BioSequence["Peptide","KGDEESLA"]]
Out[]=
Lys
Gly
Asp
Glu
Ser
Leu
Ala
View the three-dimensional structure of the “beefy meaty peptide”:
ResourceFunction["BioSequenceMoleculePlot3D"][BioSequence["Peptide","KGDEESLA"]]
Out[]=
Lys
Gly
Asp
Glu
Ser
Leu
Ala
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.