research papers\(\def\hfill{\hskip 5em}\def\hfil{\hskip 3em}\def\eqno#1{\hfil {#1}}\)

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767
Volume 41| Part 4| August 2008| Pages 784-790

Finding crystal structures from few diffraction data by a combination of a random search with genetic algorithms

aDipartimento di Chimica, Università di Salerno, I-84084 Fisciano (SA), Italy
*Correspondence e-mail: aimmirzi@unisa.it

(Received 27 March 2008; accepted 1 July 2008)

A new procedure for performing structural analysis of crystalline materials from diffraction data, using internal coordinates, is described. For starting information only unit-cell content, space group, chemical formula, molecular connectivity and a limited amount of diffraction data are required. After first selecting a number of solutions using a Monte Carlo approach with severe filters, which reject the most unrealistic solutions, genetic algorithms (crossover and mutations) are applied. In fact, the initial selection step alone is, frequently, a powerful tool for discovering structures, without recourse to the genetic algorithms. The procedure, while suffering from the limitation that connectivity must be known, is effective in cases where direct methods are not applicable because the diffraction data are scarce, are limited to low diffraction angles or are missing in specific portions of the reciprocal space. The main features of the algorithm are described and examples of validation given. The routines are now available as part of the freely distributed general-purpose program TRY. The program is available on the Web at http://www.theochem.unisa.it/try.html .

1. Introduction

A new computer program (TRY) for performing structure analysis and refinement using internal coordinates (g) has been recently implemented (Immirzi, 2007a[Immirzi, A. (2007a). J. Chem. Info. Model. 47, 2263-2265.],b[Immirzi, A. (2007b). J. Appl. Cryst. 40, 1044-1049.]). There are numerous options for setting up a coarse structural model and then refining it by using the least-squares method.

TRY was designed for the study of difficult cases, where direct methods are unlikely to succeed because (i) there are many atoms with few and/or sparse data, (ii) the resolution is modest (e.g. in the case of powder diffraction) or (iii) there is a systematic lack of measurements in some regions of the reciprocal space [as in high-pressure studies with diamond anvil cells; see recent reviews by Katrusiak (2008[Katrusiak, A. (2008). Acta Cryst. A64, 135-148.]) and Grochala et al. (2007[Grochala, W., Hoffmann, R., Feng, J. & Ashcroft, N. W. (2007). Angew. Chem. Int. Ed. 46, 3620-3642.])]. These drawbacks are also present in polymer crystallography.

To deal with such cases, we have introduced a new structure determination option in TRY. The procedure is applicable when the crystal symmetry and unit-cell content are known (likewise with direct methods), and, in addition, the atom connectivity is known. Uncertainty in the conformation, on the other hand, is not a problem.

The procedure consists of a wide-range `random walking' in the internal coordinate space (g space), hunting for `reasonable solutions', followed by `breeding' among the solutions found using genetic mechanisms (crossover and mutations). In addition, the procedure has been strengthened by adding a routine for `improving' the hunted solutions. In fact, the procedure is so robust that frequently the true structures can be found without recourse to the genetic algorithms.

When the procedure was applied to four known molecular structures, using only measured structure factors at low diffraction angles, the correct solution was found in each case; in two cases it was found directly from the initial set of random trials.

The procedure can be used as a preliminary step not just for genetic algorithms (Kariuki et al., 1997[Kariuki, B. M., Serrano-Gonzalez, M., Johnston, R. L. & Harris, K. D. M. (1997). Chem. Phys. Lett. 280, 189-195.]; Harris et al., 1998[Harris, K. D. M., Johnston, R. L. & Kariuki, B. M. (1998). Acta Cryst. A54, 632-645.]; Shankland et al., 1998[Shankland, K., David, W. I. F., Csoka, T. & McBride, L. (1998). Int. J. Pharm. 165, 117-126.]; Cheung & Harris, 2006[Cheung, E. Y. & Harris, K. D. M. (2006). Z. Kristallogr. Suppl. 23, 15-20.]) but also with other global optimization algorithms, such as simulated annealing (David et al., 1998[David, W. I. F., Shankland, K. & Shankland, N. (1998). J. Chem. Soc. Chem. Commun. pp. 931-932.], 2003[David, W. I. F., Shankland, K. & Markavardsen, A. J. (2003). Crystallogr. Rev. 9, 13-15.]; Coelho, 2000[Coelho, A. A. (2000). J. Appl. Cryst. 33, 899-908.]; Pagola et al., 2000[Pagola, S., Stephens, P. W., Bohle, D. S., Kosar, A. D. & Madsen, S. K. (2000). Nature (London), 404, 307-310.]) and parallel tempering (Favre-Nicolin & Černý, 2002[Favre-Nicolin, V. & Černý, R. (2002). J. Appl. Cryst. 35, 734-743.]).

The new molecular building algorithm, based on non­redundant internal coordinates, employs a strictly analytical procedure in all cases (Immirzi, 2007a[Immirzi, A. (2007a). J. Chem. Info. Model. 47, 2263-2265.]). This plays an important role in the g-space random-walk procedure because all the internal coordinates are independent of each other and any valid random combination of the g parameters produces a unique and well defined structure.

The candidate test cases considered were all single-crystal studies, but the number of input diffraction data was deliberately reduced to simulate instances where only a limited amount of reflection data is available.

We believe that the procedure has general applicability when there is a low data-to-unknown ratio and/or the data set is incomplete (high-pressure single-crystal data, fibre or powder data). While broadening the procedure to the Rietveld method has not yet been tested, it is entirely feasible.

It is important to emphasize that the procedure is applicable also when the crystal asymmteric unit is not an entire molecule but a fraction of it in the presence of molecular symmetry elements, and when the asymmetric unit consists of several molecules. The only problem is to specify correctly the connectivity (see below).

2. Main features of the new algorithm

Since the internal coordinates g are continuous variables, computationally they must be treated using `real' numbers. The dimensionality of these quantities may differ considerably (many are angles, some are lengths, some adimensional quantities) and their sensitivity may also be very different. At a crude level of structure analysis changes of angles of 1–2° should be of little significance; for translations the limit could be 0.1–0.2 Å. In addition, the various g parameters span different intervals: bond lengths are substantially known a priori (customarily they are kept fixed); bond angles span very restricted intervals and can also be kept fixed in the structure-recognizing phase; rigid rotation angles and rigid translations for molecules span instead wide intervals. Molecular torsion angles span wide intervals in some cases (e.g. side-group rotations), while in others still they span rather restricted intervals (e.g. the conformational angles in closed rings).

For these reasons we have introduced a mechanism for varying g by small but finite steps. Trial structures are encoded as a bit-string assigning an appropriate number of bits to each g, i.e. few bits for restricted-interval g and more for wide-interval g. Angles in the range 0–360° can be encoded satisfactorily in 7–8 bits (360/27 = 2.8°, 360/28 = 1.4° are reasonable steps). Fewer bits are required in encoding restricted-range torsion angles, and even fewer for encoding bond angles. The cistrans isomerism for double bonds, if unknown, can be treated using a two-value torsion angle (0/180°), i.e. 1 bit only; if unknown, the chirality can also be encoded using 1 bit. Conformational angles in ethane-like situations (torsion angles restricted to −60, 60, 180°) can be treated using 2 bits.

The binary-encoded trials are integers much larger than 231, like the ordinary 4 byte integers used in all commercial computers, and also larger than 263 if 8 byte integers are allowed (as certain compilers do). A 512 bit size (64 bytes) has been assumed. If, for example, there are five gi values and the number of bits dedicated to each one is 7, 6, 3, 4 and 6, the bit-string representing a trial structure (braces are used to group bits referring to a single g value) is

[ {\underbrace{b_6 b_5 b_4 b_3 b_2 b_1 b_0}_{g_1}} \,\,\, {\underbrace{b_5 b_4 b_3 b_2 b_1 b_0}_{g_2}} \,\,\, {\underbrace{b_2 b_1 b_0}_{g_3}} \,\,\, {\underbrace{b_3 b_2 b_1 b_0}_{g_4}} \,\,\, {\underbrace{b_5 b_4 b_3 b_2 b_1 b_0}_{g_5}}.]

Each group of bits is an integer, which can be considered as a `digit' in a rather unusual positional representation of numbers with variable base.

First of all, one must establish the number of bits (mk) to assign to each variable g and the step size [\delta_k]. If gk0 are the initial values for g (the value of each gk0 is arbitrary but it is the central point of the spanning interval), the possible values for gk are gk0, [g_k^0+\delta_k], [g_k^0-\delta_k], [g_k^0+2\delta_k], [g_k^0-2\delta_k], and so on (2mk-1 values). In our limited experience, using small values for [\delta_k] and relatively large ones for mk is convenient. In encoding a bond angle, for example, 3 bits and a [\delta_k] of 0.5° are sufficient for varying the angle in an 8° interval. By contrast, in encoding an unrestricted torsion angle, a larger mk is required, e.g. mk = 7 or 8 (see above). In encoding the overall rotation angles of a large molecule a finer resolution is appropriate since a small change of these angles may produce large effects. Of course this structure-encoding algorithm has been con­ceived both for performing the g-space random search and for carrying out the genetic combinations of selected structures.

Let us give a very simple example: methyl benzyl ether. At the structure elucidation level one can ignore H atoms and use as a model the nine-atom skeleton C—O—C—Ph (Ph is the phenyl ring). According to the known 3N − 6 rule, at a mol­ecular level there are 21 internal nonredundant coordinates, of which nine are bond lengths and 12 are bond and torsion angles. At a coarse level one assumes `canonical' bond lengths, a regularly hexagonal aromatic ring and the coplanarity of the methylene C atom with the Ph ring, with a C—CPh—CPh bond angle of 120°, thus there are only two bond angles (b.a.'s) and two torsion angles to be assigned. A good building plan, with a rather fine mesh in g space, could be

