Good morning!

I'm volunteering to help someone study chemistry. We need to practice reading and drawing structural formulae.

Does anyone know of a tool to generate the type of formulae shown in the image?

I've found several tools to create drawings of tructures, but none seem to include an option to generate a simple structural formula.

Searching for "chemistry structural formula" mostly gets me results about "organic structures" :(.

Thank you!

#question #chemistry #tool

Follow

@Liesvanrompaey

Just by chance I saw your request - and of course I wondered whether could do this. It can do many transformations as long as you can pass them through some tokenized abstraction, and for structural formulas the abstraction would be SMILES.

--------
Prompt:
Do you know the SMILES string for caffeine?

ChatGPT:
Yes, the SMILES string for caffeine is "CN1C=NC2=C1C(=O)N(C(=O)N2C)C". [plus a bonus explanation]
---------

You can confirm that easily with one of the common free, online tools such as the one here:

cheminfo.org/flavor/malaria/Ut

... and you can also generate a 3D-model, eg. through the "build" command of the amazing(!) free ChimeraX visualizer.

-----
I haven't tested this extensively regarding its boundaries of capability and fact ... but just at first glance this looks like an interesting angle that I haven't seen before.

It also works the other way around:
---
Can you identify this one: "OCC(O)C(O)C(O)C(O)C=O" ?

Yes, I can identify the molecule represented by the SMILES string "OCC(O)C(O)C(O)C(O)C=O". This is the SMILES string for D-glucose, which is a type of sugar and one of the most important carbohydrates used by living organisms for energy.
----
This is also correct - but not completely: it could also be L-Glucose ... and even though ChatGPT knows about Isomeric SMILES, it can't generate or parse them correctly. That may not be the end of the story, perhaps only a different approach is needed to phrase the request so it can be properly sequenced. I'll probably revisit this at some point.
---
Finally: for checking the ground truth, I send my students to PubChem (e.g. pubchem.ncbi.nlm.nih.gov/compo)

Enjoy!

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.