2

There are (obviously) a lot of chemical compounds. Wikipedia is able to translate names to molecular formulas for a lot of them.

But is there a way to enter a molecular formula and find the chemical's name?

Coming from the computer science background, I realize that there should be some canonical textual representation of the molecular formulas for such search to be possible. So is there a language that can represent a full formula, including the structure? I could only find some latex-based languages.

Flying Jay
  • 121
  • 2

1 Answers1

2

This answer is meant to address your second question about computerized representations of molecule structure since comments have already addressed your first question.

To truly represent the structure, mol and sdf formats are common: https://en.wikipedia.org/wiki/Chemical_table_file

Common string representations include SMILES and InChI. An issue with smiles is that there are multiple valid ways to represent a given molecule, which means a simple string match is not a good test for sameness. Canonical SMILES and InChI attempt to address this issue via additional rules. InChI additionally provides a standard way to convert the sometimes very long InChI strings into 27 character hashed version called InChIKey, which are better for searching.

Example Acetoin
SMILES string: CC(C(=O)C)O
InChI string: InChI=1S/C4H8O2/c1-3(5)4(2)6/h3,5H,1-2H3
InChIKey string: ROWKJAVDOGWPAT-UHFFFAOYSA-N

Nathan Lloyd
  • 255
  • 1
  • 5