[\matrix {\rm Internal & & & & \rm No.\, of \cr \rm coordinate & \rm Meaning & \rm Range & \rm Step & \rm bits \cr g_1 & \rm CH_3\!-\!O\!-\!CH_2 \,b.a. & 106\!-\!114^{\circ} & 1.0^{\circ} & 3 \cr g_2 & \rm O\!-\!CH_2\!-\!Ph \,b.a. & 106\!-\!114^{\circ} & 1.0^{\circ} & 3 \cr g_3 & \rm O\!-\!CH_2 \,{\rm torsion} & 0\!-\!180^{\circ} & 1.4^{\circ} & 7 \cr g_4 & \rm CH_2\!-\!Ph \,{\rm torsion}\, & 0\!-\!180^{\circ} & 1.4^{\circ} & 7 }]

i.e. a 20-bit encoding. Of course, the crystal structure requires six other g variables i.e. three molecular rotation angles and three translations, so that there are 10 gi altogether. For the former a 7 bit encoding is sufficient; for the latter the number of bits must be chosen considering the unit-cell edges and a step of the order of 0.2 Å.

The procedure consists of three distinct stages: the first is simply a random walk in the M-dimensional g space (M is the number of searched variables), the second can be described as a `local' improvement process, and the third as a `breeding' of structures, which mate with each other producing more or less reliable `child structures'. By repeating the breeding stage many times, the correct structure should emerge. In our limited experience, between four and eight breeding cycles seem sufficient. Each stage is performed by giving appropriate parameters regulating the child-structure selection.

