Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
226 views
in Technique[技术] by (71.8m points)

python 3.x - Converting pandas columns of chemical formulas to SMILES

I’m wondering if there’s a way to get SMILES strings starting from a pandas data frame that looks like this:

Formula.   Band_Gap(eV)
He         3.1
NaCl       1.2
NO2        3.5
...        ...

Basically, I want to perform a regression task (predicting band gap values for a ton of compounds) using some graph neural network architecture (GraphConv) but I don’t have access to SMILES information. Any suggestion on this? Thanks a lot!

question from:https://stackoverflow.com/questions/65884548/converting-pandas-columns-of-chemical-formulas-to-smiles

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There is a package to perform such kind of task, "pysmiles". I dunno much abt it. I hope it might help you.

Pysmiles


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...