Charge Flipping
The phases are thrown away and this gets them back. Transform, change the sign of everything below a small threshold, transform back, put the measured amplitudes in again — a few hundred times. Nothing in it knows what an atom is, and the atoms appear anyway.
- You supply
- One of the named structures, and three numbers with defaults: the flip threshold as a multiple of the map’s rms, how many cycles to run, and which random start. The amplitudes are computed from the published coordinates and the phases are then discarded.
- Reading it
- Every result is printed beside a floor — what the same test scores on maps built from random phases. The comparison fixes neither the origin nor the hand of the structure, so it searches both, and on a structure whose sites fall on a regular pattern that search fits a noise map perfectly. Where the floor equals the full count, a perfect score is evidence of nothing, and the page says so.
Worked examples: cristobalite · rock salt — a score worth nothing · berlinite — nothing to show
Input
What came back
berlinite, AlPO4, P3121 — 264 reflections to 0.50 Å, projected onto 18 sites, from random start 1 after 400 cycles.
This structure cannot be demonstrated at this grid and resolution: with the true phases the map accounts for only 9 of its 18 projected sites, so there is nothing for charge flipping to recover that the transform itself could show. That is a limit of the projection, not a failure of the algorithm.
The numbers behind the verdict
| Quantity | Value | What it says |
|---|---|---|
| Sites recovered | 7 of 18 | Peaks of this map that land on a known site, one peak to one site, within one grid step. |
| Floor, from random phases | 6 of 18 | The same test on maps built from random phases with no flipping at all, worst of 10. Anything at or below this is worth nothing. |
| Control, from the true phases | 9 of 18 | What the map shows when it is given the right answer. Below the full count, this projection cannot resolve the structure and nothing here could. |
| R | 0.373 | Amplitude residual. Read the note below before believing it. |
| Grid flipped | 73.6 % | How much of the map changed sign on the last cycle. At 100 % the algorithm is doing nothing but alternating. |
| Threshold | 0.0642 | 0.2 × the map’s rms of 0.3212, in electrons per square Ångström of projected cell. |
The R factor compares the amplitudes this map implies with the ones that were measured, and it is not the test of success. Push the threshold above the map's maximum and every point flips, so g is exactly −ρ, every |G| equals its |F| and R reaches 0.000 with nothing solved — the coefficients simply change sign every cycle. A number a wrong parameter drives to perfect is not a number to judge a solution by, which is why the count of sites above it is.
Why the floor is here
Charge flipping fixes neither the origin nor the hand of the structure it finds, so a map can only be compared with the answer by trying every origin and both hands and keeping the best fit. That is a search with a great many chances to succeed, and on a structure whose sites fall on a regular pattern it fits anything — including a map made of pure noise.
So the floor is measured rather than assumed, and it is printed beside every result. For some of the structures offered here it equals the full count, which means a perfect score on those is not evidence of anything. Saying so is more useful than four easy successes.
Where this comes from
- Ab initio structure solution by charge flipping
G. Oszlányi and A. Sütő, Acta Cryst. A 2004, 60, 134–141 · doi:10.1107/S0108767303027569
The algorithm, in four steps and two pages. The threshold and the number of cycles above are the paper’s two parameters, and its own warning about the R factor is the one repeated here. - The probability distribution of X-ray intensities
A. J. C. Wilson, Acta Cryst. 1949, 2, 318–321 · doi:10.1107/S0365110X49000813
The distribution the map’s rms is measured against, and the reason a threshold here is quoted as a multiple of it rather than in electrons.