next up previous contents
Next: Constant temperature run Up: Qs Previous: What if automation fails   Contents


Beyond automation

Successive versions of this document contain decreasing amounts of documentation on the internal workings of the program. The reason for this inverse relationship is that I can see of no real reason duplicating the effort that I'm putting in writing the QS-related papers. Electronic reprints of these papers can be freely downloaded from my homepage and its mirrors (generously provided by CCP14). The following paragraphs have been retained because they contain some technical details not available from the papers.

It is impossible to discuss the input to the program without reference to how the program works. Table 1 (shown below) outlines the basic steps that QS will follow under normal circumstances.

The essential ingredients of the reverse Monte Carlo minimisation are (i) that the next configuration to be tested is chosen randomly, and, (ii) that the probability of accepting a move against the gradient (ie. accepting a new configuration although it gives a higher R-factor) is in general non-zero (so that moves against the gradient are possible). As is always the case with this type of minimisation algorithms, the difficult points are : (i) to select the annealing protocol, ie to decide how the temperature16 varies with respect to time, and, (ii) to select the displacement vector $ \Delta$$ \bf x$ which will take us from the current configuration $ \bf x$ to the new configuration $ \bf x$ + $ \Delta$$ \bf x$. 17

QS supports four different minimisation strategies. These different annealing protocols are not of cosmetic value : choosing one or the other might make the difference between solving the structure and wasting CPU time. Unfortunately, there are no hard and fast rules defining the best minimisation strategy, and this is one of the basic problems with QS. These three protocols are discussed in the following sections.


Subsections

  1. Enter `Queen of Spades''.
  2. Read in data, coordinates, parameters.
  3. Translate molecule to 0,0,0, and rotate it so that the axes of inertia are parallel to the orthogonal frame.
  4. Generate the electron density map of the rotated/translated molecule in an orthogonal cell that is at least four times as big as the molecular dimensions.
  5. Calculate FFT to obtain molecular transform. From now on, to calculate the contribution of any molecule to any reflection we only have to find the coordinates of the reflection in the (orthogonal) frame containing the transform and pick-up the values (real and imaginary) of the transform at that point. No more FFTs, but interpolation required.
  6. Assign random orientations and translations to all molecules in the asymmetric unit.
  7. Calculate and store in memory the contribution of each molecule in the asymmetric unit (and its symmetry-related ones) to each reflection. This allows us to make the CPU time per step independent of the number of molecules (At each step of the minimisation we only move one molecule, and, so, the contribution from all other molecules remains the same and we do not have to re-calculate them). Calculate initial R-factor, set starting temperature T.
  8. Begin the basic iteration for a given number of time steps :
  9. Using the parameters that gave the lowest R-factor, calculate orientations and positions of the molecules and write the .pdb files corresponding to each and every of the molecules in the asymmetric unit. Generate a .pdb file with all molecules in the unit cell (to easily check for bad contacts).
  10. Exit `Queen of Spades''.
Table 1 : Flow diagram for QS.


Footnotes

... temperature16
No physical meaning should be attributed to the word `temperature''. It is only a control parameter which adjusts the probability of accepting a move against the gradient. The higher the temperature, the higher the probability of accepting a move that makes the R-factor worse.
.... 17
Practically speaking (and in the case of QS), $ \Delta$$ \bf x$ corresponds to the differences between the current set of orientation angles and positions of the molecules, and the set that will be tested for the next move.


next up previous contents
Next: Constant temperature run Up: Qs Previous: What if automation fails   Contents
NMG, January 2005