2.1. Wide-range random walk: filters

The objective of the g-space random walk is to select around 100–200 more or less reliable trial structures attributing to the gk random values. The latter change by finite steps and the assigned values depend on the above-defined [\delta_k] and mk. In detail, for each k between 1 and M, one generates a (real) random number q in the range 0–1, multiplies q by 2mk, truncates to the nearest integer jk and assigns to gk the appropriate value according to the above rule. Thus the initial gk0 values are anything but critical inasmuch as mk and [\delta_k] are high enough to span the gk values in the appropriate interval. Indeed, millions of trials are necessary since not all combinations are `good', only those surviving the appropriate `filters'.

The problem of filtering has recently been discussed by Hanson et al. (2007[Hanson, A. J., Cheung, E. J. & Harris, K. D. M. (2007). J. Phys. Chem. B, 111, 6349-6356.]), who proposed the use of a parameter for assigning a `feasibility index' to a random solution, based on the distances between nonbonded atoms compared with the sum of the van der Waals radii. The cited authors use this index not for rejecting tout court unfeasible trial structures but only for attributing a low probability parameter to them. We have preferred a different approach: to reject all the structures that fail to survive the filters. In this way (substantially consisting in rendering the Harris probability parameter a step function) the initial list of possible solutions is made up of reasonable structures only.

Of course, the severity of the filters is of crucial importance and experience is needed to establish practical rules. Appropriate conditions should reduce the number of selected trials to a fraction 10-7/10-5 of the generated random numbers. We emphasize that the speed of the building plays an important role and that building using an analytical algorithm (as in TRY) is decidedly advantageous. Six operative filters have been implemented, as follows.

(1) The first filter rejects the trial whenever the selected combination of g gives rise to some `building error'. Building errors can occur, for instance, when ring closure is attempted with incompatible torsion angles, or when a change of reference frame is performed on the basis of aligning three points. Another error condition occurs when one attempts to add an atom to a saturated C atom, imposing an sp3 geometry with incompatible bond angles.

