Introduction
The other day, I analyzed the data with Python for the first time in a while.
I forgot how to use pandas.
At that time, I suddenly thought about it.
"By the way, I haven't heard much about people who have used Python in sync with our department."
I've heard some R users here and there ...
(It's easy, and there are many packages, so it's natural.)
I will introduce that Python can also do chemistry.
- Package installation is omitted.
RDkit
It is a package that is very active in the field of Cheminformatics.
Draw compounds and read structural data to see graph structures.
What you can do with RDkit → https://www.rdkit.org
drawing
First, let's insert the structure appropriately.
from rdkit import Chem
from rdkit import IPythonConsole #Structure drawing settings
from rdkit.Chem import Draw
Here we use the notation SMILES to enter the structure.
SMILES is an abbreviation for Simplified Molecular Input Line Entry System, which is a notation for converting structural information into character strings.
See here for details (http://opensmiles.org)
For example, would you like to draw acetic acid?
m1=Chem.MolFromSmiles("CC(=O)O") #Method to read the character string written with smile
m1
Then, the structural formula of acetic acid can be drawn, which is easy.