Stephen R Heller1, Alan McNaught2, Igor Pletnev3, Stephen Stein1, Dmitrii Tchekhovskoi1. 1. Biomolecular Measurement Division, National Institute of Standards and Technology, Gaithersburg, MD 20899-8362 USA. 2. InChI Trust, Cambridge, UK. 3. Department of Chemistry, Lomonosov Moscow State University, 119991 Moscow, Russia.
Abstract
This paper documents the design, layout and algorithms of the IUPAC International Chemical Identifier, InChI.
This paper documents the design, layout and n>an class="Chemical">algorithms of the IUPAC International Chemical Identifier, InChI.
Entities:
Keywords:
Chemical identifier; Chemical structure linear notation; IUPAC standard; InChI; InChIKey
pan class="Chemical">InChI is the Internationpan class="Chemical">al Chemical Identifier developed under the auspices of IUPAC, the International Union of Pure and Applied Chemistry [1], with principal contributions from NIST (the U.S. National Institute of Standards and Technology [2]) and the InChI Trust [3].
This paper documents the design, layout and n>an class="Chemical">algorithms of InChI. It is intended to provide a reasonably detailed description without being overlong for a journal article. For a briefer introduction, which also provides more detail on historical and organizational matters, the reader is referred to a recent paper by the same authors [4]. For a more technical description, one may consult the InChI Technical Manual [5] and the free source codes of the InChI software, which are available from the InChI Trust [6].
The paper is organized n>an class="Chemical">as follows. First, we discuss the general concepts associated with chemical identifiers. Then we outline the design goals of InChI and our general approach, focussing on the InChI model of chemical structure and the hierarchical layered structure of the Identifier; the concept of Standard InChI is introduced. This is followed by a detailed description of each of the possible major InChI layers, accounting for molecular connectivity, charge, stereochemistry, isotopic enrichment, position of hydrogen atoms and bonding in metal compounds, and the sublayers associated with these layers. We then describe the workflow of InChI generation (normalization, canonicalization, and serialization stages), as well as generation of the compact hashed code derived from InChI (InChIKey); the related algorithms and implementation details are briefly discussed. Finally, we provide information about InChI Software, licensing, known problems/limitations, and future prospects for InChI.
Background
A chemicpan class="Chemical">al identifier is a text lapan class="Chemical">bel that denotes a chemical substancea. These labels are of the utmost importance as they provide a convenient means of comparing and distinguishing chemicals in a variety of applications, from the design of new materials to legal and regulatory issues.
The main requirement for an identifier is that the lapan class="Chemical">bel must pan class="Chemical">be unampan class="Chemical">biguous: the same label must always refer to the same substance, and no other substance may have this label. Two different substances must have different labels.
Note that an identifier may not pan class="Chemical">be stricpan class="Chemical">tly unique in the sense that the same substance may be, on a case-by-casebasis, denoted by several distinct synonymical labels (provided that the lists of synonyms for different substances do not overlap). An obvious example is given by IUPAC chemical nomenclature that allows one to produce and use different names for a single compound; nevertheless, all these names unambigously identify the compound. Though not necessary, strict uniqueness, which is always assigning a single label to a particular substance, is highly convenient and very desirable.
The concept of “chemicpan class="Chemical">al identifier” heavily relies on the concepts of chemicpan class="Chemical">al substance and chemical identity. The IUPAC Compendium of Chemical Terminology, the “Gold Book”, defines “chemical substance” as “Matter of constant composition best characterized by the entities (molecules, formula units, atoms) it is composed of. Physical properties such as density, refractive index, electric conductivity, melting point etc. characterize the chemical substance” [7]. As this definition implies, identity of a chemical substance is determined by its constituent units and properties. It is noteworthy that even at this highly general level, this consideration is somewhat restrictive. For example, the concept of “chemical substance” is not applicable to material that is not of constant composition (e.g., oil). This consideration is also somewhat counter-intuitive, for example, as concerns aggregate states, polymorphs, etc. Thus, most chemists would agree that “water” is a chemical substance, that may appear as steam, ice and liquid water, and that all three should have the same chemical identifier -- despite the fact that each may be isolated as a different state of matter, placed in a test tube or stored in a bottle. In other words, the “identifying power” of a chemical identifier is inherently limited.
The oldest known chemicpan class="Chemical">al identifiers are words of naturpan class="Chemical">al languages describing common chemicals with terms like “water”, “iron” or “table salt”; they are trivial names, in modern nomenclature. Notably, trivial names exemplify the principle that a chemical identifier is not necessarily related to molecular structure. The identity of chemical substances denoted by trivial names was historically determined by a set of characteristic physical and chemical properties, long before exact structures were resolved, or even before the very concept of molecular structure evolved in the second half of the 19th century. Of course, today’s trivial names are associated with chemical stuctures (yet the structures may not be fully defined, as is common for natural products).
A trivipan class="Chemical">al name is an example of a registry-lookupn> chemicn>an class="Chemical">al identifier: it provides a unique label for the named substance but the label itself says nothing (or little) about the characteristic properties and structure. Such data are stored in electronic or printed registries (handbooks) that uniquely associate the label with the properties/structure. Retrieving reference data requires a registry lookup.
More recent examples of registry-lookup identifiers are thosen>an class="Chemical">associated with large printed or electronic collections of chemical structures and properties – Beilstein and Gmelin Registry numbers [8], Chemical Abstracts Service (CAS) Registry numbers by the American Chemical Society [9], EC numbers from the European Community Inventory [10], CID and SID numbers assigned by PubChem [11], and identifiers assigned by ChEMBL [12], ChemSpider [13], etc.
Note that pan class="Chemical">all the above registry-lookup identifiers are pan class="Chemical">also authority-assigned identifiers, that is, they are produced by assignment made by some authority. Typically, the authorities are the maintainers of chemical substance collections e.g. CAS numbers are assigned by Chemical Abstracts Service, and one needs to refer to CAS for a particular structure’s identifier.
(Trivipan class="Chemical">al chemicpan class="Chemical">al names provide an interesting exception: these were/are assigned by the chemical community and their associated registry is a decentralized compendium of handbooks and nomenclature rules. In these cases, there is no algorithm for direct conversion of molecular structures to these identifying labels).
Despite the widespread un>an class="Chemical">se of registry-lookup authority-assigned chemical identifiers, these types of identifier have a number of substantial drawbacks. For example, even the largest registry cannot include all known chemical substances. Furthermore, no registry can include a substance that has not previously existed and for which a hypothesized structure is drawn or computed. Furthermore, some authorities may impose restricted access and/or require payment for assigning labels and even for lookup in their registries.
The pan class="Chemical">alternative to authority-pan class="Chemical">assigned is structure-based chemical identifiers. These are derived from molecular structural formulae, either drawn in print form or presented in digital form. When the algorithm for an identifier’s derivation and/or a related utility tool becomes publicly available, anyone has the ability to produce the identifier for a given structure. (Note that structure-based identifiers still may require registry lookup to recover the structure from the label).
The earliest examples of structure-pan class="Chemical">bapan class="Chemical">sed identifiers are the systematic names of classical chemical nomenclatures established either by IUPAC or by CAS. However, the nomenclature rules developed by these authorities are not easy to learn and practice, even for professional chemists. Misinterpretation may result in ambiguous naming. Finally, and most importantly, systematic chemical names are not well suited for digital representations and the internet: they tend to be too long and contain non-alphanumeric characters (i.e., other than Latin letters and digits). As an example, Figure 1 gives the IUPAC systematic chemical name for the marine toxin palytoxin [14]; this is compared with the much shorter InChIKey (discussed later).
Figure 1
Structure, IUPAC name and InChIKey for palytoxin [14].
Structure, IUPAC name and pan class="Chemical">InChIKey for pan class="Chemical">palytoxin [14].
pan class="Chemical">Since the pan class="Chemical">second half of the 20th century, chemical structure linear notations have become well established asalternative to classical nomenclature. These textual labels are derived using specific algorithms from molecular structural formulae. They serve as handy textual substitutes for structural formulae, being much more convenient in database and internet applications. Examples are the pioneering Wiswesser line-formula notation, WLN [15]; the widely used SMILES [16,17]; notation by Sybyl, SLN [18,19]. An excellent review of these and other notations is given in [20].
Typicpan class="Chemical">ally, thepan class="Chemical">se systems encode the chemical structure, which is originally expressed (drawn or computer stored) in the paradigm of classical chemical structure theory [20]; most typically, the source representation is provided in a file using a connection table (CTFile) format (e.g. MOL and SDF, from MDL [21]).
This “clpan class="Chemical">aspan class="Chemical">sical model of chemical structure” assumes that a molecule is composed of atoms that are connected by bonds. Atoms are characterized by their chemical element, isotopic mass, integer formal charge, radical state and connection to other atoms. It is assumed that elements (more strictly, atoms of a particular element in a particular charge/radical state) have typical valence states, characterized by the number of bonds to neighbors. Typically, if the explicitly expressed number of connections is less than the characteristic valence, the necessary number of connections to implicit (not shown) hydrogen atoms are assumed. Atoms do have coordinates, but typically they are x,y-coordinates for visually pleasant drawings of structural formulae, which have no relation to x,y,z-coordinates of atomic nuclei in physical space. However, these coordinates may be useful to represent stereo configurations of double bonds, as well as other stereogenic elements. Bonds may be of single or multiple order. In some cases, “resonance” or “aromatic” bonds (of “one and a half” order) are also included. In all cases, bonds are pair-wise; no bond may involve three or more atoms.
This model is quite different from the modern quantum chemistry description. In spite of this, it performs surprisingly well in n>an class="Chemical">rationalizing chemical facts, and forms a solid basis (mathematically, it is an undirected multigraph with colored nodes) for nearly all structure-based chemical identifiers. One, however, should be cautious, bearing in mind the limitations of the model.
A line notation structure-pan class="Chemical">bapan class="Chemical">sed identifier is, essentially, the connection table (with associated additional data) unfolded to a single line. This unfolding requires the use of a pre-defined order of numbering of atoms in the molecule. In addition, atoms always may be renumbered, and renumbering may (more often than not) change the identifier. In other words, uniqueness of an identifier requires a method for assigning unique, canonical, numbers to the atoms.
Unfortunately, pan class="Chemical">although the formats of most of the above mentioned line notations are publicly available (though not necessarily n>an class="Chemical">as detailed and formalas desirable), the related algorithms and software are not always available. Even in the cases where the algorithms are described, as is the case for the most widely employed system, SMILES [16,17], the original implementation and software for the algorithms remain proprietary. Moreover, for SMILES, the canonicalization algorithm was published over 25 years ago, but incomplete (without stereochemistry-related part). To compensate for this, “other commercial and open-source software developed their own algorithms for generating canonical SMILES all of which differed from each other and none of which are published” (O’Boyle [22]); however, the lack of the single commonly-adopted standard became a problem itself.
Another problem is that most of the identifiers perceive the structural formulae "just n>an class="Chemical">as drawn". This means, for example, that mesomeric structures, which undoubtedly represent the same substance, may surprisingly produce different labels. Also, the tautomers, which are most often presumed to beassociated with the same substance (unless otherwise explicitly intended), are often labeled with different identifiers. Stereo isomers and isotopically enriched forms of the same parent compound present an additional source of ambiguity and inconsistent labelling. These factors lead to the undesirable and widespread result where the same substance has different labels, and vice versa. This further results in simultaneous problems in cross-referring various forms of the same or "nearly the same" substance (tautomers, stereo isomers, etc.). A typical pattern of cheminformatics work includes a) correction of drawing issues by normalizing to a preferred state and b) re-drawing molecules in intentionally different ways, dependent on context (e.g., including or omitting stereo wedges). The lack of universally-recognized standards for these correction and re-drawing transformations results in a drastic decrease in interoperability.
To pan class="Disease">address the lack of a non-propn>rietary, stricn>an class="Chemical">tly-unique standard chemical identifier, the InChIproject wpan class="Chemical">as initiated in 2000 by two authorities well-known for establishing standards, IUPAC and NIST.
pan class="Chemical">Since the pan class="Chemical">InChI project was established, four major InChI software releases have appeared and each has introduced significant new features. The history of the development of InChI is documented in earlier reports and accounts [23-27]. For a general overview, we refer the reader to a recent paper [4].
Design and layout
This pan class="Chemical">section provides information on n>an class="Chemical">InChI design goals and the general approach chosen to meet them -- a method of constructing the Identifier which reflects the various features of chemical structure in a hierarchical, layered manner. The concept of Standard InChI, which is specifically designed for inter-operability by selecting the most appropriate layers, is introduced. Then the major InChI layers: Main, Charge, Stereo, Isotopic, FixedHas well as the Reconnected layer, and their associated sublayers, are described in detail.
InChI design goals
pan class="Chemical">InChI is a non-propn>rietary, Opn>en Source, chemicn>an class="Chemical">al identifier intended to be an IUPAC approved and endorsed structure standard representation. The following features were considered as critically important in designing the International Chemical Identifierb.
▪ Structure-pan class="Chemical">bapan class="Chemical">sed approach.
Anybody anywhere should pan class="Chemical">be able to produce n>an class="Chemical">InChI from just the structural formula of a chemicpan class="Chemical">al substance.
▪ Strict uniqueness of identifier.The same lapan class="Chemical">bel pan class="Chemical">always means the same substance, and the same substance pan class="Chemical">always receives the same label (under the same labelling conditions). This is achieved through a well-defined procedure of obtaining canonical numbering of atoms.
▪ Non-proprietary, Open Source, free and open approach.o Free access to developed computer progpan class="Chemical">rams.
No payment is pan class="Chemical">assumed under any circumstances.
o Open access to the source code.Everybody is free to repan class="Disease">ad and upan class="Chemical">se the source code.
▪ Applicability to the entire domain of “cln>an class="Chemical">assic organic chemistry” and, to a significant extent, to inorganic compounds, bearing in mind the eventual goal to extend InChI to cover all of chemistry.
▪ Apan class="Chemical">bility to genepan class="Chemical">rate the same pan class="Chemical">InChI for structures drawn under (reasonably) different styles and conventions, specifically those represented by mesomers.
▪ Hiepan class="Chemical">rarchicpan class="Chemical">al approach allowing encoding of molecular structure with different levels of “granularity”, dependent on algorithms and software switches. In particular, the ability to include/exclude stereochemical, isotopic and tautomeric information was considered necessary.
▪ Apan class="Chemical">bility to produce an identifier with some “default” switches, targeted to a fixed level of granularity and ensuring interoperability in large databases.
The current pan class="Chemical">InChI (pan class="Chemical">InChI identifier version 1, InChI software version 1.04) implements these features in full. Normalization may modify input chemical structure by applying a consistent chemical model with the intent to make structures of the same compound drawn under (reasonably) different styles and conventions close if not identical, which is essential for generating the same InChI. Canonicalization of chemical structure upon generating InChI ensures strict uniqueness of the identifier. The layered structure of InChIallows targeting for specific applications (e.g., adding the ability to distinguish tautomers). A Standard InChI is specifically created for inter-operability. All of the development occurred under open-source paradigm.
The following features were conpan class="Disease">sidered important but not criticn>an class="Chemical">al.
▪ Apan class="Chemical">bility to exacpan class="Chemical">tly restore the originpan class="Chemical">al chemical structure based solely on the InChI identifier string.
▪ Compact form.▪ Apan class="Chemical">bility to depan class="Chemical">al with coordination and orpan class="Chemical">ganometallic compounds, including those containing haptic bonds.
The current implementationpreserves then>an class="Chemical">se features to a significant extent. As measured by extent of correct InChI- > Structure- > InChI conversion of a ~39 million structures collection derived from PubChem Compound, the current software correctly restores the structure in ~99.95% casesc.
pan class="Chemical">As a responn>an class="Chemical">se to a requirement for a more compact identifier, a shorter hash-based InChI derivative, denoted InChIKey, was introduced. This came about from a discussion with a search engine company who explained that without a shortened compact version of InChI, no search engine would be able to properly search for a lengthy InChI string.
Orpan class="Chemical">ganopan class="Chemical">metallics, inorganics and other classes of compounds still present a significant challenge. This will beaddressed in future versions of InChI.
The following wpan class="Gene">as conpan class="Disease">sidered pan class="Chemical">as having low importance:
▪ Apan class="Chemical">bility to pan class="Chemical">be pan class="Species">human read/parsed and manually edited.
InChI model of chemical structure
pan class="Chemical">InChI is pan class="Chemical">bapan class="Chemical">sed on the “classical model of chemical structure” with some significant modifications and additions.
The following principles constitute the basis of the InChI approach, or the “InChI model of chemical structure”.A molecule is compopan class="Chemical">sed of atoms. Atoms are either skeletpan class="Chemical">al (non-hydrogen atoms, as well as bridging hydrogen, as in diborane) or terminalhydrogen atoms (further called simply “hydrogens”). Skeletal atoms are pair-wise connected by bonds and are characterized by chemical element, integer formal charge, radical state, isotopic mass, associated implicit hydrogens, and bonds to other skeletal atoms. Hydrogens may be either connected to skeletal atoms or shared by a group of skeletal atoms (such groups may also share negative charge).
pan class="Chemical">All bonds are pan class="Chemical">simple links (connections). That is, they have no "double", "triple" or other attributes. Bonds are formed pair-wipan class="Chemical">se; thus, no bond may involve three or more atoms [except for hydrogen(s) shared by a group of skeletal atoms].
A molecule is coordinateless. However, the identifier reprepan class="Chemical">sents the configupan class="Chemical">ration of stereogenic elements, as it is captured from source structural data amplified with either 2-D or 3-D coordinates.
Core parent structure
The most important pan class="Chemical">aspect of pan class="Chemical">InChI is its hierarchical, layered nature. At the center of the InChI approach is the concept of core parent structure, which is a common archetype for the source structure and many related structures - (a) tautomeric, (b) stereo isomeric, (c) isotopically substituted, and (d) protonated/deprotonated forms. Additionally, (e) all the bonds to metal atoms are broken (although the bonding pattern is saved). The core parent structure has no precise tautomeric state, tautomeric "mobile" hydrogens are assigned to groups of skeletal atoms; it has no associated stereochemistry and no isotopic enrichment. Its protolytic centers are neutral, as the core parent is derived from the source structure by adding/removing the appropriate number of protons (to be more precise, the structure as a whole is neutralized).
pan class="Chemical">InChI descripan class="Chemical">bes the source structure as the derivative of its parent core with explicitly added features (items a-e above). The exact description requires specifying all of the five items, if they are applicable. Any other (incomplete) combination may be used. InChIs that have been generated with tautomerism excluded will be the same for the source structure and all of its (recognized) tautomers. Omitting stereo configurations means one will produce the same InChI for the source structure, as well as for all of its stereo isomers, etc.
This model pan class="Chemical">allows one to tune the identifier's resolving power, its "granularity". This is illustrated by Figure 2 (this Figure and related discussion provide just a brief introduction to InChI layers; a more detailed description of the layers can be found later in this paper).
Figure 2
InChI layered representation of the monoanion of 32P-labelled adenosine triphosphate. Left – input structure; right –core parent structure used by InChI, with canonical atomic numbers.
pan class="Chemical">InChI layered repren>an class="Chemical">sentation of the monoanion of 32P-labelled adenosine triphosphate. Left – input structure; right –core parent structure used by InChI, with canonical atomic numbers.
In the pan class="Chemical">InChI string, the core parent structure is encoded by a string compn>on>an class="Chemical">sed of several layers. Each layer is a character sequence starting with '/' (forward slash) and followed by a letter denoting the identity of the layer.
Layers reprepan class="Chemical">sent: empiricpan class="Chemical">al formula, the very first layer after the prefix "InChI=1/", in this example “C10H16N5O13P3”; skeletal connections '/c'; hydrogens layer '/h' (indicating positions of immoveable and sharing of moveable Hs); charge layer '/q'; protonation/deprotonation '/p'.
In Figure 2 the parent core structure is derived from the source structure by pan class="Disease">adding one proton (i.e., one proton must n>an class="Chemical">be removed to go back from parent to source, "/p-1"). It has the two groups of skeletal atoms sharing one hydrogen each, "(H,21,22)(H,23,24)", and two other groups sharing two hydrogens each, "(H2,11,12,13)(H2,18,19,20)". Here “H2” denotes two hydrogens and “18, 19, 20” denotes the numbered (non-hydrogen) atoms.
pan class="Disease">Additionpan class="Chemical">al features are represented by the layers appearing further to the right. The stereochemistry layer (“/t4-,6-,7-,10-/m1/s1/” in Figure 2) includes the sublayer for tetrahedral centers '/t' complemented by two indicator stereo layers '/m1' and '/s1'. A double-bond stereochemical layer '/b', may also be present for other structures. [Note that the stereochemical layers may be optional if the stereochemistry is not known or does not need to be specified].
The next layer is the isotopic '/i' layer. Here "/i29 + 1" pan class="Chemical">signifies that atom numpan class="Chemical">ber 29 consists of the isotope with mass increased by unity with respect to the natural value. Note that the isotopic layer may optionally include its own ‘/s’ stereo sublayer, asadding isotopic substitution to the core parent structure may change the stereogenic elements and their configurations.
The next layer is the "pan class="Chemical">FixedH" '/f' layer, which lists the exact pon>an class="Chemical">sition of tautomeric hydrogens (“/fC10H15N5O13P3/h18,21,23H,11H2/q-1”, Figure 2). Note that specifying the exact position of tautomeric hydrogens may change the ionization pattern considered by the InChIalgorithm. Consequently, the FixedH layer may contain its own formula sublayer and charge sublayers (“/fC10H15N5O13P3” and “q-1”). Note also that this layer may optionally include its own ‘/s’ stereo sublayer, asadding exact positions of tautomeric hydrogens to the core parent structure may change the set of stereogenic elements and their configurations.
pan class="Chemical">InChI may pan class="Chemical">be produced not only for a single structure, but also for a combination of components not bound to each other (this may be thought of as representing equimolar mixtures). In InChI, this is termed “disconnected structures.” In this case, each layer includes information about all of the components separated by ';' except for the chemical formula, which is dot-separated. This feature enables InChI to provide representations for metallic complexes, adducts, etc. where the bonding may not be known, ill-defined, or diffuse including the cases where three or more atoms may be involved in a “bond.”
Standard and non-standard InChI
The layered structure of pan class="Chemical">InChI pan class="Chemical">allows one to represent a molecular structure with a desired level of detail. Accordingly, InChI software may generate different InChI strings for the same molecule, depending on the choice of a multitude of options (e.g., distinguishing or not distinguishing tautomers). This flexibility, however, may be considered a drawback with respect to standardization/interoperability. In 2009, the ‘standard’ InChI, which is always produced with fixed options, was introduced in response to these concerns.
The standard pan class="Chemical">InChI wpan class="Chemical">as defined to ensure interoperability/compatibility between large databases/web searching and to facilitate information exchange. Its layered structure conforms to the following requirements.
Standard pan class="Chemical">InChI distinguishes pan class="Chemical">between chemical substances at the level of ‘connectivity’, ‘stereochemistry’, and ‘isotopic composition’. Connectivity is defined here as tautomer-invariant valence-bond connectivity with different tautomers having the same connectivity/hydrogen layer. The Standard InChI representation for organometallics does not include bonds to the metal. Stereochemistry is defined here as a configuration of stereogenic atoms and bonds where only absolute stereo or no stereo is allowed, and unknown stereo designations are treated as undefined. Isotopic composition is defined here as the mass number of isotopic atoms (when specified).
For pan class="Chemical">InChI verpan class="Chemical">sion 1, the standard pan class="Chemical">InChI is designated by the prefix “InChI=1S/” (that is, the letter ‘S’ immediately follows the Identifier version number, ‘1’). The non-standard InChI is designated by the prefix: “InChI=1/” (that is, the letter ‘S’ is omitted).
InChI valence schema
pan class="Disease">Additionpan class="Chemical">al details of the “pan class="Chemical">InChI model of chemical structure” are concerned with accounting for the specific properties of elements, namely, the valence schema.
In particular, in many pan class="Chemical">situations pan class="Chemical">InChI treats metal and non-metal atoms differently. The following elements are considered as non-metals: H, He, B, C, N, O, F, Ne, Si, P, S, Cl, Ar, Ge, As, Se, Br, Kr, Te, I, Xe, At, Rn. All the others are metals.
For pan class="Chemical">all elements, pan class="Chemical">InChI recognizes typical (standard) valence states. These standard valences are summarized in Table 1 (omitting noble gas elements for which valence is zero). Implicit hydrogen atoms are added to hypovalent non-metal atoms in order to reach the nearest higher standard valence, as indicated in Table 1 (however, no addition is made to reach the pentavalent state of neutralnitrogen and the tetravalent state of neutralsulfur atoms). Also, implicit hydrogen atoms are added to the following metal atoms: Li, Be, Na, Mg, Al, K, Ca, Ga, Rb, Sr, In, Sn, Sb, Cs, Ba, Tl, Pb, Bi, Po, Fr, Ra.
Table 1
Standard valences used by InChI
Element
Atomic charge
−2
−1
0
1
2
H
-
-
1
-
-
Li
-
-
1
-
-
Be
-
-
2
1
-
B
3
4
3
2
1
C
2
3
4
3
2
N
1
2
3, 5
4
3
O
-
1
2
3, 5
4
F
-
-
1
2
3,5
Na
-
-
1
-
-
Mg
-
-
2
1
-
Al
3, 5
4
3
2
1
Si
2
3, 5
4
3
2
P
1, 3, 5, 7
2, 4, 6
3, 5
4
3
S
-
1, 3, 5, 7
2, 4, 6
3, 5
4
Cl
-
-
1, 3, 5, 7
2, 4, 6
3, 5
K
-
-
1
-
-
Ca
-
-
2
1
-
Sc
-
-
3
-
-
Ti
-
-
3, 4
-
-
V
-
-
2, 3, 4, 5
-
-
Cr
-
-
2, 3, 6
-
-
Mn
-
-
2, 3, 4, 6
-
-
Fe
-
-
2, 3, 4, 6
-
-
Co
-
-
2, 3
-
-
Ni
-
-
2, 3
-
-
Cu
-
-
1, 2
-
-
Zn
-
-
2
-
-
Ga
3, 5
4
3
-
1
Ge
2, 4, 6
3, 5
4
3
-
As
1, 3, 5, 7
2, 4, 6
3, 5
4
3
Se
-
1, 3, 5, 7
2, 4, 6
3, 5
4
Br
-
-
1, 3, 5, 7
2, 4, 6
3, 5
Rb
-
-
1
-
-
Sr
-
-
2
1
-
Y
-
-
3
-
-
Zr
-
-
4
-
-
Nb
-
-
3, 5
-
-
Mo
-
-
3, 4, 5, 6
-
-
Tc
-
-
7
-
-
Ru
-
-
2, 3, 4, 6
-
-
Rh
-
-
2, 3, 4
-
-
Pd
-
-
2, 4
-
-
Ag
-
-
1
-
-
Cd
-
-
2
-
-
In
3, 5
2, 4
3
-
1
Sn
2, 4, 6
3, 5
2, 4
3
-
Sb
1, 3, 5, 7
2, 4, 6
3, 5
2, 4
3
Te
-
1, 3, 5, 7
2, 4, 6
3, 5
2, 4
I
-
-
1, 3, 5, 7
2, 4, 6
3, 5
Cs
-
-
1
-
-
Ba
-
-
2
1
-
La
-
-
3
-
-
Ce
-
-
3, 4
-
-
Pr
-
-
3, 4
-
-
Nd
-
-
3
-
-
Pm
-
-
3
-
-
Sm
-
-
2, 3
-
-
Eu
-
-
2, 3
-
-
Gd
-
-
3
-
-
Tb
-
-
3, 4
-
-
Dy
-
-
3
-
-
Ho
-
-
3
-
-
Er
-
-
3
-
-
Tm
-
-
2, 3
-
-
Yb
-
-
2, 3
-
-
Lu
-
-
3
-
-
Hf
-
-
4
-
-
Ta
-
-
5
-
-
W
-
-
3, 4, 5, 6
-
-
Re
-
-
2, 4, 6, 7
-
-
Os
-
-
2, 3, 4, 6
-
-
Ir
-
-
2, 3, 4, 6
-
-
Pt
-
-
2, 4
-
-
Au
-
-
1, 3
-
-
Hg
-
-
1, 2
-
-
Tl
3, 5
2, 4
1, 3
-
-
Pb
2, 4, 6
3, 5
2, 4
3
-
Bi
1, 3, 5, 7
2, 4, 6
3, 5
2, 4
3
Po
-
1, 3, 5, 7
2, 4, 6
3, 5
2, 4
At
-
-
1, 3, 5, 7
2, 4, 6
3, 5
Fr
-
-
1
-
-
Ra
-
-
2
1
-
Ac
-
-
3
-
-
Th
-
-
3, 4
-
-
Pa
-
-
3, 4, 5
-
-
U
-
-
3, 4, 5, 6
-
-
Np
-
-
3, 4, 5, 6
-
-
Pu
-
-
3, 4, 5, 6
-
-
Am
-
-
3, 4, 5, 6
-
-
Cm
-
-
3
-
-
Bk
-
-
3, 4
-
-
Cf
-
-
3
-
-
Es
-
-
3
-
-
Fm
-
-
3
-
-
Md
-
-
3
-
-
No
-
-
2
-
-
Lr
-
-
3
-
-
Rf
-
-
4
-
-
Db
-
-
5
-
-
Sg
-
-
6
-
-
Bh
-
-
7
-
-
Hs
-
-
1
-
-
Mt
-
-
1
-
-
Ds
-
-
1
-
-
Rg
-
-
1
-
-
Cn
-
-
1
-
-
Standard vpan class="Chemical">alences upan class="Chemical">sed by pan class="Chemical">InChI
Layout of InChI layers
Main layer: representing core parent structure
Empirical formula sublayer: representing composition
The chemicpan class="Chemical">al formula is repren>an class="Chemical">sented according to Hill convention, that is, beginning with carbon atoms, then hydrogens, then all other elements in alphabetical order. This is the only layer prefixed with a single slash, ’/’, without a following character.
Note that this formula may pan class="Chemical">be different from the one pan class="Chemical">seen for the source chemical structure, as it refers to the core parent structure. If the source structure depicts charged species, the InChIalgorithm may protonate or deprotonate it to create a neutral parent (to ensure that the same basic layers will be generated for neutral and ionized forms).
For example, pan class="Chemical">InChI for Cl−, “pan class="Chemical">InChI=1S/ClH/h1H/p-1”, has formula sublayer “ClH” (for the proton, InChI has no chemical formula sublayer: “InChI=1S/p + 1”). For the anion of adenosine triphosphate, ATP, InChI has the formula layer "C10H16N5O13P3".
Skeletal connections layer
This layer prefixed with ‘/c’ represents connections n>an class="Chemical">between skeletal atoms by listing the canonical numbers in the chain of connected atoms (branches are given in parentheses).
Note that the canonicpan class="Chemical">al atomic numpan class="Chemical">bers, which are used throughout the InChI, are always given in the formula’s element order. For example, “/C10H16N5O13P3” (the beginning of InChI for adenosine triphosphate) implies that atoms numbered 1–10 are carbons, 11–15 are nitrogens, 16–28 are oxygens, and 29–31 are phosporus. Hydrogen atoms are not explicitly numbered.
Hydrogens layer
This layer prefixed with ‘/h’ lists the bonds pan class="Chemical">between the atoms in the structure, partitioned into pan class="Chemical">as many as three sublayers. The first sublayer represents all bonds other than those to non-bridging H-atoms, the second sublayer represents bonds of all immobile H-atoms, and the third sublayer provides locations of any mobile H-atoms. This last sublayer represents H-atoms that can be found at more than one location in a compound due to various types of tautomerism. This sublayer identifies the groups of atoms that share one or more mobile hydrogen atoms. In addition to hydrogen atoms, mobile H groups may contain mobile negative charges. These charges are included in the charge layer.
Charge layer
This layer provides information about net charge and is compopan class="Chemical">sed of two sublayers.
Charge sublayer
This sublayer ‘/q’ is pan class="Chemical">simply the net charge of the core parent structure.
Protonation/deprotonation sublayer
This sublayer ‘/p’ indicates the net numpan class="Chemical">ber of protons removed from or pan class="Disease">added to the source structure while deriving its core parent.
Mesomerism
Mesomerism is the concept related to the pan class="Chemical">situation in which the molecular structure cannot pan class="Chemical">be unambiguously represented by a single classical structural formula; rather, two (or more) mesomeric structures must be drawn and considered to contribute to the overall picture.
pan class="Chemical">As the IUPAC Gold Book states, “mesomerism” is “Espan class="Chemical">sentially synonymous with resonance. The term is particularly associated with the picture of π-electrons as less localized in an actual molecule than in a Lewis formula. The term is intended to imply that the correct representation of a structure is intermediate between two or more Lewis formulae” [28]. In other words, mesomers are considered as imaginary objects (or even drawing artifacts) that cannot be distinguished by a simple chemical identifier.
Mesomerism is effectively eliminated in pan class="Chemical">InChI. Mesomers have the same pan class="Chemical">InChIs (this is true for all possible InChI layouts of layers). Actually, this is very natural. Mesomeric structures of a molecular entity have the same basic connectivity but differ in bond orders, and maybe by having atomic charges on different atoms. InChI does not use bond orders and does not place charges on particular atoms; the placement of hydrogen atoms in a mesomeric system, which would be important for InChI, is always the same.
This is illustpan class="Chemical">rated by Figure 3, which shows mesomers of pan class="Chemical">formamide and pan class="Chemical">nitromethane as well as the associated InChIs. A more complex example, Methylene Blue, is presented in Figure 4. Again, all InChIs for the mesomers are the same (note that their Symyx NEMA keys differ, as is shown in [20]).
Figure 3
Both Standard (upper 2 lines under each drawing) and FixedH (lower 2 lines) versions of InChI and InChIKey for mesomers are the same: formamide (left) and nitromethane (right).
Figure 4
Both Standard (upper 2 lines under each drawing) and FixedH (lower 2 lines) versions of InChI and InChIKey for mesomers are the same, as exemplified by Methylene Blue.
Both Standard (upper 2 lines under each drawing) and n>an class="Chemical">FixedH (lower 2 lines) versions of InChI and InChIKey for mesomers are the same: formamide (left) and nitromethane (right).
Both Standard (upper 2 lines under each drawing) and n>an class="Chemical">FixedH (lower 2 lines) versions of InChI and InChIKey for mesomers are the same, as exemplified by Methylene Blue.
Note that pan class="Chemical">all the above discuspan class="Chemical">sion about mesomerism and mesomers is equally applicable to aromaticity and resonance structures.
FixedH layer
This layer prefixed with ‘/f’ serves pan class="Chemical">as the exact specification of tautomers. When potentially mobile H atoms are detected and the user specifies that they should be immobile (tautomerism not allowed), this layer binds theseH atoms to the atoms specified in the input structure. In the case where this causes a change in earlier layers, appropriate changes are added to this layer (earlier layers are not affected).
Tautomers have the same Standard but different pan class="Chemical">FixedH pan class="Chemical">InChIs (and InChIKeys), Figure 5 shows this in the example of an isoguanosine derivative (this example wasalso used in [20] where it was noted that the tautomers have different Symyx NEMA keys but the same InChIKeys; however, only Standard InChIKeys were quoted).
Figure 5
Standard versions (upper 2 lines under each drawing) of InChI and InChIKey for tautomers are the same while FixedH versions (lower 2 lines) differ, as exemplified by an isoguanosine derivative.
Standard verpan class="Chemical">sions (upper 2 lines under each dn>an class="Chemical">rawing) of InChI and InChIKey for tautomers are the same while FixedH versions (lower 2 lines) differ, as exemplified by an isoguanosine derivative.
Stereochemistry layer
Overview of stereochemistry layer with its sublayers
The stereochemicpan class="Chemical">al layer contains sublayers repren>an class="Chemical">senting double bond stereochemistry and tetrahedrpan class="Chemical">al stereochemistry (including allenes).
The vpan class="Chemical">alues in this layer depend on the contents of preceding layers. For exampn>le, the vn>an class="Chemical">alue produced for the stereo layer will depend on whether it was derived from a main layer or Fixed-H layer or whether it belongs to an isotopic layer. Therefore, this type of layer may be present at several locations in an Identifier.
Two distinct clpan class="Chemical">aspan class="Chemical">ses of stereochemistry are represented, sp2 (double bond or Z/E) and sp3 (tetrahedral). The double bond sublayer ‘/b’ precedes the tetrahedral sublayer ‘/t’. These sublayers do not affect each other if involved substituents are constitutionally different. Otherwise, the content of each sublayer may influence another one. For example, if the two stereo-enabled (chiral) ligands at the same end of a double bond are constitutionally identical, the double bond stereo depends on tetrahedral stereo configurations of these two ligands.
Double bond sp2 (Z/E) stereo layer ‘/b’
Exprespan class="Chemical">sion of a stereo configupan class="Chemical">ration is easily done in two-dimensional drawings.
When double bonds are rigid, stereoisomerism is repan class="Disease">adily repren>an class="Chemical">sented without ambiguity. However, in some cases in alternating bond systems, non-rigid bonds may be formally drawn as double bonds.
Bonds in thepan class="Chemical">se systems, when discovered by pan class="Chemical">InChI algorithms, are not assigned stereo labels. InChI does not generate sp2 stereoisomerism information in small rings (less than 8 atoms).
Tetrahedral stereo layer ‘/t’
Tetpan class="Chemical">rahedrpan class="Chemical">al (typically, sp3) stereochemistry is readily represented using conventional wedge/hatch (out/in) bonds commonly employed in 2-D drawings. Relative tetrahedral stereochemistry is represented first, optionally followed by a tag to indicate absolute stereochemistry.
In generpan class="Chemical">al, the pan class="Chemical">InChI algorithm marks the configuration of a stereogenic center or bond as either ‘+’ or ‘-‘, as shown in Figure 6. These marks have no relation to R,S or E,Z configurations (actually, they are based on considering canonical atomic numbers of substituents at the stereogenic center). When a stereo center configuration is not known , an ‘unknown’ descriptor may be specified (which will appear in the stereo layer). If a possible stereocenter is found, but no stereo information is provided, it will be represented in a stereolayer by a not-given (‘undefined’) flag.
Figure 6
Stereoisomers of menthol with associated InChI/Keys.
Stereoisomers of pan class="Chemical">menthol with pan class="Chemical">associated pan class="Chemical">InChI/Keys.
In current pan class="Chemical">InChI software v. 1.04 (2011) a question mark (‘?’) is upan class="Chemical">sed, by default, for both ‘undefined’ and ‘unknown’ flags. However, in a non-standard InChI generated with option ‘SLUUD’ turned On, the symbol ‘u’ is used to indicate explicitly entered ‘unknown’ stereo (while ‘?’ is retained for ‘undefined’).
Isotopic layer
The Isotopic layer (pan class="Chemical">signified with the prefix ‘/i’) identifies different isotopicn>an class="Chemical">ally labeled atoms. Exchangeable isotopic hydrogen atoms (deuterium and tritium) are listed separately. The layer also contains any changes in stereochemistry caused by the presence of isotopes.
Reconnected layer: coordination compounds and organometallics
To avoid many ampan class="Chemical">biguities that typicn>an class="Chemical">ally arise when representing metal-containing compounds, the InChIalgorithm breaks bonds to metal(s), that is, it “disconnects” these compounds. More details of disconnection procedure may be found in Section “Normalization of input structure”, sub-Section “Breaking bonds to metal atoms”.
The originpan class="Chemical">al pan class="Chemical">metal bonding scheme is preserved in so-called “reconnected layer”, which is optionally included into Identifier. This layer is signified with the prefix '/r' and simply contains all the layers appearing in the case where the InChI string is generated without breaking bonds to metal atoms. That is, ‘/r’ is followed by formula and all the other subsequent layers whichever are applicable.
InChIKey
pan class="Chemical">InChIKey is a compact chemicn>an class="Chemical">al identifier derived from InChI. The InChIKey is always only 27-characters long. Consequently, it is a much more convenient identifier for searching the internet and indexing databases (see Figure 1). Indeed, based on conversations with search engine developers, it is a practical requirement for the InChIKey to beall upper case letters and a length that all search engines will accept without truncation or modification. A disadvantage of the InChIKey is that one loses the ability to algorithmically restore a structure from a textual label: InChIKey is a structure-based registry-lookup identifier, see Background section.
Finding the structure corresponding to a givenpan class="Chemical">InChIKey requires pan class="Chemical">searching on the Web or querying dedicated resolvers (e.g. those of ChemSpider [29] and NCI [30]; both are free to use). Of course, for specific targeted databases a lookup service may beadded by developers/maintainers (as is implemented, e.g., in the UniChem [31] database Web services [32]).
pan class="Chemical">InChIKey is an encoded verpan class="Chemical">sion of the hpan class="Chemical">ash codes calculated from a source InChI string, elaborated with convenience “flag symbols”.
Hpan class="Chemical">ashing is a one-way mathematicpan class="Chemical">al transformation typically used to calculate a compact fixed length digital representation of a much longer string of arbitrary lengthd. As the hash function maps input values, strings, to the strongly compacted space, getting the same hash code for two different inputs (collision) is unavoidable. Of course, collision means loss of identifier’s uniqueness. However, the use of appropriate hashing details typically allows one to successfully utilize hash codes in various identification tasks.
By depan class="Chemical">sign, a gopan class="Chemical">al of InChIKey is to partially preserve the hierarchical layered structure of the parent InChI. The first block of 14 (out of total 27) characters for an InChIKey encodes core molecular constitution, as described by formula, connectivity, hydrogen positions and charge sublayers of the InChI main layer. The other structural features complementing the core data -– namely, exact positions of mobile hydrogens, stereochemical, isotopic and metal ligands, whichever are applicable -- are encoded by the second block of InChIKey. The possible protonation or deprotonation of the core molecular entity (described by the protonation sublayer of the InChI main layer), is encoded in the very last InChIKey flag character, see below.
pan class="Chemical">As a result, the first pan class="Chemical">InChIKey block is pan class="Chemical">always the same for the same molecular skeleton. All isotopic substitutions, changes in stereoconfiguration, tautomeric state and coordination bonding are reflected in the second block.
pan class="Chemical">InChIKey inherits the Standard or non-standard nature of the parent n>an class="Chemical">InChI (signified by a dedicated flag character). This inherited nature influences the “resolving power” of the identifier. For example, Standard InChIKey (produced from Standard InChI) does not account for tautomerism. In addition, it may also indicate only absolute stereo. It also does not account for the bonds of the original structures to metal atoms, if they were present and disconnected on Standard InChI generation.
Shown pan class="Chemical">below is the current format of pan class="Chemical">InChIKey (pleapan class="Chemical">se note that this is different from the initial format, which appeared in 2007, Software version 1.02-beta release).
AAAAAAAAAAAAAA-BBBBBBBBFV-Ppan class="Chemical">All the symbols except the delimiter (a dn>an class="Chemical">ash that is a minus sign) are uppercase English letters representing a “base-26” encoding. The overall length of InChIKey is fixed at 27 characters, including separators (dashes). As mentioned previously, lower case letters would be useless as web search engines do not differentiate between upper and lower case for searching.
Here are the five distinct components:AAAAAAAAAAAAAAThe first block: 14-chapan class="Chemical">racters encoding core molecular constitution.
BBBBBBBBThe pan class="Chemical">second block: 8-chapan class="Chemical">racters encoding advanced structural features whichever are applicable (stereochemistry, isotopic substitution, exact position of mobile hydrogens, metal ligation data).
FFlag chapan class="Chemical">racter: either ‘S’ for Standard pan class="Chemical">InChI parent or ‘N’ for non-standard.
VVerpan class="Chemical">sion chapan class="Chemical">racter: currenpan class="Chemical">tly, ‘A’, which means 1.
PProtonation/deprotonation flag.‘N’ means no proton-related pan class="Disease">ionization (“Neutrn>an class="Chemical">al”). Other options are:
ᅟThis layout is exemplified in Figure 7.
Figure 7
InChIKey layout explained (using caffeine as an example).
pan class="Chemical">InChIKey layout explained (using caffeinepan class="Chemical">as an example).
Note that different protonation states of the same compound will have Standard InChIKeys that differ only by a single character, the protonation flag (unless both states have number of inserted/removed protons > 12). Moreover, since neutral and zwitterionic states of the same molecule have the same zero number of inserted/removed protons, they will also have the same Standard InChIKeys. However, non-standard InChIKeys generated from non-Standard InChIs (including FixedH sublayer) will allow one to distinguish between the states. This is exemplified by InChIKeys for various ionization states of L-lysine, Figure 8.
Figure 8
Standard (upper line under each drawing) and FixedH (lower line) InChIKeys for the various ionization states of L-lysine.
Standard (upper line under each drawing) and n>an class="Chemical">FixedH (lower line) InChIKeys for the various ionization states of L-lysine.
Overview of implementation
General workflow
The generpan class="Chemical">al workflow of derivation of pan class="Chemical">InChI from structural data is illustrated by Figure 9. There are three major steps in the workflow: (a) normalization of input structure, that is, converting the supplied structural data into internal data structures conforming to the InChI chemical model; (b) canonicalization of atomic numbering, which accounts for atomic equivalence/inequivalence relations appearing under this model; and (c) serialization, that is, generating the finalsequence of symbols, an InChI string. There is an optional fourth step (d); hashing of the InChI string and producing a compact InChIKey.
Figure 9
General workflow of InChI/Key generation.
Generpan class="Chemical">al workflow of pan class="Chemical">InChI/Key genepan class="Chemical">ration.
Input data
The input data for pan class="Chemical">InChI genepan class="Chemical">ration is the structure represented in “classical chemical structure” paradigm as atomic and bonding data, with optionaladdition of “0D” stereochemical data. The data may be supplied either as a molfile or SD file (input of inchi-1 executable, see InChI Software User’s Guide [33]) or C data structures (as described in the header file “inchi_api.h”, see InChI source code).
Each atom is descripan class="Chemical">bed by a numpan class="Chemical">ber of properties: its chemical element name; x,y,z- coordinates (all or any of them may be zero); list of bonded atoms; either the exact number of implicit hydrogen atoms (with separate indication for protium, deuterium, and tritium, if applicable) or flag signifying that implicit hydrogens should beadded; isotopic mass; radical state; formal integer charge.
Each bond is descripan class="Chemical">bed by its typn>e and stereochemistry indicator, if apn>plicable. A bond typn>e may n>an class="Chemical">be single, double, or triple. “Resonant” or “aromatic” is not allowed; a chemical structure described with aromatic bonds should be explicitly converted to a representation with alternating single and double bonds, prior to serving asInChI input. For end user convenience, as aromatic bonds may occur widely in molfiles and SD files (in explicit violation of file format specification [21]), they are typically tolerated by inchi-1 executable, which itself performs a conversion; however, the success is not guaranteed. The stereochemistry indicator is in wedge convention (preferably, in one-wedge style to avoid ambiguity) [34]; it indicates the wedge direction (“up”/”down”/”either”), as well as orientation of the wedge narrow point (towards the atom or out of it). The configurations of stereogenic double bonds are expressed via atomic coordinates. If all the coordinates are zero, “0D” stereochemical data may beadded to specify configuration (applicable to input for InChI Library, API, procedures).
pan class="Chemical">InChI options are the switches that modify default n>an class="Chemical">behavior of InChIalgorithms/software; they are described in a separate section.
Normalization of input structure
The first step of pan class="Chemical">InChI production is normpan class="Chemical">alization: converting the input structural data into data structures conforming to InChI representation rules, organization principles and model of chemical structure.
If applicable, normalization starts from preprocespan class="Chemical">sing, correcting the input structural formula according to several hard-coded “good drawing rules”, intended to ease further treatment. Some of these corrections correspond to mesomeric forms of functional groups as intentionally drawn by chemists (e.g., for nitro groups), while the others serve to correct strange drawing artifacts related to computer origin (which occur surprisingly often in large databases). In particular, normalization serves to exclude the issues concerning alternating bonds, resonance and aromaticity.
The next step of normpan class="Chemical">alization includes breaking bonds to pan class="Chemical">metal ions, asInChI’s core parent structure is always metal-disconnected, to avoid numerous issues with different bonding models for metallated compounds.
The next step is to find protons necessary for dealing with variable protonation, apan class="Chemical">gain to ensure elucidation of the (de)protonation-independent core parent structure.
The finpan class="Chemical">al normpan class="Chemical">alization step includes the discovery of conventionpan class="Chemical">al tautomeric patterns and ‘resonances’ that may occur due to bond alternation or positive charge migration along paths of alternating bonds.
The normpan class="Chemical">alization and the stereochemicpan class="Chemical">al perception stages rely heavily on testing whether a bond order can be changed due to the presence of an alternating bond circuit, as well as the possibility of a hydrogen atom, charge, or radical center to migrate along a path of alternating bonds. This testing is based on a matching algorithm described in detail in ref. [35].
For the fixed H layer, only moving popan class="Chemical">sitive charges pan class="Chemical">along paths of alternating bonds are allowed.
Correcting input structural formula
This includes the following tpan class="Chemical">ransformations, whichever are applicable to the originn>an class="Chemical">al structure (note that this step is still performed “within” the classical structure model and extensively operates with bond orders and atomic charges).
Moving charge from hydrogen to heavy atom
ᅟ
Converting charge-separated patterns to neutral
ᅟExample:ᅟ
Decreasing charge separation by increasing valence
ᅟ
Moving negative charge from central atoms in oxoanions
ᅟExample:ᅟᅟExample:ᅟ
Moving positive charge to create imine nitrogen
ᅟ
Annihilating adjacent opposite charges going to higher valence state
The full pan class="Chemical">set of rules for annihilation of pan class="Disease">adjacent charges is documented in the pan class="Chemical">InChI Technical Manual [5]. One particularly important rule concerns drawing of nitro and similar groups:
ᅟ
Breaking bonds to metal atoms
To avoid many ampan class="Chemical">biguities that typicn>an class="Chemical">ally arise when representing metal-containing compounds, the InChIalgorithm always breaks bonds to metal(s), that is, it disconnects these compounds. However, this is implemented in a different manner for "simple salts" and for coordination/organometallic compounds.
Disconnecting simple salts
pan class="Chemical">Simple n>an class="Chemical">salts, for InChI, are compounds of type M-X or Y-M-X formed by pan class="Chemical">metal atom M and “acids” HX, HY. Acids here are the substances of the following three kinds:
ᅟIn “pan class="Chemical">salts” dpan class="Chemical">rawn connected, metals are connected to the acid by single bonds only and do not have H-atoms connected to them. Metal valences should be the lowest known to InChI valence or, for some metals, the valence may also be the 2nd lowest valence. Positively charged metals should have the lowest valence known to InChI (see Table 1). Upon disconnection, atom X (X = Hal or O) of the acid receives a single negative charge; the charge of the metal is incremented. Substances drawn as H4N-X are disconnected to NH3 and HX.
Note that compounds formed by many inorganic acids do not fit the above n>an class="Chemical">salt definition. For example, sodium nitrate is treated as a coordination compound (so may be reconnected on user request).
pan class="Chemical">Severpan class="Chemical">al examples of pan class="Chemical">salt disconnection are shown below:
ᅟ
Disconnecting other metal-containing compounds
In an effort to depan class="Chemical">al with the various different conventions upan class="Chemical">sed for drawing organometallic compounds, all metal atoms are disconnected in the main layer. In the process, the charges for disconnected halogens, O, S, Se, Te, N, P, As, and B are adjusted if possible by transferring charge to the metal atom.
The pan class="Chemical">InChI pan class="Chemical">algorithm may be instructed, by a software switch, to add to the identifier a “reconnected” layer that contains all bonds given in the input structures, including those to metal. Note that a disconnected “salt” (previous section) cannot be reconnected this way.
At this point rules for annihilating pan class="Disease">adjacent oppon>an class="Chemical">site charges going to higher valence state, see above, are applied a second time, to the disconnected structure.
Eliminating radicals and converting aromatic bonds to alternating single and double
This is the first step out of pan class="Chemical">severpan class="Chemical">al that may change bonds in the structure in a systematic order along alternating bond paths. Before attempting this change, the algorithm detects bonds (highlighted with red below) and marks them as fixed. The order of these bonds will not beallowed to change.
ᅟElimination of pan class="Chemical">radicpan class="Chemical">als can pan class="Chemical">be illustrated as follows:
ᅟThe converpan class="Chemical">sion of aromatic bonds to pan class="Chemical">alternating pan class="Chemical">single and double bonds is done through radical cancellation, for example:
ᅟ
Finding [de]protonation pattern which leads to neutral core parent structure
This step occurs for pan class="Disease">ionized structures. It converts various (de)protonation forms to the same parent neutrn>an class="Chemical">al structure, memorizing associated changes in the protonation layer.
The necessary condition for this step is a presence, in the inpn>ut structure, of charges +1 or -1 located on non-pan class="Chemical">metal atoms that have standard valences (see Table 1). The total charge on these atoms is counted and used later. Charges on atoms that are adjacent to other charged atoms are not counted. Non-ring bonds altered during variable protonation processing are marked as non-stereogenic. The so-called aggressive (‘hard’) proton removal or addition procedure is described below.
Remove protons from charged heteroatoms
This step removes protons from protonated atoms and places them in a sepan>an class="Chemical">rate proton (charge) layer. If the structure contains atom Y′H+ (m ≥ 1, Y′ is N, P, O, S, Se, or Te), then it is replaced with Y′H. This is a “simple removal” of a proton. Since some protonated atoms are, in effect, concealed by alternating bond conventions, a separate effort is made to find and disconnect these protons. This “hard removal” involves changing bonds and removing H from formally uncharged atoms. It may be illustrated as follows. If there exist atoms =N+ or ≡N+ and -NH (m ≥ 1, at least one neighbor of N must be Y or Sb) or =Y-QH (Y = C, N, P, As, S, Se, Te, Cl, Br; Q = O, S, Se, Te), then an attempt is made to find a fragment containing an alternating path (a, b,… are other atoms) and remove a proton:
HN − b = c − d = N+ → HN+ = b − c = d − N → H N = b − c = d − N + H+ orHQ − Y = a − b = c − d = N+ < → HQ+ = Y − a = b − c = d − N < → Q = Y − a = b − c = d − N < + H+More aggrespan class="Chemical">sive tpan class="Chemical">ransformations are pan class="Chemical">also possible, for example, the following "hard" proton removal:
ᅟDuring this process:popan class="Chemical">sitive charges may pan class="Chemical">be moved between N+, N− and N (except N in -N=Q);
nepan class="Chemical">gative charges may pan class="Chemical">be moved pan class="Chemical">between N+, N−, N, and Q, Z in -Y=Q, =Y=Q, =Y-QX, ≡Y-QX, -C-ZX, -Q'-QX, ≡N+-QH, =N+=Q, -N−-QH, where Q is O, S, Se, or Te; Z is S, Se, or Te; X is H or -; Y ≠ C ≠ N may carry ±1 charge; N in -N=Q is excluded; or
pan class="Disease">atoms H may pan class="Chemical">be moved pan class="Chemical">between atoms described in (b).
The neutrpan class="Chemical">alization of pon>an class="Chemical">sitive and negative charges may occur. A simple exchange of atom H and a negative charge between two atoms without changing bonds is not allowed.
Remove protons from neutral heteroatoms
If the totpan class="Chemical">al charge is pon>an class="Chemical">sitive and the structure has fragments = C-QH, -Q-QH, C-ZH, or =N-QH, then hydrogen atoms are removed from the fragments and replaced with negative charges until either no more hydrogens are available or the charge hasbeen reduced to zero. This is a “simple removal” of a proton; example:
ᅟIf the totpan class="Chemical">al charge is still pon>an class="Chemical">sitive then a “hard proton removal” procedure pan class="Chemical">similar to the previously described one is executed.
During this process:popan class="Chemical">sitive charges may pan class="Chemical">be moved between atoms described in 1 (a);
nepan class="Chemical">gative charges may pan class="Chemical">be moved pan class="Chemical">between atoms described in 1 (b);
atoms to receive H if the procedure succeeds: Q in -C=Q, =C=Q, =N+=Q, and -N=Q; andpan class="Disease">atoms H may pan class="Chemical">be moved pan class="Chemical">between atoms described in 1 (b) except atoms described in (f) above.
If the procedure succeeds, it moves H from atoms descripan class="Chemical">bed in (g) to atom Q descripan class="Chemical">bed in (f). After that the H is removed from that Q as a proton, leaving negatively charged O− thus reducing the positive charge.
Add protons to reduce negative charge
If the totpan class="Chemical">al charge is nepan class="Chemical">gative or hasbecome negative due to positive charge removal and the structure has fragments =C-Q−, -Q-Q−, C-Z−, or =N-Q−, then protons are added to the fragments replacing negative charges with atoms H until the total charge is reduced to minimal or zero. This is a “simple addition” of a proton.
If the totpan class="Chemical">al charge is still nepan class="Chemical">gative then a “hard proton pan class="Disease">addition” procedure similar to the previously described one is executed.
During this process:popan class="Chemical">sitive charges may pan class="Chemical">be moved between atoms described in (a);
atoms to receive nepan class="Chemical">gative charge if the procedure succeeds are atoms descripan class="Chemical">bed in (f):
nepan class="Chemical">gative charges may pan class="Chemical">be moved pan class="Chemical">between atoms described in (b) except atoms described in (i) above
pan class="Disease">atoms H may pan class="Chemical">be moved pan class="Chemical">between atoms described in (b).
If the procedure succeeds it moves nepan class="Chemical">gative charge from atoms descripan class="Chemical">bed in (j) to atom Q described in (i). After that this negative charge is replaced with atom H, which is equivalent to a proton addition thus reducing the negative charge.
Analyzing mobile hydrogens and charge
Neutrpan class="Chemical">al or pan class="Chemical">singly negatively charged tautomeric atoms and corresponding changeable bonds are detected and marked. Atoms that may exchange hydrogen atoms or negative charges are considered to belong to a “mobile H group”. If positive charges may be moved from an atom as described in the next section, "Moveable positive charge detection", this atom is also considered as possibly tautomeric. Mobile H groups that contain only negative charges are excluded from InChI.
The existence of a ‘protonated’ pan class="Chemical">site is sometimes not repan class="Disease">adily apparent in a structural drawing. The normalization algorithm is designed to resolve complications that arise from ambiguities introduced at previous step during “hard” or incomplete “simple” removal or addition of protons and in case of charged atoms resembling results of heterolytic dissociation. An example of such ambiguity is shown below:
ᅟ
Simple tautomerism detection
The main layer must pan class="Chemical">be the same for any arpan class="Chemical">rangement of mobile hydrogen atoms. This is achieved by the logical removal of mobile H-atoms and the tagging of H-donor and H-receptor atoms. To identify theseH-atoms we have adopted the straightforward varieties of H-transfer tautomerism listed in Table 2 (see also ref. [36]).
Table 2
Tautomerism patterns detected by InChI
M = Q − ZH ↔ MH − Q = Z or M = Q − Z− ↔ M−−Q = Z
M, Z = NIII, OII, SII, SeII, TeII (Roman superscripts designate chemical valence)
Q = C, N, S, P, Sb, As, Se, Te, Br, Cl, I
H = hydrogen, deuterium, or tritium
The “=” bond may be a double bond, a bond in the alternating single/double bond ring, or a “tautomeric” bond (shown in blue)
The H atom below can be replaced with a negative charge
↔
↔
↔
↔
ᅟᅟpan class="Chemical">InChI for pan class="Chemical">guanine (optionpan class="Chemical">al fixed H layer included) is
pan class="Chemical">InChI=1/C5pan class="Species">H5N5O/c6-5-9-3-2(4(11)10-5)7-1-8-3/pan class="Chemical">h1H,(H4,6,7,8,9,10,11)/f/h8,10H,6H2The layers' meaning is:/pan class="Chemical">h1H,(H4,6,7,8,9,10,11)
atom numpan class="Chemical">ber 1 hpan class="Chemical">as one H, 4 pan class="Disease">atoms H are shared by atoms 6,7,8,9,10, and 11
/f/pan class="Chemical">h8,pan class="Chemical">10H,pan class="Chemical">6H2
atom 6 hpan class="Chemical">as pan class="Chemical">2H, atom 8 hpan class="Chemical">as 1H, atom 10 has1H.
Tautomerism patterns detected by pan class="Chemical">InChI
Moveable positive charge detection
Positive charges located on pan class="Disease">N-atoms are considered moveable along alternating bonds between these atoms. This also applies to phosphorus atoms. Atoms that may exchange positive charges are assigned to a “mobile charge group”. The interference between mobile H and mobile charges may occur.
Hypotheticpan class="Chemical">al structures (a), (b), and (c) pan class="Chemical">below serve as an illustration.
ᅟStructure (b) wpan class="Chemical">as obtained from structure (a) by formpan class="Chemical">ally moving the positive charge from left to right along an alternating bond path. This allows the discovery in structure (b) of a tautomeric pattern (highlighted in blue). Bonds that may be changed by moving positive charges are highlighted in green. Structure (c) shows another tautomeric form obtained from structure (b). Note that structure (c) does not allow movement of a positive charge back from right to left. These three structures generate the same standard InChI:
pan class="Chemical">InChI=1S/C6pan class="Species">H13N3O/c1-8(2)5-6(10)7-9(3)4/pan class="Chemical">h5H,1-4H3/p + 1
but pan class="Chemical">InChI posn>an class="Chemical">sessing pan class="Chemical">FixedH layer for structure (c) differs from those of structures (a) and (b):
(a,b) pan class="Chemical">InChI = 1/C6pan class="Species">H13N3O/c1-8(2)5-6(10)7-9(3)4/pan class="Chemical">h5H,1-4H3/p + 1/fC6H14N3O/h10H/q + 1
(c) pan class="Chemical">InChI = 1/C6pan class="Species">H13N3O/c1-8(2)5-6(10)7-9(3)4/pan class="Chemical">h5H,1-4H3/p + 1/fC6H14N3O/h7H/q + 1
For the purpose of detecting stereogenic bonds, the n>an class="Chemical">algorithm must also provide a means for testing whether a bond order is changeable. InChIassumes that a changeable bond cannot support Z/E stereoisomerism. This is accomplished by introducing fictitious bonds and atoms (used only for internal processing) that represent a mobile H group (red H below) and charge group (red plus below). In the mobile H group fictitious double bonds (red) point to the atom-donors of H or negative charge; in the mobile positive charge group fictitious single bonds point to positively charged atoms.
ᅟAfter the discovery of a new mopan class="Chemical">bile group it is n>an class="Disease">added to the structure. This results in the discovery of changeable bonds. In case of the structure (a), adding a charge group allows one to discover changeable bond N-C (shown in blue) and, as a result, discover the mobile H group. These processing steps correct for common ambiguities in input information for conjugated systems where Z/E stereochemistry is implied by the drawing, but was not really intended.
Additional normalization
pan class="Chemical">As mentioned above, complications arin>an class="Chemical">se from ambiguities introduced at “hard” or incomplete “simple” removal or addition of protons and in the case of charged atoms resembling results of heterolytic dissociation. Since there could be more than one possible set of added/removed proton locations or more than one alternating path for “hard” addition or removal, ambiguities may be introduced. These ambiguities are specifically addressed and in most cases fixed (for the details, see InChI Technical Manual [5]).
Perception of isotopic data
The isotopic structurpan class="Chemical">al layer is the most stpan class="Chemical">raightforward to compute. In the example below, the isotopic layer is ‘/i1 + 1,4 + 1D’. It contains the canonical atom number followed by the isotopic shift (13 – 12 = +1) followed by isotopic hydrogen (D), if present.
ᅟThe only complexity aripan class="Chemical">ses for isotopicpan class="Chemical">ally labeled hydrogen atoms that can undergo tautomerism. In the mobile H group thesehydrogen atoms are treated as non-isotopic; the number of these mobile isotopic hydrogen atoms is appended to the ”exchangeable isotopic hydrogen atoms” part of the isotopic layer. The same is done to isotopic hydrogen atoms that may be subject to heterolytic bond dissociation in aqueous solution (for example, D in R-SD). Note that it is possible that two isotopic layers appear, one of which is applied to the main layer with mobile H and another to the main layer without mobile H or to the Fixed-H layer, e.g., “InChI=1/CH4N2O/c2-1(3)4/h(H4,2,3,4)/i/hD2/f/h2-3H2/i2D2”.
Perception of stereochemical features
The pan class="Chemical">InChI pan class="Chemical">algorithm supports perception of stereochemistry for both 2D (x,y-coordinates of atoms are given; planar depiction) and 3D (x,y,z-coordinates of atoms are given) capan class="Chemical">ses.
For perception of stereo configurations in two-dimenn>an class="Chemical">sional drawings, the InChIalgorithm supports two different systems of wedged and hatched bond interpretations. By default, the convention “narrow end of wedge points to stereocenter”, is used. It suggests that the bond affects the stereochemistry of only one atom. Another - “perspective” - system is invoked by selecting the “narrow end of wedge points to stereocenter is OFF”, “/NEWPSOFF”, option. Here a wedged or hatched bond affects the stereochemistry of the two atoms it connects. Both systems assume that the narrow end of the bond is in the plane of the drawing.
In the 3D-capan class="Chemical">se, the parity is direcn>an class="Chemical">tly calculated from the atomic coordinates, 2-dimensional Up and Down wedged and hatched bond symbols being ignored. However, “Either” (wavy) bonds in the 3-dimensional case still provide “unknown” stereochemistry.
It is stpan class="Chemical">raightforward to cpan class="Chemical">alculate stereodescriptors in cases where neighbors to a stereogenic element are not constitutionally identical: the parities are calculated from canonical numbers and geometry. Tetrahedral parity is ‘+’ if the canonical numbers of neighbors increase clockwise when observed from a hydrogen atom or an atom that has the smallest canonical number; parity of a double bond is ‘-’ if neighbors with greater canonical numbers are located on the same side of the bond.
When constitutionpan class="Chemical">ally identicpan class="Chemical">al neighbors are present, several equivalent canonical numberings are possible. To resolve this ambiguity, the algorithm finds a numbering that minimizes a specific internal representation of the stereo layer. In this case, it is desirable to determine whether a possibly stereogenic element is in fact stereogenic. To determine this, the following heuristic approach is used. A pair of constitutionally identical neighbors (termed right and left neighbors) of a possibly stereogenic element is selected. These two neighbors and adjacent atoms are mapped on their constitutionally equivalent counterparts. After the mapping is complete, the canonical numbers are switched between left and right (this leaves the non-stereochemical part of the identifier unchanged). Stereochemical layers corresponding to these two canonical numberings are compared. If the only change that occurs is to the stereogenic element in question and there are not more than two such constitutionally identical stereogenic elements, then these elements are not marked as stereogenic.
Double bond stereochemistry
When upan class="Chemical">sing input originating from dn>an class="Chemical">rawings, the perception of formal double bonds capable of supporting Z/E isomerism (Table 3) relies on atomic coordinates.
Table 3
Double bonds treated as possibly stereogenic (only one of two atoms connected by a possibly stereogenic double bond is shown)
Double bonds treated pan class="Chemical">as posn>an class="Chemical">sibly stereogenic (only one of two atoms connected by a possibly stereogenic double bond is shown)
In pan class="Chemical">alternating pan class="Chemical">single/double bond cyclic systems, bond-finding algorithms determine whether a formal double bond can exist between each of the two attached atoms. If such a bond can be drawn between sp2 hybridized atoms, and the remainder of the π-electron structure can be completed with alternating bonds, that bond is presumed to be a double bond, hence stereogenic (can support Z/E isomerism).
Replacement of pan class="Disease">adjacent charges with incremented bond orders produces structures with two double bonds connected to a pan class="Chemical">nitrogen atom. In repan class="Chemical">ality, one or both double bonds are in place of a single bond or a bond/charge resonance. The rules for stereogenic bond recognition are summarized in Table 4. Recognized stereogenic bonds are drawn in blue.
Table 4
Detection of stereogenic bonds in =N= fragments
Input fragment(s)
Normalized fragment
Interpreted for stereogenic bond detection as
No stereo
No stereo
Detection of stereogenic bonds in =N= fpan class="Chemical">ragments
The pan class="Chemical">InChI supports a ‘not-known’ descripn>tor for marking double bonds where the Z/E isomer is not certain. That is, the stereolayers would n>an class="Chemical">be different for (Z)-but-2-ene, (E)-but-2-ene and but-2-ene.
Tetrahedral stereochemistry
Stereochemicpan class="Chemical">al descriptors will n>an class="Chemical">be processed for tetrahedral atoms such as C, Si and Ge. InChI recognizes the centers listed in Table 5 as capable of supporting sp3 stereochemistry.
Table 5
Tetrahedral centers treated as possibly stereogenic
An atom or positive ion N, P, As, S, or Se is not treated as stereogenic if it has (a) a terminal H atom neighbor or (b) at least two terminal neighbors, −XH
and − XH
, (n + m > 0) connected by any kind of bond, where X is O, S, Se, Te, or N. Phosphines and arsines are always treated as stereogenic even with H atom neighbors.
Tetpan class="Chemical">rahedrpan class="Chemical">al centers treated pan class="Chemical">as possibly stereogenic
An atom or popan class="Chemical">sitive ion N, P, pan class="Chemical">As, S, or Se is not treated as stereogenic if it has (a) a terminalH atom neighbor or (b) at least two terminal neighbors, −XH
and − XH
, (n + m > 0) connected by any kind of bond, where X is O, S, Se, Te, or N. Phosphines and arsines are always treated as stereogenic even with H atom neighbors.
The parity of a stereogenic atom is cpan class="Chemical">alculated pan class="Chemical">as a volume of an oriented tetrahedron. A wide end of a wedge bond is lifted at an angle of 45° to the plane; a wide end of a hatched bond is lowered at 45° from the plane. Before the volume is calculated all bonds are reduced to the same length. A warning is issued if the central atom is outside of the tetrahedron.
When a complete stereo-description is provided, it is straightforward to derive the n>an class="Chemical">InChI for a stereoisomer. Problems may arise for representation of structures that contain inexact stereochemical information. In these cases stereochemical layers of InChI for different input representations of the same substance will match only if they contain precisely the same sets of inexact information. Moreover, stereochemical layers for inexact structures will not match stereochemical layers for a fully described stereoisomer.
Nevertheless, pan class="Chemical">significant interest wpan class="Chemical">as expressed for including partial stereochemical information in the InChI. For this purpose, absolute and unknown stereochemical descriptors can be employed, as shown below (left structure is absolute, the C-BrC2H stereocenter in the right structure is unknown):
ᅟReprepan class="Chemical">senting relative and absolute stereochemistry of the whole structure is illustpan class="Chemical">rated for tartaric acid (it is known that the structure is described by either structure 1 or 2):
ᅟThe identifiers for thepan class="Chemical">se structures (capan class="Chemical">se of absolute stereochemistry) are
1. pan class="Chemical">InChI=1S/C4H6O6/c5-1(3(7)8)2(6)4(9)10/h1-2,5-6H,(H,7,8)(H,9,10)/t1-,2-/m1/s1
2. pan class="Chemical">InChI=1S/C4H6O6/c5-1(3(7)8)2(6)4(9)10/h1-2,5-6H,(H,7,8)(H,9,10)/t1-,2-/m0/s1
pan class="Chemical">InChI conpan class="Disease">siders both enantiomers and selects the one that has the “smaller” identifier. /m0 signifies that the selected one has exactly the same stereo arrangement as the input structure; /m1 means that the selected one has the inverse arrangement. /s1 means absolute stereochemistry was requested.
To identify relative stereochemistry the /m pan class="Chemical">segment of the identifier is dropped. n>an class="Chemical">As a result the identifiers (case of relative stereochemistry) are the same:
1. pan class="Chemical">InChI=1/C4H6O6/c5-1(3(7)8)2(6)4(9)10/h1-2,5-6H,(H,7,8)(H,9,10)/t1-,2-/s2
2. pan class="Chemical">InChI=1/C4H6O6/c5-1(3(7)8)2(6)4(9)10/h1-2,5-6H,(H,7,8)(H,9,10)/t1-,2-/s2
/s2 means relative stereochemistry.The molfile structure format supports the special feature, Chirn>an class="Chemical">ality Flag. If this flag is set, the tetrahedral stereo is absolute, otherwise relative. The InChI option “Include stereo from chiral flag” (/SUCF command line option) makes InChI calculate tetrahedral stereo according to the Chiral Flag. If Chiral Flag is set, “Include stereo from chiral flag” option is used, and InChI finds that the tetrahedral stereo descriptor does not change upon inversion of the structure, the warning "Not chiral" is issued.
pan class="Chemical">Allenes pan class="Chemical">belong to the tetrahedral layer. However, to indicate stereochemistry of allenes in the input molfile a special effort may be required. Namely, the two bonds at the same end of allene system should be indicated by wedge as stereogenic (and having opposite Up/Down marks). This is a limitation of current InChI software. Cumulenes are treated as double bonds. Table 6 lists the rules used to recognize allenes and cumulenes:
Table 6
Cumulenes treated as possibly stereogenic
Terminal atoms
Middle atoms
pan class="Chemical">Cumulenes treated pan class="Chemical">as pospan class="Chemical">sibly stereogenic
Only pan class="Chemical">cumulenes that have 3 double bonds and pan class="Chemical">allenes that have 2 double bonds are treated pan class="Chemical">as possibly stereogenic. Canonicalization of allene and cumulene stereochemistry is performed together with the double bond stereochemistry.
Some limitations of the pan class="Chemical">InChI pan class="Chemical">algorithm of stereo recognition are conpan class="Disease">sidered in the InChI Technical Manual [5].
Canonicalization
Establishing canonicpan class="Chemical">al numpan class="Chemical">bers of chemical graph nodes (atoms) is a problem well-known to chemists, mathematicians and chemoinformaticians and well-discussed in the literature.
For canonicpan class="Chemical">alization that does not involve stereochemistry, the pan class="Chemical">InChI approach is based upon the algorithm by McKay [37,38] (see also explanations in [39]]). This algorithm, modified to accommodate the layered structure of InChI, was implemented in the InChI software.
The stereochemicpan class="Chemical">al canonicpan class="Chemical">alization is based on an exhaustive mapping of non-stereochemical canonical numbering on the structure using previously found constitutional equivalence of the atoms. It is an iterative process aimed at establishing the smallest internal representation of the stereochemical layer while keeping other previously found layers unchanged. To avoid combinatorial explosion in the case of highly symmetrical structures, the algorithim uses two approaches: (1) elimination of non-stereogenic elements and (2) a backtrack method that prunes the search tree [40].
The canonicpan class="Chemical">alization is performed in stages; each stage n>an class="Disease">adds one more layer to ‘minimize’ while keeping previously found layers unchanged. Figure 10 shows the canonicalization flowchart. As can beseen, the first layer of the Identifier is actually a hydrogenless chemical formula and skeletal connections.
Figure 10
Canonicalization order flowchart.
Canonicpan class="Chemical">alization order flowchart.
Notes.Each pan class="Chemical">set of canonicpan class="Chemical">al numpan class="Chemical">berings is a subset of the previous one located up the tree.
Δ(fixed H) = (numpan class="Chemical">ber of fixed H on an atom) – (numpan class="Chemical">ber of H in “mopan class="Chemical">bile-H” structure on the same atom).
Names inparenthepan class="Chemical">ses e.g. (Ct_NoH) are names of data structures in the code.
pan class="Chemical">Below is a very brief and pan class="Chemical">simplified descriptione (leaving aside mobile H treatment and technical details; almost all numerical examples below refer to 2-chlorobutaneas illustrated by Figure 11).
Figure 11
Establishiment of the canonical atomic numbers for 2-chlorobutane (steps a-e are explained in the text).
Establishiment of the canonicpan class="Chemical">al atomic numpan class="Chemical">bers for pan class="Chemical">2-chlorobutane (steps a-e are explained in the text).
Step A: hydrogenless constitution
The skeletpan class="Chemical">al atoms are lapan class="Chemical">belled with numericpan class="Chemical">al "colors" in the following order of precedence.
Ordering numpan class="Chemical">ber of chemicpan class="Chemical">al element in the pan class="Chemical">sequence: carbon, other atoms in alphabetic order, bridging hydrogen. In case of C4H9Clall C will be given color 1, Cl will be given 2 (Figure 11a).
Numpan class="Chemical">ber of connections (numpan class="Chemical">ber of bonds). In 2-chlorobutane CH3CH2CH(Cl)CH3 these are (in brackets): C[1]C[2]C[3](Cl[1])C[1]
The resultant "ordered lists of colors" prepan class="Chemical">sented in order of the atoms in the pan class="Disease">semi-structural formula CH3CH2CH(Cl)CH3 are: C: (1, 1); C: (1, 2); C: (1, 3); Cl: (2, 1); C (1, 1) (Figure 11b).
Atoms are pan class="Chemical">aspan class="Chemical">signed new colors according to lexicogpan class="Chemical">raphical comparison of the "color lists", in ascending order [for example, (1,1) < (1,2) < (2,1); (1, 2) < (1, 2, 1)]
C: 1, 1 = > 2;C: 1, 2 = > 3C: 1, 3 = > 4Cl: 2, 1 = > 5pan class="Gene">C 1, 1 = > 2
(pan class="Chemical">see Figure 11c)
Notice that each color is equpan class="Chemical">al to the numpan class="Chemical">ber of atoms that have this or smaller color.
Atoms are pan class="Chemical">aspan class="Chemical">signed new "ordered lists of colors": the first in the list is the color of the atom, the rest are sorted in pan class="Chemical">ascending order colors of other atoms, connected to this atom (Figure 11d):
C: 2, 3pan class="Gene">C: 3, 2, 3
pan class="Gene">C: 4, 2, 3, 5
Cl: 5, 4pan class="Gene">C 2, 4
Atoms are pan class="Chemical">aspan class="Chemical">signed new colors according to lexicogpan class="Chemical">raphical comparison of the "color lists", in ascending order (Figure 11e)
C: 2, 3 = > 1pan class="Gene">C: 3, 2, 3 = > 3
pan class="Gene">C: 4, 2, 3, 5 = > 4
Cl: 5, 4 = > 5pan class="Gene">C 2, 4 = > 2
Steps 3–4 are repeated until all new colors are different or no more changes occur (for n>an class="Chemical">2-chlorobutane the colors - canonical numbers - have already been found, see Figure 11e).
The resultant colors produce a so cpan class="Chemical">alled equitable partition, in a way which is conceptun>an class="Chemical">ally almost same as the intermediate result of the SMILES-2 algorithm [17].
If some of the colors are still identicpan class="Chemical">al, then the smpan class="Chemical">allest is picked up and reduced to the previous color + 1. For example, if colors are (this example does not refer to pan class="Chemical">2-chlorobutane):
1,2,5,5,5,7,7then the smpan class="Chemical">allest duplicated color is 5, the previous color is 2. A color of one of the colored-5-atoms will n>an class="Chemical">be reduced from 5 to 2 + 1 = 3.
Repeat steps 3–6 until all colors n>an class="Chemical">become different (this is almost same as obtaining the final result of the SMILES-2 algorithm) and save the "connection table". To make the reading easier, the process of obtaining this table (actually, a list of number) is split into 3 steps.
The connection table is mpan class="Disease">ade out of pan class="Chemical">segments, ordered in ascending order of the color of the first atom in a segment. The number of the segments is the number of atoms. Each segment starts with the color of an atom and is followed by a colon and a sorted list of the colors of atoms, connected to it:
1:3; 2:4; 3:1,4; 4:2,3,5; 5:4;pan class="Chemical">Since this connection table contains each connection 2 times (for example, the bond n>an class="Chemical">between atoms of color 1 and 3 is in the segments "1:3" and "3:1"), it is rewritten by excluding colors that are greater than the first color in the pan class="Chemical">segment:
1; 2; 3:1; 4:2,3; 5:4;The delimiters now are redundant pan class="Chemical">becaupan class="Chemical">se the members of each segment are always smaller than the first member of the segment. This is the final connection table to be saved and used later:
1, 2, 3, 1, 4, 2, 3, 5, 4There could pan class="Chemical">be a great depan class="Chemical">al of arbitrariness in choosing the atom whose color was to be reduced at step 6 (in the example, 3 atoms have color 5; each of them could be chosen). Therefore, repeat step 7 for all possible sequences of choosing the atoms whose color is reduced. Lexicographically compare each obtained connection table to the previously saved and keep the smallest one together with the assignment of the colors to the atoms. These colors are the canonical numbers for the hydrogenless structure.
If two connection tables are identicpan class="Chemical">al, then atoms that have same colors in two connection tables pan class="Chemical">belong to the same equivalence class; this information is saved and used. The equivalence class is the smallest color in the equivalence group. (This approach may be found in, e.g. [41]. However, the algorithm by McKay implemented in InChIallows one to avoid a combinatorial explosion in typical chemical structures, obtain equivalence classes, and even the order of the permutation group and its generators).
At this time, a canonicpan class="Chemical">al numpan class="Chemical">bering (colors) for a hydrogenless structure and the canonical equivalence classes (=the smallest color in each set of equivalent atoms) are obtained.
Make new colors out of the canonicpan class="Chemical">al equivpan class="Chemical">alence classes and repeat steps 3–8 if these colors are different from the colors previously used at Step 3. Obtain the new minimal connection table. Use these classes as initial colors in the next steps
(If equivpan class="Chemical">alence clpan class="Chemical">aspan class="Chemical">ses are, for example,
1, 1, 1, 4, 4, 5, 5, 5then the corresponding colors are3, 3, 3, 5, 5, 8, 8, 8)
Step B. Add hydrogen atoms to the structure
Upan class="Chemical">se previously obtained equivalence classes at Step A.9 and use the previously obtained minimal connection table for the comparison. Run Steps A.3-8 with the following difference: each time the connection tables are compared at Step A.8, in case of identical connection tables also compare the list of terminalatoms H in the following form:
where numpan class="Chemical">ber_of_H(c) is the numpan class="Chemical">ber of terminpan class="Chemical">al atoms H attached to the atom that has color c; n = number of atoms.
Save the minimpan class="Chemical">al list of the terminpan class="Chemical">al atoms found this way together with the pan class="Chemical">assignment of the colors to the atoms. Also obtain the equivalence classes as was done earlier.
At this time, the canonicpan class="Chemical">al colors (numpan class="Chemical">bering) of the non-isotopic non-tautomeric structure are obtained.
Step C. Add isotopic composition to the structure
where iso_weight(c) is the "isotopic weight" of the atom to which the color c wpan class="Chemical">as pan class="Chemical">assigned. For each atom the isotopic weight is calculated according to the formula:where
If the structure is isotopic, thenpan class="Disease">add one more list to compare whether the connection tables and the lists of terminpan class="Chemical">al pan class="Disease">atoms H are same:
nH1 = numpan class="Chemical">ber of terminpan class="Chemical">al atoms of pan class="Chemical">protium attached to the atom
nH2 = numpan class="Chemical">ber of terminpan class="Chemical">al atoms of pan class="Chemical">deuterium attached to the atom
nH3 = numpan class="Chemical">ber of terminpan class="Chemical">al atoms of pan class="Chemical">tritium attached to the atom
shift = [(integrpan class="Chemical">al) mpan class="Chemical">ass of the isotopic atom] - [rounded avepan class="Chemical">rage atomic mass]
Note: pan class="Chemical">hydrogen H is treated differenpan class="Chemical">tly from its isotope protium: H has "natural" isotopic composition while protium is treated as an isotopic atom. In case of an atom not isotopic the shift is 0 by definition.
If the atom is isotopic and its mpan class="Chemical">ass numpan class="Chemical">ber is greater than or equal to the rounded average atomic mass (that is, shift is not negative) then the shift is incremented, to avoid shift = 0 for isotopes.
If the formula produces iso_weight equpan class="Chemical">al to 0 (the atom and the attached H are not isotopic) then iso_weight(c) is pan class="Chemical">set equal to a very large number that exceeds any iso_weight. This forces isotopic atoms to assume the least possible canonical numbers.
In the capan class="Chemical">se of mopan class="Chemical">bile H the steps are somewhat different, namely:
(m-a) pan class="Disease">Add a list of only thopan class="Chemical">se H that are not mopan class="Chemical">bile (similar to B.1 above) and minimize both the connection table (it will be same) and the list.
(m-b) pan class="Disease">Add mopan class="Chemical">bile groups aspseudoatoms connected by directed edges (it means that thesepseudoatoms are not included in the connection table segments of the real atoms) to the atoms where the mobile H and possibly negative charges may reside and canonicalize this structure. Numbers of H and (−) in the groups are in one more list to minimize. The result is the Mobile H group canonical numbering and the corresponding equivalence classes, including equivalence classes of the mobile H (and possibly negative charge) groups. Mobile H groups that have only negative charges are not included in this process.
(m-c) pan class="Disease">Add isotopic list (n>an class="Chemical">similar to C.1 above) to the number of lists to be minimized. Do not include in it the exchangeable isotopic atoms H. The result of the minimization is the Mobile H canonical numbering and equivalence classes for the isotopic structure.
(f-a) For the fixed mopan class="Chemical">bile H (pan class="Chemical">FixedH option) start with the results of (m-a) and add a list of the fixed positions of the mobile H (colors of the atoms where these H reside) and numbers of theseatoms H. The result of the minimization is the Fixed-H canonical numbering and equivalence classes.
(f-b) pan class="Disease">Add isotopic list (n>an class="Chemical">similar to C.1 above). The minimization result is the Fixed-H canonicpan class="Chemical">al numbering and equivalence classes for the isotopic Fixed-H structure.
Repeat Step B, adding the list of isotopn>ic weights to thopan class="Chemical">se already minimized.
At this point the modified pan class="Chemical">algorithm [37] is finished.
It should pan class="Chemical">be pointed out that for the sake of n>an class="Chemical">simplicity, avoiding dependence on the hardware or operating system, and the possibility to reproduce the results "by hand", the efficiency of the original McKay algorithm hasbeen reduced. The greatest impact is due to abandoning hashing for the connection table comparison and introducing lists to be minimized additional to the connection table. Also the implemented algorithm for calculating the equitable partition from the given colors is less efficient than the one suggested in ref. [37].
Step D. Stereochemistry
For the found canonicpan class="Chemical">al colors (numpan class="Chemical">bers) calculate double bond >X=Y < and cumulene >W=X=Y=Z < parities. Namely, for each atom at the ends of the double bond or cumulene find connected to it by a single bond the atom that has larger canonical number. If these two found atoms are in "cis" positions then the parity is (−), otherwise the parity is (+).
Save parities list c1[1], c2[1], p[1], c1[2], c2[2], p[2],…, c1[n1], c2[n1], p[n1] arranged in ascending order of (c1[i],c2[i]) pairs where n1 = number of possibly stereogenic double bonds and cumulenes; c1[i] > c2[i] are colors of the atoms at the end of a double bond or cumulene; p[i] is the parity ("u" > "?" > " + " > "-").The precedence order is determined pan class="Chemical">as follows. Let a1 > a2 and b1 > b2 pan class="Chemical">be the colors of the atoms for two double bonds, (a1,a2) and (b1,b2). We consider that (a1,a2) > (b1,b2) if and only if (i) a1 > b1 or (ii) a1 = b1 and a2 > b2.
For each pan class="Chemical">allene >X=Y=Z < conpan class="Disease">sider a tetrahedron that hasas its apices the four atoms connected by single bonds to the allene atoms X and Z. Looking at other apices from the apex that has the smallest canonical number and consider canonical numbers of these three other apices arranged in ascending order. If it is clockwise then the parity is (+), otherwise it is (−).
Save parities list: c[1], p[1], c[2], p[2],…, c[n2], p[n2] arranged in ascending order of c[i], where n2 = number of possibly stereogenic allenes; c[i] are the colors of atoms Y; p[i] are the parities.For each pospan class="Chemical">sibly stereogenic atom conpan class="Disease">sider a tetrahedron that hasas its apices the four atoms connected this possibly stereogenic atom. If you look at other apices from the apex that has the smallest canonical number and see canonical numbers of these three other apices arranged in ascending order clockwise then the parity is (+), otherwise it is (−).
Save parities list: c[1], p[1], c[2], p[2],…, c[n3], p[n3] arranged in ascending order of c[i], where n3 = number of possibly stereogenic atoms; c[i] are the colors of the atoms; p[i] are the parities.Note. Terminpan class="Chemical">al pan class="Chemical">hydrogen atoms do not have colors (canonical numbers). In parity calculations, hydrogen atoms are assumed to have colors less than the smallest color of other atoms, that is, less than 1. The values of their colors c are assumed to be: c[H] < c[protium] < c[deuterium] < c[tritium] < 1. In the special case of all four hydrogen atoms connected to the same atom, the atom is not stereogenic.
In the capan class="Chemical">se of a tetpan class="Chemical">rahedrpan class="Chemical">al atom that has only 3 bonds (for example, >S=O or >N-) the direction of the lone electron pair is used as one more bond; c[lone pair] < c[H].
Repeat steps 1–3 for all other mapn>pings of the canonicpan class="Chemical">al numbers on the atoms that produce same results as in Step B or C and find the mapping(s) that produce the lexicographically smallest result in this order of the lists: D.1, D.2, D.3.
To each result apply a heuristic to detect possibly stereogenic elements that in reality are not stereogenic; if such elements have been found then remove their parities and repeat D.1-4.Repeat steps 1–4 for the spatially inverted structure. Accepn>t the one that hn>an class="Chemical">as smaller stereo (D.1 stereo should be same, except cases of constitutionally identical neighbors differing in tetrahedral stereochemistry). Set "inverted" flag if the inverted stereo wasselected.
This procedure is applied to pan class="Chemical">all connected components of the whole structure.
Serialization
The pan class="Chemical">sequence of pan class="Chemical">InChI layers and sublayers is stricpan class="Chemical">tly determined; generating the corresponding sequence of characters is mostly a technical issue that does not need specific comments.
It is noteworthy that some complication comes from the fact that pan class="Chemical">InChI may reprepan class="Chemical">sent a substance composed of several sublayers (connected components) not bound to each other; a definite order of these components must be figured out. For this purpose, the components are sorted (the "greater" component appears first in the InChI string, and descending order of the components is applied) using the comparison function taking into account numerous component data details.
For convenience, the pan class="Chemical">InChI Software may complement an n>an class="Chemical">InChI string with an Auxiliary Information (“AuxInfo”) line that provides some explanations of the InChI content and its relation to the input parent structure. In particular, AuxInfo contains mapping of canonical numbers on original atom numbers, information on detected constitutional equivalence of atoms and mobile H groups, stereo of the inverted structure, and reversibility information that is sufficient to recalculate the Identifier and, in case of input from a Molfile, reconstruct the Molfile (except the order of the bonds). The exact AuxInfo layout may be found in the InChI Technical Manual [5].
Generation of InChIKey
An pan class="Chemical">InChIKey is genepan class="Chemical">rated from the corresponding pan class="Chemical">InChI string.
The first step is pre-processing. The very n>an class="Chemical">beginning of the source string, either “InChI=1/” or “InChI=1S/” is removed, while the Standard/non-standard nature of the identifier is memorized in the flag character of the InChIKey. The string obtained is split into three parts. Part #1 is the leading substring that comprises formula, connectivity (prefixed by ‘/c’), and hydrogens (‘/h’) sublayers. Part #2 is the protonation layer, prefixed by ‘/p‘. Part #3 is all the rest of the string.
After the pre-processing, hn>an class="Chemical">ash codes of parts #1 and #3 are calculated separately; then, they are encoded using base-26 schema into the InChIKey first and second blocks. The content of the part #2 is not hashed; instead, it is used to select an appropriate character for the protonation/deprotonation flag.
Encoding
The hpan class="Chemical">ash code is the pan class="Chemical">sequence of pan class="Chemical">bits. It is represented, in InChIKey, by uppercase English letters (base-26 encoding). This choice is intentional.
Of courpan class="Chemical">se, the hpan class="Chemical">ash code may be expressed by letters, digits, their mix, or even with bare 0’s and 1’s. However, a particular representation may influence utility for applications like publishing or internet search. Web search engines may tend to break the text "on the border" between letters and non-letters, trying to detect "words" since the words of human languages do not contain digits or punctuation marks. Though the exact behavior may vary, in general, it is more robust to proceed with nothing but letters. Using only letters increases chances that a search engine would consider InChIKey as a single "word" (or phrase) and would index it as such. Also, the robust approach assumes use of only upper-case letters - to avoid possible confusions.
Hash codes
pan class="Chemical">InChIKey hpan class="Chemical">ash codes are calculated using the SHA-256 cryptographic hash function of the SHA-2 family [42]. Internally, the full 256-bit codes are calculated; then they are truncated to ensure InChIKey’s compactness. (Note that the truncation of the hash code is explicitly allowed by the SHA-2 description).
The hpan class="Chemical">ash code going to the first block (repren>an class="Chemical">senting molecular skeleton, or connectivity) is truncated to 65 bits, and the hash code going to the second block (stereo/protonation/isotopic substitution isomers) – to 37 bits.
A cryptogpan class="Chemical">raphic hpan class="Chemical">ash function is used in order to increase the chances that collision resistance will beas close to the theoretical limit as possible. However, due to the very essence of hash functions, collisions (the same InChIKey for different InChIs/structures) are unavoidable in very large collections.
Collision resistance
pan class="Chemical">As wpan class="Chemical">as mentioned earlier, a single InChIKey may occasionally map to two or more InChI strings, due to hash codes collision. This is unavoidable for even the perfect hash function, so the only viable approach is to set and keep a level of collision resistance regarded as sufficient for typical applications. At the InChIKey design, this level was placed at the size characteristic of the largest available real-world molecular databases, ≈(50–100) × 106 molecular skeletons; for stereoisomers/isotopomers/tautomers, the practical goal was to avoid collisions up to several thousand isomers for a given skeleton; some margin of safety wasalso presumed.
Another depan class="Chemical">sign gopan class="Chemical">al was to keep InChIKey reasonably short. Balancing and testing determined the current choice of the length of hash codes in the first and the second blocks as 65 and 37 bits, respectively. The estimated level of collision resistance was published when InChIKey was introduced in 2007, and the statement that accompanied this release was: “A theoretical – optimistic – estimate of collision resistance (i.e., the minimalsize of a database at which a single collision is expected, that is, an event of the two hashes of two different InChI strings being the same) is 6.1 × 109 molecular skeletons × 3.7 × 105 stereo/isotopomers per skeleton ≈ 2.2 × 1015. To exemplify: the probability of a single first block collision in a database of 1 billion compounds is 1.3%. In other words, a single first block collision is expected in 1 out of 100/1.3 = 75 databases of 109 compounds each. For 108 (100 million) compounds in a database this probability is 0.014%.”
pan class="Chemical">Since 2007, two capan class="Chemical">ses of InChIKey collisions have been reported, which prompted us to investigate if the initial estimates are valid. This work is described in a dedicated paper in the Journal of Cheminformatics [43] to which the reader is referred for detail. We only quote the conclusion: “the observed statistical characteristics of InChIKey collision resistance are in good agreement with theoretical expectations… the current design and implementation seem to meet their goals”.
Options available for InChI generation and behavior of InChI algorithms
Note that pan class="Chemical">all switches that modify the pan class="Chemical">InChI act by appending layers, not by altering the core InChI.
Structure perception options
Thepan class="Chemical">se are dpan class="Chemical">rawing style/edit flags that affect the input structure interpretation. It is assumed that the user may deliberately use these options to take into account specific features of structure collections. As the result, the perception options may be used for generating Standard InChI without the loss of its "standardness".
The full list of perception options is as follows: DoNotAddH; SNon; NEWPSOFF.
DoNotAddH
By default, pan class="Chemical">InChI Software pan class="Chemical">assumes that the input structure may contain "implied" hydrogen atoms and adds hydrogen atoms to eligible atoms to satisfy standard valences. Sometimes, this may produce undesirable results. Option DoNotAddH instructs the software to skip the addition of hydrogen atoms.
SNon
This option means that input stereo information (whatever it is and by whatever means it is represented) is compn>letely ignored. That is, n>an class="Chemical">InChI generated with SNon option intentionally lacks stereo layer(s). Note that SNon is a "perception option"; therefore, it may be used in the generation of Standard InChI without the loss of its "standardness".
NEWPSOFF
By default, when pan class="Chemical">InChI Software anpan class="Chemical">alyzes the effect of a wedged bond on the stereo configuration of a tetrahedral stereogenic atom it assumes that the stereo configuration is affected by only those wedged bonds that have the narrow end pointing to the stereogenic atom in question. To use the alternative definition, where a wedged bond affects stereo configurations of both atoms it connects, one may use the option NEWPSOFF ("Narrow End of Wedge Points to Stereo is OFF").
Note that NEWPSOFF is a "perception option"; therefore, it may be used in the generation of Standard InChI without the loss of its "standardness".
Stereo interpretation options
Thepan class="Chemical">se are pan class="Chemical">several options that modify the interpretation of input stereochemical data. In principle, they would be considered related to structure perception. However, as the Standard InChI, by definition, requires the use of absolute stereo (or no stereo at all), these 'stereo interpretation' options assume generation of non-standard InChI.
The stereo interpretation options are: SRel; n>an class="Chemical">SRac; SUCF.
pan class="Chemical">SRel pan class="Chemical">assumes that the compound is a pan class="Chemical">single enantiomer but its absolute configuration is not known.
pan class="Chemical">SRac pan class="Chemical">assumes that the compound is pan class="Gene">a 1:1 mixture of enantiomers.
One more stereo interpretation option pan class="Chemical">SUCF only apn>plies to molfiles in which the CHIRpan class="Chemical">AL flag is set. By default this is set to 0/off. The combinations are:
pan class="Chemical">SUCF on, CHIRpan class="Chemical">AL 1 = > absolute stereo (default for pan class="Chemical">InChI Software)
pan class="Chemical">SUCF on, CHIRpan class="Chemical">AL 0 = > relative stereo
pan class="Chemical">SUCF off, CHIRpan class="Chemical">AL ignored. This defaults to absolute stereo by pan class="Chemical">InChI Software.
Note that many dpan class="Chemical">rawing progpan class="Chemical">rams do not allow the user to specify the chiral flag so the information is very variable. It is more likely that the maintainer of a collection will know whether some or all of the compounds are of known chirality.
Note that any of the above options makes a non-standard InChI. Even if the compn>ound is not chirpan class="Chemical">al and, as the result, InChI does not have /m and /s segments, any of these options makes the InChI non-standard.
InChI creation options
The 'pan class="Chemical">InChI creation' options affect what the n>an class="Chemical">InChI algorithm does, not just the structure perception. They modify the defaults specified for Standard InChI and significantly affect the result (e.g., additionalInChI layers may appear). Using any of the creation options:
pan class="Chemical">SUU; SLUUD; RecMet; pan class="Chemical">FixedH; KET; 15T
makes the resulting identifier Non-standard.pan class="Chemical">SUU
By default, pan class="Chemical">InChI Software does not include in the Identifer an unknown/undefined stereocenter unless at lepan class="Chemical">ast one defined stereo feature is prepan class="Chemical">sent in the input structure.
The pan class="Chemical">SUU ("pan class="Chemical">always Show Unknown or Undefined stereo") option is intended to alter this behavior. Using SUU results in inclusion of unknown/undefined stereo in all cases.
Note that pan class="Chemical">SUU is an 'pan class="Chemical">InChI creation' option; therefore, it makes a non-standard InChI even if there are no unknown or undefined stereo elements in the structure.
The RecMet option appends the metal-reconnected layer (/r) to the n>an class="Chemical">InChI, adding to the identifier the ability to distinguish metal-bonding isomers. This is an 'InChI creation' option; therefore, it makes a non-standard InChI.
The pan class="Chemical">FixedH option apn>pends an n>an class="Disease">additional fixed hydrogen layer (/f) to InChI, adding to the identifier the ability to distinguish tautomers. Note that FixedH is an 'InChI creation' option; therefore, it makes a non-standard InChI.
Software
The reference implementation of the pan class="Chemical">InChI pan class="Chemical">algorithm is “InChI Software” - the software package distributed (and periodically updated) by the InChI Trust with the approval of IUPAC. The package contains both stand-alone executables as well as the API (Application Programming Interface) Library for InChI generation.
The current pan class="Chemical">InChI Software verpan class="Chemical">sion 1.04 (the major version of the software is always the version number of the identifier, e.g., 1 for now) includes: inchi-1 - a 'command line' InChI generator, available in 32- and 64-bit versions for MS Windows and Linux; libinchi - InChI API library, available in 32 and 64-bit versions for MS Windows (dll) and Linux (.so library); winchi-1.exe - a graphical Windows application, which provides annotated InChI and AuxInfo together with graphic representation of the original and normalized, canonicalized chemical structure annotated with InChI-related information.
The pan class="Chemical">inchi-1 executable hpan class="Chemical">as a normative role i.e. it acts pan class="Chemical">as the final arbiter: by definition, the reference InChI for any molecule is InChI generated with inchi-1.
A distribution package of pan class="Chemical">InChI Software pan class="Chemical">also includes source code for all programs, examples of calling the InChI library, sample molfiles and SDfiles, etc. The source code (all written in pure C) is the ultimate resource for InChIalgorithms in maximum detail.
Usage of pan class="Chemical">InChI Software is documented in the Upan class="Chemical">ser Guide [33] and API [44] (intended for developers who upan class="Chemical">se the InChI library).
pan class="Chemical">InChI Software pan class="Chemical">allows one to produce both Standard and nonstandard InChIs, as well as their hashed representations, InChIKeys. By default, the Standard versions are produced.
Modification of this pan class="Chemical">behavior is achieved through the upan class="Chemical">se of special options ('options' are command-line switches for an executable; they are mirrored by the input parameters of InChI API procedures). If at least one of the options may result in non-standard InChI, the non-standard identifiers are produced.
Licensing and use of InChI Software
pan class="Chemical">InChI Software is currenpan class="Chemical">tly distributed under IUPAC/pan class="Chemical">InChI-Trust InChI Licence No. 1.0 [45].
Everybody may repan class="Disease">ad the executable/libpan class="Chemical">rary code and examine the details of pan class="Chemical">InChI algorithms and their implementation. Everybody as well may freely use the executable or call InChI Software API procedures from within other software.
However, a necessary note is that pan class="Chemical">InChI, by intention, is pan class="Chemical">assumed to have only a single software implementation, the reference implementation provided by IUPAC and InChI Trust (as concerns both the stand-alone executable inchi-1 and the API library, libinchi). Modification of the reference source code is not prohibited, see [45]. However, such modification invalidates the status of the identifier produced by the resulting software as the standard, “IUPAC International Chemical Identifier, InChI”. This means that everybody may modify and useInChI Software source codes in other projects (e.g., for the canonicalization of chemical structures in a non-InChI context). However, no “de novo”/”alternative”/”independent” implementation of InChI is expected.
This approach serves to ensure the standard chan>an class="Chemical">racter of InChI and to avoid a common disaster of conflicting forks/implementations of formally the same “standard”.
Known problems and limitations
The lack of covepan class="Chemical">rage and limitations for many arepan class="Chemical">as of chemical structures hasbeen noted above. While many of the primary limitations are now being addressed by the various IUPAC Division VIII working groups, some of the most often cited comments are as follows:
Standard pan class="Chemical">InChI only distinguishes some types of stereo chemistry (e.g., cis/trans-platinum structures have the same pan class="Chemical">InChI).
pan class="Chemical">InChI currenpan class="Chemical">tly does not handle mixtures well (e.g., stoichiometry, positional isomers, variable bonding situations, polymers).
pan class="Chemical">InChI is not a file format (the converpan class="Chemical">sion structure - > pan class="Chemical">InChI - > structure can, in a few cases, provide undesirable results).
pan class="Chemical">InChIKey, the hpan class="Chemical">ashed InChI, is limited, in very few cases to date, in terms of variations it can support (i.e., collisions of multiple InChI to one InChIKey).
pan class="Chemical">InChI does not yet work for large drug molecules (e.g., antibodies with hundreds of amino acids).
pan class="Chemical">InChI does not handle pan class="Chemical">all tautomers well (1–5, 1–7, 1–9, …, pan class="Chemical">hydrogen shifts, etc.) in standard InChI, which is now being addressed by a new working group.
Standard pan class="Chemical">InChI does not honor bonds to pan class="Chemical">metals.
pan class="Chemical">InChI is difficult to repan class="Disease">ad for pan class="Species">humans.
Future prospects
pan class="Chemical">As noted in this manuscript there are many aren>an class="Chemical">as of chemistry that need to be and will beaddressed. The reader is encouraged to visit the IUPAC [1] and InChI Trust [3] web sites to learn about current and future plans for expansion and extension of InChI.
Conclusions
pan class="Chemical">InChI is the Internationpan class="Chemical">al Chemical Identifier developed under the auspices of IUPAC with principal contributions from NIST and the InChI Trust. It is a non-proprietary, Open Source, chemical identifier possessing the following principal features:
structure-pan class="Chemical">bapan class="Chemical">sed approach;
strict uniqueness of identifier;applicability to the entire domain of “cln>an class="Chemical">assic organic chemistry” and, to a significant extent, to inorganic compounds;
apan class="Chemical">bility to genepan class="Chemical">rate the same pan class="Chemical">InChI for structures drawn under (reasonably) different styles;
hiepan class="Chemical">rarchicpan class="Chemical">al, layered, approach pan class="Chemical">allowing to encode the molecular structure with different levels of “granularity”/different set of layers (a Standard InChI is specifically created for inter-operability);
pan class="Chemical">InChI is compn>lemented by its counterpn>art compn>act (hn>an class="Chemical">ashed, fixed-length) representation, an InChIKey.
To date, pan class="Chemical">InChI and pan class="Chemical">InChIKey were proved to pan class="Chemical">be useful tools for linking various pieces of chemical information.
Endnotes
apan class="Chemical">As one of the anonymous referees hpan class="Gene">as correctly pointed out, there is a difference between “substance” and “chemical substance”. For short, we use in this paper the term “substance” always to mean “chemical substance”, in the sense of IUPAC Gold Book definition, see below.
bThe term “pan class="Chemical">InChI” is upan class="Chemical">sed in the following text not only for “Internationpan class="Chemical">al Chemical Identifier” itself but also for “InChIalgorithms and software” (whence statements like “InChI removes hydrogen…”); the exact meaning is evident from the context.
cThe result wpan class="Chemical">as obtained upan class="Chemical">sing pan class="Chemical">InChI Software v. 1.03 and StdInChI; round-trip conversion experiments are documented in InChI v. 1.03 Software Release Notes available on the InChI Trust Download page [6] as a part of v. 1.03 documentation.
dThe idea of hpan class="Chemical">ashing pan class="Chemical">InChI wpan class="Chemical">as suggested by Simon Quellen Field at a Google seminar on InChI in 2006.
ePleapan class="Chemical">se note that the originpan class="Chemical">al version of this brief description (previously posted by one of the authors (DT; http://sourceforge.net/p/inchi/mailman/message/1619786/) to the inchi-discuss mailing list and then republished for the wider community by Apodaca in his “Depth-First” blog, http://depth-first.com/articles/2006/08/12/inchi-canonicalization-algorithm/) did contain some minor typos.
Authors: Stephen R Heller; Alan McNaught; Igor Pletnev; Stephen Stein; Dmitrii Tchekhovskoi Journal: J Cheminform Date: 2015-05-30 Impact factor: 5.514
Authors: Jon Chambers; Mark Davies; Anna Gaulton; Anne Hersey; Sameer Velankar; Robert Petryszak; Janna Hastings; Louisa Bellis; Shaun McGlinchey; John P Overington Journal: J Cheminform Date: 2013-01-14 Impact factor: 5.514
Authors: Jeremy P Koelmel; Candice Z Ulmer; Christina M Jones; Richard A Yost; John A Bowden Journal: Biochim Biophys Acta Mol Cell Biol Lipids Date: 2017-03-02 Impact factor: 4.698
Authors: Marion Pupier; Jean-Marc Nuzillard; Julien Wist; Nils E Schlörer; Stefan Kuhn; Mate Erdelyi; Christoph Steinbeck; Antony J Williams; Craig Butts; Tim D W Claridge; Bozhana Mikhova; Wolfgang Robien; Hesam Dashti; Hamid R Eghbalnia; Christophe Farès; Christian Adam; Pavel Kessler; Fabrice Moriaud; Mikhail Elyashberg; Dimitris Argyropoulos; Manuel Pérez; Patrick Giraudeau; Roberto R Gil; Paul Trevorrow; Damien Jeannerat Journal: Magn Reson Chem Date: 2018-05-16 Impact factor: 2.447
Authors: Neil Swainston; Riza Batista-Navarro; Pablo Carbonell; Paul D Dobson; Mark Dunstan; Adrian J Jervis; Maria Vinaixa; Alan R Williams; Sophia Ananiadou; Jean-Loup Faulon; Pedro Mendes; Douglas B Kell; Nigel S Scrutton; Rainer Breitling Journal: PLoS One Date: 2017-07-14 Impact factor: 3.240