(2) The second filter is based on the molecular connectivity of the created structure, which is presumed to be known. The connectivity is defined by eight integers, or fewer in the simplest of cases: the number of atom pairs separated by one bond only, the number of atom pairs separated by two bonds etc., up to eight bonds. Naturally, other ways of defining connectivity could be devised. The trial is rejected if the random trial numbers do not match the correct connectivity codes. In fact, this filter is very fast and selective, particularly when the conformational freedom of the molecule is high.

(3) The third filter is based on the molecular conformation. The trial is rejected whenever an atom pair, separated by two or more bonds, is found with too short a separation (the limit is assigned by the user giving a value for two-bond-separated pairs and a value for pairs separated by more than two bonds). In practice, this filter removes strange shapes created by the random process, which should have high and improbable internal energy. In rigid-body problems, the searched internal coordinates are only molecular rotations and translations, making filters 1–3 unnecessary.

(4) The fourth filter is based on the number of chemical linkages between the asymmetric unit and the neighbouring atoms in the crystal; a `linkage' is claimed whenever an atom-to-atom distance less than the sum of the covalent radii, plus a margin assigned by the user, is found. The number of linkages is expected to be zero in molecular substances in which the whole molecule is the asymmetric unit, greater than zero in symmetric molecules (the value depends on symmetry and on the occurrence of atoms in special positions) and two in linear polymers. Obviously in crosslinked structures the linkages can be more than two, but, at the moment, the program is not designed for these cases. Trials with an illegal number of chemical linkages are also rejected. This filter is also very selective, especially when the molecules are large.

(5) The fifth filter is based on the lattice energy, E, as evaluated from the packing distances and van der Waals radii. TRY adopts the Merck Molecular Force Field MMFF94 (see Halgren, 1992[Halgren, T. A. (1992). J. Am. Chem. Soc. 114, 7827-7843.]). For this filter a rather high value is suitable (e.g. 10–20 kcal mol−1; consider that the true values of lattice energy are negative). Caution is necessary in dealing with molecules with possible hydrogen bonds.

(6) The sixth filter is based on the wR2 index {computed according to Sheldrick (2008[Sheldrick, G. M. (2008). Acta Cryst. A64, 112-122.]), namely [wR_2 = [\Sigma w_i(F_{\rm o}^2\,-] [F_{\rm c}^2)^2 /\Sigma w_i (F_{\rm o}^2)^2] ^{1/2}]}; trials with wR2 higher than an assigned value are rejected. Our initial experience suggests using unitary wi and setting a fairly high upper limit (e.g. 0.80–0.90). Even with slightly lower values (e.g. 0.75–0.80) the time taken to create the initial set of trial structures may be very prolonged. Of course the alternative use of the R1 index ([\Sigma | F_{\rm o} - F_{\rm c} | / \Sigma F_{\rm o}]) can be proposed, but it has not yet been thoroughly tested.

The `random' search process can take a few hours or may need to run overnight. The duration could be significantly reduced by using parallel processing. The time taken depends on the number of selected trials and how the filtering parameters are assigned. In fact, filtering is particularly effective, even in complicated molecules. The number of reflections also plays a role, but a relatively modest one, since structure factors and wR2 index are computed only for trials surviving filters 1–5 (see above). Finally, the selected trials are ordered by increasing wR2 values.

2.2. Improving trials

The selected trials, which are of course very sparse points in g space, can be locally improved. This can be achieved using methods such as the `steepest descent' or `conjugate gradients' (Press et al., 1992[Press, W. W., Teukolsky, S. A., Vetterling, W. T. & Flannery, B. P. (1992). Numerical Recipes in Fortran: The Art of Scientific Computing, 2nd ed. New York: Cambridge University Press.]), or by simply looking at the nearest points in g space case by case.

For the time being, this last procedure has been adopted. The program considers either the 3M-1 or the 5M-1 or the 7M-1 adjacent points and moves to the most favourable one on the grounds of the R2 value. If M is large, 3M-1 (and still more 5M-1 and 7M-1) may become so large that it is impractical to look at all adjacent points. We have obtained good results using a Monte Carlo approach, selecting at random, say, 500–1000 neighbouring points. When this `local random walking' is used, the above filters are again applied and play an especially important role if the chosen g-space mesh is coarse. Either way, this `improvement' phase may be lengthy, but it is effective as the R2 values may decrease considerably. At the end of this phase the structures are again ordered by increasing R2 values. Rather frequently the trial improvement is so sharp that the correct solution emerges without recourse to the genetic algorithms.

2.3. Genetic algorithms

The genetic algorithms implemented in TRY are based on the consolidated breeding procedures known as `crossover' and `mutation'. In addition, during the breeding phase a severe filtering strategy has been adopted using the same rules as discussed above. The upper limits for lattice energy and wR2 index may of course be distinct from the limits used in the search phase.

In a breeding cycle an assigned number (e.g. 30–50) of the best selected structures are mated with each other, selecting g (either a single g value chosen at random or all the g values in turn) and performing a `crossover' (interchanging the selected g between the mating structures) and then queuing the resulting child structures in a list, provided filters are respected. In addition, `mutations' can also be performed, and, in this case, not two but four child structures are produced by a given coupling. Mutations consist of selecting, at random, part of the binary encoded string and changing 1 to 0 or vice versa. Once mating is concluded, the whole list of structures is again sorted in ascending R2 index order. We are also studying the use of alternative figures of merit, e.g. molecular energy, lattice energy and combinations thereof.

The breeding cycle is performed repeatedly, possibly using decreasing wR2 and energy limits. In our experience, after some four–six cycles the first say ∼40 solutions are almost indistinguishable and the true solution can be easily identified using a least-squares refinement. The choice of the filtering parameters (upper limits for wR2 and lattice energy) is a critical point for which much experience must be accumulated. From our limited experience we would suggest giving a wR2 upper limit a little higher than the minimum; one observes typically that only a few child structures are selected in the first breeding cycle, while numerous child structures are selected in the subsequent cycles.

3. Program validation

The procedure has been tested by considering four known structures, all studied using single-crystal techniques and filed in the Cambridge Structural Database (Allen, 1998[Allen, F. H. (1998). Acta Cryst. A54, 758-771.]). Rather than use all the available diffraction data, a reduced data set was considered by excluding data at the higher diffraction angles. The data were deliberately reduced so that direct methods fail.

The building commands (see the supplementary materials1[link]) show that molecular building is based on fixed bond lengths (defined as numerical constants), fixed bond angles [\tau] (defined symbolically), and variable torsion angles [\vartheta] or bending angles [\varphi] (also defined symbolically). The parameters [\tau] are defined in Figs. 1[link]–4[link][link][link], and [\vartheta] and [\varphi] in Table 1[link] and in the supplementary materials (Tables S1–S4). H atoms are always neglected.

Table 1
Data for sucrose

gi Definition mk [\delta_k] Span interval
[\vartheta_{21}] C16—C15—C14—C13 3 2.8° [\pm 11]°
[\vartheta_{22}] C15—C14—C13—C12 3 2.8° [\pm 11]°
[\varphi_{23}] 3 2.8° [\pm 11]°
[\vartheta_{24}] C16—O5—C12—O1 3 2.8° [\pm 11]°
[\vartheta_{25}] C16—C15—C14—O3 3 2.8° [\pm 11]°
[\vartheta_{26}] C13—C14—C15—O4 3 2.8° [\pm 11]°
[\vartheta_{27}] C15—C14—C13—O2 3 2.8° [\pm 11]°
[\vartheta_{28}] C14—C15—C16—C17 4 2.8° [\pm 22]°
[\vartheta_{29}] C15—C16—C17—O6 4 2.8° [\pm 22]°
[\vartheta_{30}] C13—C12—O1—C19 7 2.8° [\pm 180]°
[\vartheta_{31}] C12—O1—C19—C20 7 2.8° [\pm 180]°
[\vartheta_{32}] O1—C19—C20—C21 7 2.8° [\pm 180]°
[\vartheta_{33}] C19—C20—C21—C22 3 2.8° [\pm 11]°
[\varphi_{34}] 3 2.8° [\pm 11]°
[\vartheta_{35}] O8—C19—C20—O9 4 2.8° [\pm 22]°
[\vartheta_{36}] C19—C20—C21—O10 4 2.8° [\pm 22]°
[\vartheta_{37}] C19—O8—C22—C23 4 2.8° [\pm 22]°
[\vartheta_{38}] O8—C22—C23—O11 4 2.8° [\pm 22]°
[\vartheta_{39}] C21—C20—C19—C18 4 2.8° [\pm 22]°
[\vartheta_{40}] C20—C19—C18—O7 4 2.8° [\pm 22]°
           
g41 (Rx)   7 2.8° [\pm 180]°
g42 (Ry)   7 2.8° [\pm 180]°
g43 (Rz)   7 2.8° [\pm 180]°
g44 (Tx)   5 0.170 [\pm 2.7]Å
g45 (Tz)   4 0.272 [\pm 2.2]Å
[Figure 1]
Figure 1
Molecular model for sucrose. Bond angles ([\tau_n]) are shown. Torsion angles ([\vartheta_n]) are listed in Table 1[link].
[Figure 2]
Figure 2
Molecular model for cholanic acid. Bond angles ([\tau_n]) are shown. Torsion angles ([\vartheta_n]) are listed in Table S2.
[Figure 3]
Figure 3
Molecular model for c[-Pro-Thr-Aib-(S)[\beta^3]-hPHe-Abu]. Bond angles ([\tau_n]) are shown. Torsion angles ([\vartheta_n]) are listed in Table S3.
[Figure 4]
Figure 4
Molecular model for 4′-acetylbenzo-15-crown-5 2-naphthyloxyacetyl­hydrazone. Bond angles ([\tau_n]) are shown. Torsion angles ([\vartheta_n]) are listed in Table S4.

The working conditions and the bit-encoding mode (mk and [\delta_k] parameters and span intervals) are summarized in the same tables. Torsion angles [\vartheta] and out-of-plane bending angles [\varphi] [used in dealing with closed rings; see Immirzi (2007a[Immirzi, A. (2007a). J. Chem. Info. Model. 47, 2263-2265.])] were kept fixed in some cases. In other cases they are searched for, encoding them with an appropriate number of bits (see tables) distinguishing between angles internal to the rings, which span modest intervals; angles between rings, spanning a full 0–360° interval; angles controlling the position of side groups, spanning medium-sized intervals; and molecular rotation angles, spanning the widest intervals. For overall translations [\delta_k] and mk must be chosen by considering the lattice constants and the crystal symmetry.

In two out of the four cases, the genetic stage proved to be unnecessary as the correct solution (identified by comparison with the published one) was found from the first solutions selected. In all cases the least-squares method (refining of course the internal coordinates) gave a unique solution with an R2 index close to the published one.

3.1. Sucrose, C12H22O11

Sucrose (Hynes & Page, 1991[Hynes, R. C. & Le Page, Y. (1991). J. Appl. Cryst. 24, 352-354.]) has also been used for testing the special procedure implemented in TRY for modelling molecules with flexible rings (Immirzi, 2007a[Immirzi, A. (2007a). J. Chem. Info. Model. 47, 2263-2265.]). As discussed in the quoted article, sucrose can be modelled (at fixed bond lengths) using 44 internal coordinates, of which 24 are bond angles (excluded from the search), 18 torsion angles, two bending angles and five rototranslation parameters. Altogether 107 bits are used for the binary encoding of the structure. Random walking was performed by considering the 255 reflections (among the 1140 filed in the IUCr archives) with a d spacing higher than 1.7 Å.

The procedure has been applied by considering 25 g parameters in all. The result was that, creating the initial population (100 trials) with rather severe filters ([R_2 \,\lt\, 0.80], lattice energy [E \,\lt\, 15] kcal mol−1) and performing local improvement of the trials as discussed above (2000 points), the correct solution emerges without any recourse to genetic algorithms.

3.2. (+)-3,12-Dioxo-5β-cholanic acid, C24H36O4

A rather difficult candidate was selected for the second test. This substance (Kikolsky et al., 2006[Kikolski, E. M., Davison, M., Lalancette, R. A. & Thompson, H. W. (2006). Acta Cryst. E62, o2641-o2643.]) crystallizes as a mol­ecular compound of two conformers, which differ in the conformation of the side –COOH groups. In order to limit the number of internal coordinates the structure was analysed under the hypothesis that the central 19-atom unit (cyclopentaneperhydrophenantrene and the two attached methyl groups) has the same molecular structure for the two independent molecules and that this structure (common to all steroids) is known.

The building of this structure (at fixed bond lengths, and excluding the central 19-atom unit) requires eight bond angles (the same for the homologous terms), 4 + 4 torsion angles and 11 rototranslation parameters. Bond angles were not included in the search. To the 19 searched parameters the appropriate number of bits given in Table S2 were assigned (102 bits altogether). Random walking was performed by considering the 556 reflections (among the 5723 provided in the .fcf file) with d spacing higher than 1.5 Å. Once again, the correct structure was found by selecting 100 random trials and performing a local improvement.

3.3. c[-Pro-Thr-Aib-(S)β3-hPHe-Abu]

This synthetic cyclopeptide, related to the family of astins (Rossi et al., 2004[Rossi, F., Zanotti, G., Saviano, M., Iacovino, R., Palladino, P., Saviano, G., Amodeo, P., Tancredi, T., Laccetti, P., Corbier, C. & Benedetti, E. (2004). J. Pept. Sci. 10, 92-102.]), with molecular formula C27H39N5O6·H2O, has been studied by X-ray diffraction [the uncoded [\beta]-amino acid (S)[\beta^3]-hPHe has the formula H2NCH(CH2Ph)[{\rm CH_2COOH]]. The present test is based on 711 unique reflections with [d \,\gt \,1.6] Å belonging to the 2971 measured reflections. The molecule can be built (at fixed bond lengths) using 24 bond angles, defined in Fig. 3[link] (not included in the search), 20 torsion angles and two bending angles, defined in Table S3, where the number of bits, step size and range for each searched variable are also given. In addition the fractional coordinates of the solvent water molecule (O atom) are considered as independent variables. Note that wide intervals for the torsion angles were assumed, except for the peptide torsion for which a [\pm 16]° range was considered, since these angles are systematically close to 180°. Altogether 163 bits were used for encoding the whole structure.

In this case the random search was not sufficient for finding the correct solution among 80 trials selected and locally improved; five or six breeding cycles were necessary for finding the structure.

3.4. 4′-Acetylbenzo-15-crown-5 2-naphthyloxyacetylhydrazone

This rather complicated and conformationally very flexible molecule with formula C28H32N2O7 (Wei et al., 2004[Wei, T.-B., Zhou, Y.-Q., Zhang, Y.-M. & Zong, G.-Q. (2004). Acta Cryst. E60, o678-o680.]) was considered for the last test. This was based on 807 unique reflections belonging to the 5262 measured reflections with [d \,\gt \,1.5] Å. The molecule can be built (at fixed bond lengths) using five bond angles defined in Fig. 4[link] (not included in the search), 17 torsion angles and one bending angle defined in Table S4, where the number of bits, step size and range for each searched variable are also given. In all, 152 bits were used to encode the entire structure. In this case the structure was found by first selecting and improving 80 random structures, and then performing a systematic breeding among structures (crossover of all genes and mutations) with an acceptance level of 0.70 for R2 and 10 kcal for lattice energy. Five or six cycles of breeding were sufficient.

4. Conclusions

The test structures that have been described have all been selected from non-trivial cases and have given consistently encouraging results. The low number of data used suggests that powder diffraction problems should also be treatable. The ultimate validation of the new procedure will come, of course, by discovering some authentic new structures.

The procedure is actually programmed by considering the R2 index as a `figure of merit', while alternative figures of merit should be considered. A desirable next stage in the development of the procedure would be to make the program more `user friendly'. Presently, the user has to make rather a lot of decisions. However, before introducing such automation it would be worthwhile testing the program under a wider range of conditions. Naturally, the authors are open to suggestions for improvements. The program is available on the Web at http://www.theochem.unisa.it/try.html .

APPENDIX A (Not in printed version)

Building symbolic language

The commands for building the molecular structures considered in this article are given. As supplementary material the complete files for doing structure resolution are supplied.

In all cases the bond-lengths are kept fixed and indicated as numerical constants; bond-angles [\tau], torsion-angles [\vartheta], and bending-angles [\varphi] as symbols (gi), H atoms were always neglected. Info after exclamation mark ! is comment given for reader convenience. Commands obey to the syntax of the Building Symbolic Language (BSL) extensively described in the TRY manual. Note that the first 4-character string always denotes the kind of construction. Q-atoms are `pseudo-atoms' used in the building process, but not included in the structure. Q-atoms may also be other entities like vectors, scalars, etc. since they are also used to store the results of calculations, as an example the command iner K1 U2 n3 n4 refers the group of 23 atoms starting from C1 to its own inertial frame. The transformation matrix is loaded into Q50, Q51, Q52. The last digit is related to output options.

Supporting information


Footnotes

1Structure resolutions are available from the IUCr electronic archives (Reference: KK5026 ). Services for accessing these data are described at the back of the journal.

Acknowledgements

The authors are indebted to Dr Michele Saviano, who kindly supplied the diffraction data for the cyclopeptide studied as test No. 3. The authors wish to thank the referees for their useful comments and fruitful suggestions.

References

First citationAllen, F. H. (1998). Acta Cryst. A54, 758–771.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationCheung, E. Y. & Harris, K. D. M. (2006). Z. Kristallogr. Suppl. 23, 15–20.  CrossRef Google Scholar
First citationCoelho, A. A. (2000). J. Appl. Cryst. 33, 899–908.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationDavid, W. I. F., Shankland, K. & Markavardsen, A. J. (2003). Crystallogr. Rev. 9, 13–15.  CrossRef Google Scholar
First citationDavid, W. I. F., Shankland, K. & Shankland, N. (1998). J. Chem. Soc. Chem. Commun. pp. 931–932.  CSD CrossRef Google Scholar
First citationFavre-Nicolin, V. & Černý, R. (2002). J. Appl. Cryst. 35, 734–743.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationGrochala, W., Hoffmann, R., Feng, J. & Ashcroft, N. W. (2007). Angew. Chem. Int. Ed. 46, 3620–3642.  Web of Science CrossRef CAS Google Scholar
First citationHalgren, T. A. (1992). J. Am. Chem. Soc. 114, 7827–7843.  CrossRef CAS Web of Science Google Scholar
First citationHanson, A. J., Cheung, E. J. & Harris, K. D. M. (2007). J. Phys. Chem. B, 111, 6349–6356.  Web of Science CrossRef PubMed CAS Google Scholar
First citationHarris, K. D. M., Johnston, R. L. & Kariuki, B. M. (1998). Acta Cryst. A54, 632–645.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationHynes, R. C. & Le Page, Y. (1991). J. Appl. Cryst. 24, 352–354.  CSD CrossRef CAS Web of Science IUCr Journals Google Scholar
First citationImmirzi, A. (2007a). J. Chem. Info. Model. 47, 2263–2265.  Web of Science CrossRef CAS Google Scholar
First citationImmirzi, A. (2007b). J. Appl. Cryst. 40, 1044–1049.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationKariuki, B. M., Serrano-Gonzalez, M., Johnston, R. L. & Harris, K. D. M. (1997). Chem. Phys. Lett. 280, 189–195.  Web of Science CrossRef CAS Google Scholar
First citationKatrusiak, A. (2008). Acta Cryst. A64, 135–148.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationKikolski, E. M., Davison, M., Lalancette, R. A. & Thompson, H. W. (2006). Acta Cryst. E62, o2641–o2643.  Web of Science CSD CrossRef IUCr Journals Google Scholar
First citationPagola, S., Stephens, P. W., Bohle, D. S., Kosar, A. D. & Madsen, S. K. (2000). Nature (London), 404, 307–310.  Web of Science PubMed CAS Google Scholar
First citationPress, W. W., Teukolsky, S. A., Vetterling, W. T. & Flannery, B. P. (1992). Numerical Recipes in Fortran: The Art of Scientific Computing, 2nd ed. New York: Cambridge University Press.  Google Scholar
First citationRossi, F., Zanotti, G., Saviano, M., Iacovino, R., Palladino, P., Saviano, G., Amodeo, P., Tancredi, T., Laccetti, P., Corbier, C. & Benedetti, E. (2004). J. Pept. Sci. 10, 92–102.  Web of Science CSD CrossRef PubMed CAS Google Scholar
First citationShankland, K., David, W. I. F., Csoka, T. & McBride, L. (1998). Int. J. Pharm. 165, 117–126.  Web of Science CrossRef CAS Google Scholar
First citationSheldrick, G. M. (2008). Acta Cryst. A64, 112–122.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationWei, T.-B., Zhou, Y.-Q., Zhang, Y.-M. & Zong, G.-Q. (2004). Acta Cryst. E60, o678–o680.  Web of Science CSD CrossRef IUCr Journals Google Scholar

This is an open-access article distributed under the terms of the Creative Commons Attribution (CC-BY) Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767
Volume 41| Part 4| August 2008| Pages 784-790
Follow J. Appl. Cryst.
Sign up for e-alerts
Follow J. Appl. Cryst. on Twitter
Follow us on facebook
Sign up for RSS feeds