research papers
A general method for directly phasing diffraction data from high-solvent-content protein crystals
aSchool of Biological Sciences, University of Auckland, 3a Symonds St, Auckland City, Auckland 1010, New Zealand, and bComputational Imaging Group, Department of Electrical and Computer Engineering, University of Canterbury, Christchurch, New Zealand
*Correspondence e-mail: rl.kingston@auckland.ac.nz
A procedure is described for direct phase determination in protein crystallography, applicable to crystals with high solvent content. The procedure requires only the diffraction data and an estimate of the solvent content as input. Direct phase determination is treated as a constraint satisfaction problem, in which an image is sought that is consistent with both the diffraction data and generic constraints on the density distribution in the crystal. The problem is solved using an iterative projection algorithm, the Difference Map algorithm, which has good global convergence properties, and can locate the correct solution without any initial phase information. Computational efficiency is improved by breaking the problem down into two stages; initial approximation of the molecular envelope at low resolution, followed by subsequent phase determination using all of the data. The molecular envelope is continually updated during the phase determination step. At both stages, the algorithm is initiated with many different and random phase sets, which are evolved subject to the constraints. A clustering procedure is used to identify consistent results across multiple runs, which are then averaged to generate consensus envelopes or phase sets. The emergence of highly consistent phase sets is diagnostic of success. The effectiveness of the procedure is demonstrated by application to 42 known structures of solvent fraction 0.60–0.85. The procedure works robustly at intermediate resolutions (1.9–3.5 Å) but is strongly dependent on crystal solvent content, only working routinely with solvent fractions greater than 0.70.
Keywords: imaging; structure determination; phasing; protein crystals; high-solvent-content crystals; solvent flatness; X-ray crystallography.
1. Introduction
Although crystallographic imaging of protein molecules has become relatively routine, the problem of phase determination can still present difficulties. For X-ray crystallography, phase determination based on ; Hendrickson, 2014) is highly effective but can require substantial experimental effort. For the emergent technique of electron crystallography, experimental approaches for phase determination remain in development (Martynowycz et al., 2020). Existing knowledge of protein structure can often be leveraged to overcome the using the method of (Scapin, 2013). However, this approach suffers from the problem of model bias (Adams et al., 1999; DiMaio et al., 2011) and may not always succeed.
and anomalous diffraction (Taylor, 2010Ab initio phasing in protein crystallography – the formation of an image direct from the diffraction data, without requiring any ancillary experimental measurements or detailed knowledge of the target structure – is therefore a problem of both practical and theoretical importance. In chemical crystallography, where the molecules being characterized are much smaller than proteins, ab initio phasing is routinely achieved using computational `direct methods' which are grounded in probability theory and exploit the truly atomistic character of the image (Giacovazzo, 1999). Where atomic-resolution diffraction data are available these methods can be used for modestly sized proteins (Usón & Sheldrick, 1999), and other novel methods of phase determination are enabled (see e.g. McCoy et al., 2017; Coelho, 2021). Such methods are, however, not generally applicable. A large body of early work focused on ab initio determination of the molecular envelope at very low resolution. While this was achieved using a variety of approaches (Subbiah, 1991, 1993; David & Subbiah, 1994; Urzhumtsev et al., 1996; Andersson & Hovmöller, 1996; Podjarny & Urzhumtsev, 1997; Müller et al., 2006; Lunin et al., 2007; Urzhumtsev et al., 2008; Lunin et al., 2012), this work was not extended to provide a complete solution of the phase problem.
While ab initio phase determination is uncommon in protein crystallography, procedures for improving and extending experimental phase estimates find near universal application. In these `density modification' procedures (Podjarny et al., 1996; Zhang et al., 2012), an initial image, typically calculated with experimentally derived phase estimates, is iteratively modified, applying generic constraints on the density in real space, and enforcing the measured diffraction amplitudes in Fourier space. Among the constraints applied to the density, the most ubiquitous are solvent flatness (the solvent region should be effectively featureless) (Schevitz et al., 1981; Wang, 1985), histogram equivalence (the protein region should have a characteristic density value distribution) (Lunin, 1988; Harrison, 1988; Yong et al., 1990; Lunin & Skovoroda, 1991; Lunin & Vernoslova, 1991) and symmetry equivalence (if multiple copies of a molecule are present in the their associated densities should be the same) (Main & Rossmann, 1966; Crowther, 1967, 1969; Bricogne, 1974; Colman, 1974). The application of solvent and histogram constraints requires knowledge of the molecular envelope, while application of symmetry constraints also requires understanding the nature and position of any symmetry elements present. Having some initial phase estimates allows these issues to be resolved at the outset (Wang, 1985; Lawrence, 1991; Kleywegt & Read, 1997). While generally effective, iterative density modification (IDM) procedures have a small radius of convergence, in the sense that they converge to a good solution only if initiated with reasonably good phase estimates. With poor initial phase estimates, conventional algorithms may quickly reach a fixed point in which the algorithm stagnates, and the true density cannot be derived from the fixed point.
A fundamental question is whether the real-space image constraints used in IDM could provide enough information to overcome the absence of the phases in protein crystallography and render a unique solution to the ab initio phase determination, if a better algorithm for locating the solution were devised. The problem of uniqueness has been discussed by a number of authors (Crowther, 1969; Bricogne, 1974; Baker et al., 1993; Millane, 1993; Miao et al., 2000; Elser & Millane, 2008; Millane & Lo, 2013; Millane & Arnal, 2015). Here we focus on the solvent flatness constraint. In the simplest description, since the Fourier amplitudes and phases are both necessary and sufficient to calculate the density, and can be considered mutually independent at non-atomic resolution, loss of the phases amounts to loss of half the information required to reconstruct the density. Therefore, at a minimum, a twofold redundancy in the density is needed for the density to be uniquely related to the Fourier amplitudes (i.e. the number of of the density in the must be halved). For example, if the molecular envelope were known, and the solvent exceeds one half, then the of the density function are halved by the solvent flatness constraint. In this case the protein density should be uniquely determined by the Fourier amplitudes alone. Of course, in the ab initio case, the envelope is unknown. However, Millane (Millane & Arnal, 2015) has shown that a unique solution is expected even if only the volume of the molecular envelope is known, and is greater than 50% of the unit-cell volume, although the reconstruction problem is clearly more difficult in this case. In practice, a phase retrieval algorithm would not be expected to work at this theoretical limit. One reason for this is deficiencies in the data. In particular, the ultra-low-resolution diffraction data, central to the definition of the molecular envelope, are prone to systematic artifacts, and are often left unmeasured. However, ab initio phase determination, based on the solvent flatness constraint, should be feasible for diffraction data from crystals with a solvent somewhat greater that 50%. The challenge is to develop an algorithm that can routinely find the solution, which is the topic of this paper.
If this were the case, it should be possible to use these constraints forAn approach to ab initio phasing similar to IDM should be effective, if the radius of convergence could be extended, so that convergence to the correct density is achieved when the algorithm is initiated with random phases (Millane, 1990). This idea has been pursued in the past decade, buoyed by the success of such approaches in optical and single-particle imaging (Miao & Sayre, 2000; Donatelli et al., 2015, 2017; Ekeberg et al., 2015; Grant, 2018). The basis of the approach is the use of iterative projection algorithms (IPAs). These are algorithms resembling conventional IDM, that iterate between real space and Fourier space, while incorporating constraints in each domain. However, the operations performed at each iteration are more complicated than those performed in conventional IDM. The key advantage of these algorithms is that they have good global, as opposed to local, convergence properties. This makes them excellent candidates for ab initio phasing in protein crystallography in cases where there is sufficient real-space information [e.g. high solvent content or (NCS)] to define a unique solution with only the diffraction amplitude data.
The general approach was first posited by Millane (Millane, 1990) and its potential demonstrated by successful ab initio phasing from noisy, simulated diffraction amplitudes from an icosahedral virus crystal with fivefold NCS (Millane & Stroud, 1997; van der Plas & Millane, 2000), building on earlier work with virus crystals that used conventional IDM (Chapman et al., 1998; Rossmann, 1995). A formal presentation of these kinds of algorithms as IPAs was given by Elser (Elser, 2003a,b), which put the approach on a more rigorous theoretical basis. Elser also described a generally applicable IPA, termed the Difference Map (DM) algorithm (Elser, 2003b), which we employ in this study (see Section 2.1, below). Another widely used IPA is the Hybrid Input Output (HIO) algorithm, first described by Fienup (Fienup, 1982). A review of IPAs, and their potential applications in protein crystallography, including their connections with IDM, was presented by Millane and Lo (Millane & Lo, 2013). The first applications to experimental diffraction data from protein crystals used solvent flatness constraints in conjunction with the HIO algorithm (Liu et al., 2012) or solvent flatness and NCS constraints in conjunction with the DM algorithm (Lo et al., 2015, 2016) to successfully recover the electron density for previously determined test cases. However, while these approaches began with random phases, they are not truly ab initio, as they assumed some low-resolution envelope information. A very significant advance was made by Su et al. who incorporated envelope determination and into the HIO algorithm and showed successful recovery of the electron density for a number of protein crystals with solvent volume fractions around 0.70 or greater (He & Su, 2015; Jiang et al., 2018; He & Su, 2018; Jiang et al., 2019). These studies represent the current state-of-the-art using this approach, but it has been unclear how generally this procedure could be made to work, and the dependencies on resolution or other factors.
In this paper, we present a practical method to routinely phase diffraction data of modest resolution (1.9–3.5 Å) from protein crystals with high solvent content (solvent DM algorithm, which can accommodate restraints more flexibly than the HIO algorithm. Secondly, we employ a computationally efficient two-stage procedure, in which an approximate molecular envelope is determined from calculations at low resolution, facilitating subsequent phase determination using all available data. Finally, for both envelope and phase determination, the algorithm is initiated multiple times with random phase sets, and clustering procedures are used to identify and combine consistent results from multiple runs. This is a key aspect of the procedure, as conventional metrics may not indicate that a solution has been found, whereas clustering reliably identifies solutions. The emergence of highly consistent phase sets during the second step of the procedure effectively confirms the solution has been located. The method was tested through application to a total of 42 diffraction data sets from the Protein Data Bank (PDB), from crystals in a variety of space groups, and having solvent fractions 0.60–0.85. As currently parameterized, the algorithm successful recovered the electron density for 87% of the data sets with solvent fraction >0.75 (13/15 cases) and 73% of the data sets with solvent fraction >0.70 (22/30 cases). Our study establishes the approach as a viable phase determination technique, and the creates a critical benchmark, against which future development of the algorithm can be measured. Code implementing the procedure has been made publicly available on GitHub (https://github.com/rlkingston/IPA).
greater than ∼0.70). The procedure works in an unsupervised fashion, requiring only the diffraction data, and an estimate of the solvent content as input. The method successfully addresses the difficult problem of envelope determination and incorporates several differences from previous approaches. Firstly, we employ the2. Methods
2.1. Iterative projection algorithms
Given the measured Fourier amplitudes and sufficient constraints on the density, the solution to the DM algorithm that we use. The reader is referred to (Millane & Lo, 2013) for more information.
will be unique. However, a phase retrieval algorithm may fail to find the solution because the associated optimization problem is highly non-convex and location of the correct density is nontrivial. Our approach is to use iterative projection algorithms with good global convergence properties to find a unique solution, if it exists. Here, we briefly review IPAs and theIt is convenient to represent the electron density as a point in an N-dimensional Euclidean where the elements of a vector x are the values of the density at the N grid points in the (or the asymmetric unit). The reconstruction problem is cast as a constraint satisfaction problem. In the case at hand, we have constraints in both Fourier space (that the calculated and measured Fourier amplitudes should agree) and in real space (that the density should conform to the expected distributions in the protein and solvent regions). These are the only real-space constraints used in this study, though obviously others might be employed. If the solution to the problem is unique, then a density that satisfies all the constraints (or lies in the intersection of the corresponding constraint sets in the vector space) is the correct density. The problem then is to find a point in the intersection of the constraint sets. This is referred to as a constraint satisfaction problem. Solving the problem is difficult because one of the constraints, the Fourier magnitude constraint, is non-convex (Elser, 2003a; Millane & Lo, 2013). Iterative projection algorithms have been shown to be effective in solving non-convex constraint satisfaction problems (Elser et al., 2007).
The constraints for our problem are collected into two sets, one in real space, denoted A, and one in Fourier space, denoted B. IPAs make use of projections. The projection of a density x onto a constraint set C, denoted PCx, is the density that is closest (in the Euclidean, or least-squares, sense) to x and satisfies the constraint C. The projection then corresponds to making the smallest change to the (current) density such that is satisfies the constraint.
Once initiated, in our case with a random density, an IPA generates a sequence of densities, with the objective of converging to the true density. The sequence is defined by an update rule that takes the density at iteration n, xn, to that at iteration n + 1, xn + 1, and the update rule consists of a combination of projections of xn.
It can be seen immediately that the iterative density-modification procedure commonly used in protein crystallography is an IPA with update rule
i.e. the density is adjusted to exactly satisfy the real-space constraints, then to exactly satisfy the Fourier space constraints, and the cycle repeated. This algorithm is often termed the Error Reduction (ER) algorithm (Fienup, 1982). The ER algorithm, however, does not have good global convergence in the presence of non-convex constraints, and will quickly stagnate at a density that does not satisfy both constraints. This is the reason that conventional phase improvement algorithms are successful only if started with good initial phase estimates and are not useful for ab initio phasing.
There are various other more sophisticated IPAs that have better global convergence properties in the presence of non-convex constraints (Marchesini, 2007; Millane & Lo, 2013). One of these is the Difference Map (DM) algorithm (Elser, 2003a), which we employ in this paper. The update rule for the DM algorithm is
where β is an adjustable parameter with −1 < β < 1. The parameter β controls the `relaxation' of the projections and affects the behavior of the algorithm in terms of both speed of convergence and the degree to which it searches the parameter space. Its value, however, cannot be simply related to algorithm performance. Suitable values for β are problem dependent, and we detail the values used in our application below. Note that changing the sign of β effectively reverses the order in which the projections PA and PB are applied in (2).
At each iteration, the DM algorithm generates two solution estimates
which satisfy the constraints A and B, respectively, but not necessarily both. If the two solution estimates are equal, then the algorithm has converged, and either is a solution to the constraint satisfaction problem. These two solution estimates are combined via (2), to generate the updated density, xn + 1, which is not itself an estimate of the solution.
At any iteration, the root-mean-square deviation between the two solution estimates (δDM) can be evaluated, which provides a simple measure of algorithm convergence.
2.2. Apodization of the Fourier amplitude data
As in our previous work (Lo et al., 2015), the effective resolution of the reconstruction is controlled by apodizing the Fourier amplitude data with a Gaussian function. The weighting function applied is
where s is the distance from the origin in Fourier space (the magnitude of the scattering vector = 1/resolution, Å−1), and σ is the standard deviation of the Gaussian function (Å−1). For convenience we often express the width of the Gaussian function in terms of the half width at 1/100th of maximum height = 3.03σ (Å−1), or the corresponding resolution.
The use of a Gaussian apodization function avoids introducing ringing artifacts into the Fourier synthesis that would accompany the use of a simple step function to limit resolution. During phase determination we find that gradually increasing the value of σ, and hence the effective resolution of the reconstruction, aids convergence to the solution.
2.3. Fourier space constraints, projections and agreement metrics
In Fourier space, the constraints are the measured Fourier amplitudes. The corresponding projection onto the constraint is simple and consists of Fourier transforming the unconstrained modes in the image processing field. If these amplitudes are allowed to evolve without constraint, excessively large values may result which can produce severe distortions in the reconstructed density. To prevent the evolution of physically unrealistic Fourier amplitudes, checks are performed on the amplitudes of the missing data during each projection operation, based on Wilson intensity statistics (Rogers, 1965). If a reconstructed Fourier amplitude is improbably large (probability <5 × 10−6), it is reset near the expected value at the relevant resolution.
replacing the Fourier amplitudes with the measured Fourier amplitudes (after applying the apodization function, and scaling, as appropriate); and transforming back to real space. We also need to consider treatment of the Fourier amplitudes for which data are not available (the unmeasured or `missing' diffraction data) – termed theAt each iteration, the agreement between the relevant solution estimate (3a) and the Fourier space constraints is evaluated in the usual way, by computing a or R factor, between measured and reconstructed Fourier amplitudes.
2.4. Real-space constraints, projections and agreement metrics
In real space, the constraints utilized are the expected density distributions in the protein and solvent regions. The protein region has a generic density distribution which can be reliably predicted, while the solvent region is essentially featureless, and should have a one–point distribution. The corresponding projection onto the constraint set consists of making the minimum change to the density required to transform the distributions in both regions into the expected distributions. Hence, the constraints are those routinely applied in conventional crystallographic phase et al., 1981; Wang, 1985), and `histogram matching' in the protein region (Lunin, 1988; Harrison, 1988; Yong et al., 1990; Lunin & Skovoroda, 1991; Lunin & Vernoslova, 1991). However, while the projections are the same, the way they are incorporated into the phase retrieval algorithm is fundamentally different [compare equations (1) and (2)].
– `solvent flattening' in the solvent region (SchevitzApplication of these constraints requires definition of the molecular envelope, i.e. a binary partitioning of the image into protein and solvent regions, consistent with the overall solvent fraction. Since the molecular envelope is a priori unknown, it must be determined as part of the reconstruction procedure. Simple thresholding algorithms based on local averaging of the density function (Wang, 1985; Leslie, 1987) are frequently used to define the molecular envelope in protein crystallography. For direct phase determination, we find that determining the molecular envelope based on the local variance of the density (Abrahams & Leslie, 1996), rather than the local mean density, gives uniformly better results, and we have adopted this procedure throughout. To define the envelope, the variance map is filtered using a triweight function of defined radius (r0),
where r is the distance to the current grid point. The filtered map is thresholded to generate an envelope with the desired The envelope is updated at each iteration of the algorithm, based on one of the solution estimates (3b).
With the envelope defined, the projection is carried out by setting the density in the solvent region equal to its mean value. The density in the protein region is transformed to achieve the desired distribution (Harrison, 1988; Lunin & Vernoslova, 1991), shifting the overall mean to its expected value, while preserving the variance.
The `histogram matching' operation carried out in the protein region requires that the expected density distribution is known. While it is well established that electron density distributions for proteins are generic they are strongly influenced by both data resolution, and the overall isotropic displacement parameter (B factor) of the data (Yong et al., 1990; Lunin & Skovoroda, 1991). Our approach is to select a suitably matched reference structure from the PDB, in a case-dependent fashion, for calculation of the expected distribution. This requires robust estimation of the overall B factor of the target structure, which is a priori unknown. The overall isotropic B factor is estimated from the diffraction data using an approach based on the Patterson origin function (Blessing & Langs, 1988). Note that the experimental data are sometimes apodized to control the effective resolution of the image. In this case the data used to calculate the reference distribution are apodized in an equivalent fashion.
At each iteration, the agreement between the relevant solution estimate (3b) and the real-space constraints is evaluated. In the solvent region, the variance of the reconstructed density is used as a measure of solvent flatness. In the protein region, the Wasserstein distance (`Earth-Movers distance') between the reconstructed and target density value distributions is used as a measure of histogram agreement. The first Wasserstein distance, denoted W1(P,Q) for two random variables P and Q, is a true distance metric for probability distributions (Panaretos & Zemel, 2019), and is conveniently evaluated from the cumulative distribution functions of the two distributions, FP and FQ as
2.5. Metrics for evaluating algorithm performance on test cases
Testing and evaluation of the envelope and phase determination procedures requires suitable metrics for computing agreement with the known envelope or phase set.
To compare two binary-valued molecular envelopes, the ),
is used, which can be calculated as (Warrens, 2008where f00 and f11 are the proportions of grid points that match in the solvent and protein regions, respectively, and f01 and f10 are the proportions that do not match. The (for binary-valued functions often termed the Matthews or the Pearson or Yule Phi coefficient) has a value of 1 if the envelopes match exactly and a value of 0 if the two envelopes are statistically independent.
For measuring agreement between two phase sets, we employ the ) being applied to the Fourier amplitudes. Fourier coefficients calculated from refined atomic models incorporated no correction for the scattering of the bulk solvent.
absolute phase difference, where the weights are derived from any apodization scheme (42.6. Origin ambiguity and inversion ambiguity
For direct phase determination, initiated with a random phase set, the crystallographic origin is effectively selected arbitrarily, and both binary envelopes and density functions (or the correspondent phases in Fourier space) need to be referenced to a common origin before comparative statistics are calculated, or any form of averaging performed (Lunin et al., 2012). The alternate origin choices have been tabulated for all space groups (see e.g. Giacovazzo, 1999) and FFT-based image registration [the `phased translation function' (Read & Schierbeek, 1988)] is used to identify the permitted origin shift that results in the best agreement in both cases.
A related problem is that the image constraints being applied are equally well satisfied by the true density, or the map obtained by inversion of the true density. The same issue manifests in many experimental phase determination procedures [discussed in Matthews (2007); Wang et al. (2007); McCoy & Read (2010)]. Hence, any solution generated may have the incorrect hand. In any one of the 22 chiral space groups, inversion of the density function is associated with a change in (and hence generation of a density map with incorrect hand is diagnostic of an incorrect choice, see below). In the remaining 43 achiral space groups relevant to protein crystallography (Nespolo et al., 2018), either the solution or its inverse may be generated, and both possibilities must be checked when comparing either binary-valued envelopes or real-valued density functions. In an unknown case, potential solutions to the phase determination problem would need to be visually inspected to determine the correct hand This step may be amenable to automation (Condado et al., 2022).
2.7. Procedures for algorithm optimization
To test and optimize our methods, we selected 42 test cases for study from existing PDB depositions. The selection was made at the outset of the investigation before the phasing procedure was fully developed. Data sets were selected to provide a range of relevant solvent contents (60–85%), and a variety of space groups, but otherwise the selection was essentially random. Relevant details of the test cases are given in Supplementary Table S1.
Our aim was to develop a common phasing procedure that could be applied to all test cases without user intervention. To do this we optimized various parameters associated with the envelope and phase determination steps on a small subset of the test cases. Some of the more critical parameters investigated were the values of β used in the DM algorithm; the low-resolution cutoff applied to the diffraction data; the nature of the apodization scheme applied to the diffraction data; the filter radius used for determination of the molecular envelope; and the total number of iterations. Because of the complex and multivariate nature of the problem, we made extensive use of factorial experiments and orthogonal-array-based experimental designs (Hedayat et al., 1999) to identify the most productive regions of the parameter space. These experiments consisted of running envelope or phase determination repeatedly, using the same set of pseudo-random starting points, while varying the parameters according to the experimental design.
In general terms we found that schemes in which β is systematically alternated between two values are more effective than schemes in which β is held fixed throughout; that omission of the ultra low-resolution data aids convergence to the solution, as previously noted (Jiang et al., 2018); and that gradual shrinking of the filter radius (5) during envelope determination aided coalescence of the molecular envelope. In addition, we found that once a solution is located, executing the DM algorithm with a negative β value (which amounts to reversing the order in which the constraints are applied), generally results in some additional phase improvement.
The experiments resulted in development of a common protocol (described below) that was subsequently applied to all test cases without variation, generating the results described in the paper.
2.8. Parameterization of the algorithm for envelope determination
For envelope determination the DM algorithm, initiated with a fully random phase set, is run 50 times for each test case. Each of these 50 runs consists of 1475 iterations followed by 25 iterations of the ER algorithm, for a total of 1500 iterations. The parameter β of the DM algorithm is assigned one of two values (0.72 or 0.78) alternating between them at each iteration. The Fourier amplitude data are heavily apodized with a Gaussian function that is unchanged throughout (σ = 0.091 Å−1, hence reaching 1/100th of maximum height at 3.6 Å resolution). A low-resolution cutoff of 25 Å resolution is applied to the dataset, with the lower resolution terms being treated as missing throughout. The molecular envelope is updated at each iteration, with the radius of the triweight filter function (5) shrinking from 10.8 to 8.0 Å across the first 1000 iterations of the DM algorithm, and a constant 8.0 Å thereafter.
Conservatively, we consider 3.6 Å to be the effective resolution limit of the data, and grid the density maps at 2/5 of this limit, allowing for relatively rapid evaluation of the Fast Fourier Transform during envelope determination.
2.9. Parameterization of the algorithm for phase determination
For phase determination the DM algorithm, initiated with a fully random phase set and a consensus molecular envelope (see below), is run 20 times for each test case. The molecular envelope is held fixed for the first 10 iterations and subsequently updated at each iteration, using a fixed radius of 8.0 Å for the triweight filter function (5). A low-resolution cutoff of 25 Å is again applied to the diffraction data, with the lower resolution terms being treated as missing.
Over 7200 iterations of the DM algorithm, the effective resolution of the reconstruction is gradually increased by apodizing the diffraction amplitude data with a steadily broadening Gaussian function (4). This occurs over a total of 30 steps (240 iterations of the DM algorithm at each step). At the first step, the apodization function has σ = 0.16 Å−1 (hence reaching 1/100th of maximum height at 2.1 Å resolution). At each subsequent step, the area under the Gaussian function (evaluated up to the full resolution of the dataset) is increased by a fixed increment, so that by the final step, the data are essentially unmodified (Supplementary Fig. S1). Throughout, the parameter β is assigned one of two values (0.675 or 0.800), alternating between them every 60 iterations.
After the first 7200 iterations, the DM algorithm is run for a further 200 iterations using the diffraction data with no apodization applied. The first 100 of these iterations are performed with β = 0.75 and the second 100 with β = −0.55. Then 25 iterations of the ER algorithm are performed. This sequence of 225 iterations is repeated a total of four times, and the run then concludes.
Hence overall, each run extends for 8100 iterations, the first 7200 with steady removal of the apodization and involving only the DM algorithm, and the last 900 with no apodization, interspersing the DM and ER algorithms.
2.10. Clustering algorithms, and the computation of consensus envelopes and phase sets
Clustering of both molecular envelopes and phase sets is used to identify similar outputs resulting from multiple runs of the algorithm. From clusters of similar solutions, a `consensus' envelope or phase set is produced by averaging all members of the cluster. Details of the procedure differ for binary-valued envelopes and phases sets, but we begin with some general comments
The pairwise distances (d) between all inputs are first calculated, providing the basis for the clustering procedure. With N inputs, there are a total of N(N − 1)/2 unique distances. For binary envelopes we take d = (1 − CC2)1/2, where CC is the map (7). For phase sets, we take d = the mean absolute phase difference. At the same time, the translations required to put each pairing on a common origin are also evaluated. The standard data clustering algorithm DB-SCAN (Schubert et al., 2017) is then used to cluster the inputs. DB-SCAN has two parameters, the minimum number of points (minPoints) required to form a dense region, and the threshold distance (ɛ) for the clustering procedure.
2.10.1. Envelopes
For clustering of the molecular envelopes, minPoints is set to 5 (i.e. 10% of the input set size, which was the 50 envelopes) while the threshold distance, ɛ, is set to the 4th percentile of the distribution of pairwise distances. This is because the values of the vary widely across the tested diffraction data sets, and there is no absolute threshold which will work for all cases.
Once the clustering has been performed, the translational shifts needed to bring the envelopes onto a common origin are applied, and the consensus envelope is calculated for each cluster by taking the modal value for each sample point in the envelope, across all members of the cluster. The consensus envelope is subsequently edited using a previously published connectivity algorithm (Hunt et al., 1997), erasing small islands, and filling small voids, that can sometimes be created by the averaging procedure.
2.10.2. Phases
For clustering of phase sets, minPoints is set equal to 2, while the threshold distance, ɛ, is set to 40°–50° mean absolute phase difference. These settings discriminate correct from incorrect solutions for all test cases.
A consensus phase set is obtained by calculating the mean phase across all members of the cluster, applying any needed origin shifts. The consistency of the phases sets within a cluster is evaluated using the sample circular variance (Fisher, 1993).
2.11. Practical implementation
The procedures described here have been implemented in a program called IPA (Iterative Projection Algorithms for protein crystallography) using the Clipper C++ crystallographic library (Cowtan, 2003) for all the core crystallographic tasks. The program is written in C++ with some ancillary routines in modern Fortran. Our implementation automates the procedures described in this paper, and requires only the measured diffraction data and the solvent content as compulsory input. The procedure has been parallelized (see Discussion) which can greatly reduce time to completion when multiple CPUs and cores are available for the calculation. The behavior of the program IPA is controlled by a single experimental parameter file. Use of the default parameter file will reproduce the protocol described in the paper exactly, however the user may elect to vary the protocol by editing the parameter file. The code is available on GitHub (IPA version 1.0.0, https://github.com/rlkingston/IPA). The details of the implementation will be described in a subsequent publication.
3. Results
3.1. Preliminaries
The 42 test cases employed in the study are detailed in Supplementary Table S1, arranged in order of decreasing solvent fraction (0.85–0.60). Our intent was to establish a general procedure for directly phasing diffraction data from high-solvent content protein crystals. As described above, initial development work suggested that a two-stage procedure would be the most computationally efficient, in which a molecular envelope was approximated using calculations at low resolution, and subsequently used to initiate phase determination at higher resolution. Following this initial development work, we applied a common protocol to all test cases to benchmark the procedure.
The DM algorithm is used both to coalesce an envelope in the first stage, and to locate a complete solution to the in the second stage. During both stages, the constraints on the density are those used in conventional density-modification procedures, although the way that the constraint satisfaction problem is attacked is dramatically different (see Methods). In the solvent region the density should be featureless (i.e. have a one-point distribution), while in the remainder of the image the density distribution should be characteristic of proteins. The molecular envelope, required for application of these real-space constraints is continually updated, based on one of the solution estimates at each iteration of the algorithm.
The solvent fraction assumed for each test case is calculated from the molecular structure. In an unknown case, this would need to be estimated through analysis of the crystal packing density (Weichenberger et al., 2015). Besides the diffraction data, the solvent fraction is the only other information required as input to the phase determination procedure.
To establish the expected protein density distribution for each test case, the overall isotropic B factor is estimated from the experimental diffraction amplitudes, using an approach based on the Patterson origin function (Blessing & Langs, 1988). This procedure returns values consistent with refined atomic models (Supplementary Table S1). Based on the estimated B factor and the resolution limit of the data set, a reference structure is automatically selected for calculation of the expected electron-density distribution (histogram). In practice, electron-density histograms calculated from one of 10 reference structures were used for all the calculations described here (Supplementary Table S1).
3.2. Envelope determination
3.2.1. Envelope generation
To generate a set of molecular envelopes, the DM algorithm, initiated with a fully random phase set, was executed 50 times for each test case. The diffraction amplitude data are heavily apodized to strongly downweight the high-resolution data (all datasets were multiplied with a Gaussian function with σ = 0.091 Å−1, hence reaching 1/100th of maximum height at 3.6 Å resolution). Each run extends for 1475 iterations of the DM algorithm, followed by 25 iterations of the ER algorithm, with the apodization unchanged throughout.
Some typical trajectories for the DM algorithm during envelope generation are shown in Fig. 1 [test case 5b2c (Kubota et al., 2016), resolution 2.2 Å, solvent fraction 0.73]. Displayed as a function of iteration are the measure of algorithm convergence (δDM); the agreement measures with the real-space constraints (the solvent variance, and the Wasserstein distance between image and reference density value histograms), and the agreement measure with the Fourier space constraints (the correlation between measured and reconstructed Fourier amplitudes). These are the metrics that could be routinely followed during determination of an unknown structure. In addition, since refined atomic models are available for all test cases, we also follow the agreement between the reconstructed and model phases (evaluated using the absolute phase difference) and the agreement between the reconstructed and model envelope (evaluated using the correlation coefficient). These latter metrics allow us to track algorithm performance across the runs.
These metrics vary in an erratic and apparently random fashion as the DM algorithm aggressively searches the parameter space for the vicinity of the solution. Irrespective of whether the system is in the vicinity of the solution or not, application of the ER algorithm at the end of each run gives rapid convergence to the nearest local minimum. These behaviors are quite typical of the DM and ER algorithms. However, the results shown in Fig. 1 also illustrate three more specific points, which are key to understanding the approach that has been adopted.
Firstly, a substantially correct molecular envelope frequently coalesces before a full solution to the a). The agreement between the reconstructed and model envelope advances to a of 0.57, which indicates the envelope is substantially correct. At the same time the absolute difference from the model phases remains close to 90°, indicating that a solution to the phase retrieval problem has not yet been located.
is located. This is shown by the trajectory in Fig. 1(Secondly, conventional metrics that can be calculated when determining an unknown structure, fail to robustly indicate that the envelope is evolving toward the correct answer. In the successful runs for test case 5b2c [e.g. Fig. 1(a)] neither the agreement with the Fourier space constraints (the correlation with Fourier amplitudes), nor the agreement with the real-space constraints (the variance of the density values in the solvent region, and the Wasserstein distance between the observed and reference density value histograms in the protein region) indicate any progression toward a solution, even though a substantially correct envelope has formed by the end of each run.
Finally, the algorithm may or may not progress to a good envelope, dependent on the point at which it is randomly initiated. For the unsuccessful run shown in Fig. 1(b), a correct envelope does not coalesce over the course of the run, with a final correlation close to 0, which means the envelope is effectively unrelated to the true envelope.
Across all tested data sets, there is considerable variation in both the accuracy of the final envelopes, and the frequency with which accurate envelopes form, given a random starting point. Notwithstanding, in all cases the procedure generates some reasonable approximations to the molecular envelope. Some summary statistics (median and maximum agreement with the model envelope) are reported in Supplementary Table S2. In the case of novel the challenge is to identify the accurate envelopes generated by the procedure, from the many inaccurate envelopes that are also generated.
In favorable cases the procedure generates some very accurate envelopes (correlation coefficient with the model envelope of 0.75–0.87, Supplementary Table S2). In some of these instances (2rha, 3als, 4asn, 4bex, 4fzn), not only does the envelope coalesce, but a good solution to the is located at very low-resolution (some run trajectories for 3als and 4bex are displayed in Fig. 2). This is indicated by the clear progression away from random phase agreement. Interestingly, even in these favorable circumstances, the metrics that can be followed in an unknown give no indication that a solution has been located. The emergence of a correct low resolution phase set, as shown in Fig. 2 is quite uncommon, observed to occur for only 5 of the 42 test cases. Generally, despite the formation of a reasonable approximation to the envelope, a complete solution to the is not located at very low-resolution (see e.g. Fig. 1), even if the calculations are extended for many iterations. It is for this reason the first stage of our procedure is focused on the problem of binary envelope determination.
3.2.2. Envelope clustering and averaging
The failure of conventional metrics to indicate the progression of the molecular envelope toward the correct result, coupled with the stochastic nature of that progression from a random starting point (Fig. 1, Supplementary Table S2), means that some novel method is required for identifying good approximations to the envelope. We solve this problem by introducing a clustering procedure to identify, and subsequently combine, the consistent results from the envelope determination runs. The underpinning principle is that good approximations to the envelope will agree with each other. In contrast, there are a multiplicity of incorrect envelopes capable of satisfying the constraint, which should generally agree poorly with each other.
Envelopes are clustered based on the distance measure d = (1 − CC2)1/2, where CC is the between a pair of envelopes (7), using the algorithm DB-SCAN (Schubert et al., 2017). A consensus envelope is then generated for each cluster (see Methods). The results of clustering and averaging for all test cases are presented in Supplementary Table S2. These data show that the procedure effectively groups the best approximations to the envelope based on the pairwise distances. In all cases there is at least one cluster for which the accuracy of the consensus envelope closely approaches or exceeds the maximum accuracy of the individual envelopes. In many cases (21/42) that cluster is either unique (i.e. there is only one cluster), or unique with allowance for inversion (i.e. there are two clusters, related by inversion symmetry). An example is test case 3lii (Dvir et al., 2010). For the 50 input envelopes the maximum correlation with the model envelope is 0.39. A single cluster of 16 envelopes is generated by DB-SCAN, with the consensus envelope having a correlation of 0.56 with the model envelope.
In other cases, one or two additional clusters are also generated. These can represent minor variations of the known envelope (e.g. 2vuh). Occasionally, they also represent envelopes with near–random correlation with the known envelope (e.g. 4gbe). In the latter case, the algorithm is repeatedly generating similar but incorrect envelopes. Nonetheless, clustering is still effective, as from 50 indiscriminable input envelopes, at most three consensus envelopes result, at least one of which is a fair to excellent approximation to the true envelope [Fig. 3(a)]. Some consensus envelopes generated by the procedure are compared to the model envelopes in Fig. 4. Interestingly, the accuracy of the final envelope is only weakly related to the solvent content [Fig. 3(b)].
Since our objective was to establish the feasibility of direct phase determination, we used only the best of the consensus envelopes [Supplementary Table S2, highlighted in light gray; Figs. 3(a) and 4] to initiate the phase determination step. For a real problem, if more than one envelope were generated (making allowance for inversion), then the phase determination step could be initiated using each candidate envelope in turn, and the solution would emerge with the correct envelope, as described below. Furthermore, there are several criteria that suggest which of the candidate envelopes is the best approximation, which could be used to put the envelopes in rank order. Among these criteria are the conformity with the desired (due to the averaging process the consensus envelope may not have exactly the desired volume fraction) and the connectivity of the protein region (a good molecular envelope will be completely or nearly completely connected and should not contain disconnected `islands'). Inspection of the results in Supplementary Table S2 shows that many of the poorer envelopes are readily discriminated on this basis.
In summary, even though good approximations to the molecular envelope are routinely generated by the algorithm for almost all test cases, this is never indicated by conventional metrics, and many poor approximations to the envelope are also generated (Figs. 1 and 2). This problem is overcome by using clustering procedures to identify the consistent results from multiple runs, exploiting the uniqueness of the solution. Consistent envelopes are combined to generate a consensus envelope (Figs. 3 and 4), which is then used to aid phase determination.
3.3. Phase determination
Once the consensus envelope is generated, it is employed in the second stage of the procedure, to initiate phase determination at high resolution. The phase determination step employs the same basic DM algorithm as the envelope determination step but is parameterized quite differently (see Methods). The phase determination step involves more iterations (7200) than the envelope determination step, during which the resolution of the reconstruction is gradually increased, via the apodization function that is applied to the Fourier amplitudes (see Methods). In general, the efficiency of the phase determination procedure is sensitive to the apodization scheme. In particular, if the effective resolution of the image is set either too low or too high at the outset, the frequency with which solutions are located reduces. The algorithm is initiated with a random phase set, and the consensus envelope from the envelope determination step. The envelope is held fixed for only the first 10 iterations, after which it is updated at each iteration based on the current solution estimate (see Methods). The initiation of high-resolution phase determination with an approximately correct envelope biases the starting phase set at low resolution in a way that makes the location of the solution much more likely.
At the conclusion of the main procedure (7200 iterations of the DM algorithm), the DM algorithm and the conventional ER algorithm are alternated for an additional 900 iterations, with no apodization applied to the data, as described in Methods, and the run concludes. The first 7200 iterations serve to search the parameter space and bring the solution estimate into the vicinity of the true solution, while the last 900 iterations give convergence to the final solution.
Behavior typically observed during the phase determination step is illustrated in Fig. 5. This shows the trajectories of two successful [Figs. 5(a) and 5(b)] and one unsuccessful [Fig. 5(c)] phasing runs for test case 5hk7 (Arrigoni et al., 2016) . In the two successful runs, the solution is located near iteration 2200 and 3500 respectively, as indicated by the steady reduction in the mean phase error over the next 300 iterations. Unlike the envelope determination step, location of the solution is indicated by relatively clear perturbations in the agreement metrics for the real and Fourier space constraints, and in the convergence measure for the DM algorithm itself. Characteristically, the location of the solution is preceded by a steady increase in the fidelity of the molecular envelope. In the unsuccessful run [Fig. 5(c)], the algorithm begins to advance toward a solution at iteration 3330, and then again at iteration 7500, but in each case regresses, and the solution is not ultimately located. This instability is an inevitable consequence of the good global convergence properties of the algorithm.
While arrival at the true solution is generally indicated by the usual agreement metrics, there are occasional counter examples. For test case 2ja1 (Kosinska et al., 2007) the solution is rapidly located (often within the first 1000–2000 iterations) and with relatively high frequency (14/20 phase determination runs locating the solution). However, the progression to the solution is not clearly indicated by the conventional agreement metrics, or by the algorithm convergence measure (Supplementary Fig. S2). Hence for determining unknown structures, a clustering procedure is also useful to robustly identify true solutions to the phase retrieval problem.
Clustering of phase sets to determine if the solution has been located is straightforward, with subsequent averaging of the cluster members producing a consensus phase set. As a specific example, we again consider test case 5hk7 [for which three run trajectories are shown in Figs. 5(a)–5(c)]. In this case, clustering of the phase sets with DB-SCAN (threshold mean absolute phase difference ɛ = 40°, MinPoints = 2) produces a single cluster of size 10, from a total of 20 runs. As imposed by the distance threshold, the phase sets within this cluster are all very similar (sample circular variance = 0.20, Table 1). The 10 members of the cluster correspond to the true solution, and have mean differences from the model phases of 54–56° [see e.g. Figs. 5(a) and 5(b)]. The remaining 10 runs did not locate the true solution, and their mean differences with model phases are all close to 90° [see e.g. Fig. 5(c)]. Although the (I222) is achiral, only the solution with the correct hand is generated in this instance. Averaging across the cluster members produces a consensus phase set with mean difference with model phases of 52°, indicating that small residual random errors in the solution estimate are removed by averaging. Fig. 5(d) shows the reconstructed density, together with the refined atomic model from the PDB.
|
The solution was located for 22 of the 42 test cases, with final mean differences between the consensus and model phases ranging from 34 to 53° (Table 1). A maximum of one cluster was generated in the chiral space groups (corresponding to the true density), and a maximum of two clusters generated in the achiral space groups (corresponding to the true density, and the inversion of the true density). No false positives were generated (i.e. no clusters corresponding to an incorrect solution were identified). Hence if the phase determination procedure generates two or more highly consistent phase sets, having mean absolute phase difference < 40–50°, this unambiguously indicates that the phase retrieval problem has been solved. This provides a simple and reliable diagnostic of success, useful in the determination of unknown structures. While conventional metrics, like the correlation between measured and reconstructed Fourier amplitudes, do sometimes indicate that a solution the has been located (Fig. 5), the consistency of the final phase sets produced by the algorithm is a much more robust indicator of success.
In the achiral space groups, if the low-resolution molecular envelope is well discriminated from its inverse (e.g. 5hk7, 4fzn, 4asn, 4tpl, Supplementary Table S2) then the hand of the reconstruction is fixed by the initial imposition of the envelope. In contrast, if the low–resolution molecular envelope is similar to its inverse (e.g. 4c94, 2xol, 2vvx, 3me2, Supplementary Table S2), densities with either hand emerge. Solutions obtained at varying resolution are illustrated in Fig. 6. In contrast to the envelope determination step, the success of the phase determination step is clearly tied to the solvent content. Across the 42 test cases, the breakdown is given in Table 2 [see also Fig. 3(b)].
|
If the phase determination step is initiated without initial imposition of a low-resolution molecular envelope (i.e. a single-stage phase determination procedure is adopted) the result is always a net reduction in efficiency (i.e. the solution is located with lower frequency). We executed a single-stage phase determination procedure for three test cases presenting varying levels of overall difficulty. The comparative results are shown in Table 3. While in some cases, the loss in efficiency will be tolerable, in other cases the loss in efficiency is likely to be severe and could preclude location of the solution in a reasonable amount of time.
|
Finally, we note that for some test cases where our procedure is presently unable to determine a solution, there are indications that the problem is tractable. One example is 4zmx (Kudo et al., 2016) (solvent fraction 0.71), where a correct low-resolution phase set repeatedly starts to form during the phase determination step, but the solution is lost as the resolution of the image reconstruction increases throughout the runs. Across the 20 runs, the smallest final mean difference with model phases is 81°. It is likely that further improvements in the parameterization of the procedure will bring such cases within scope of the method.
3.4. Practical issues: ambiguity and errors in the estimation of the solvent fraction
In real cases there are several additional issues to be dealt with.
One of these is et al., 2018) that cannot be discriminated based on the diffraction data alone. In such a case it is necessary to run the calculations in just one of the possible space groups. If the wrong is selected, a solution may be located, but the density map will have the wrong hand. For example, if envelope and phasing calculations for test case 3als (Hatakeyama et al., 2011) (space group P65) are carried out in the enantiomorphic P61 an envelope coalesces which is the mirror image of the true envelope. At the phase determination step a consistent solution is found, however inspection of the density map shows that the helices are left-handed, indicating that the true is P65.
ambiguity. There are 11 enantiomorphic pairs (NespoloPotentially more problematic is the issue of the unknown solvent content. In some cases, particularly with small unit cells, there may be no ambiguity in this parameter, as any reasonable assumptions about the crystal packing density will lead to a unique answer (Weichenberger et al., 2015). However, in general, there may be some uncertainty about the exact number of molecules in the and hence the total solvent fraction. We have performed some preliminary exploration of this issue with test case 3als (Hatakeyama et al., 2011) (space group P65, with four molecules in the and solvent fraction 0.791). When using the correct solvent fraction, the solution was easy to locate for 3als, with all of the phase determination runs converging to the correct result (Table 1). The envelope and phasing calculations were repeated using solvent fractions based on the incorrect assumption of three molecules in the (solvent fraction 0.84) or five molecules in the (solvent fraction 0.74), both of which are physically plausible.
With the solvent fraction set too low, phase determination was essentially unaffected with 10/10 runs converging to the solution, and a mean absolute difference between consensus and model phases of 39°. This is in fact better than the 44° achieved using the correct solvent fraction (Table 1). Underestimation of the solvent fraction is consistent with the solution, and hence the result is unsurprising, although the lower solvent fraction does provide a weaker constraint on the density.
With the solvent fraction set too high, phase determination was severely impacted, with only 1/10 runs progressing toward the solution (and that run stalling with a mean absolute difference of 67° with model phases). Since overestimation of the solvent fraction is inconsistent with the solution (it must suppress density in the protein region), this is also expected. The result is diagnostic of overestimation of the solvent fraction.
4. Discussion
Solvent flatness has long been known to provide a powerful phase constraint in protein crystallography. We have shown here that the solvent flatness constraint, coupled with information on the protein density value distribution, is strong enough to effectively solve the ab initio, for the majority of high-solvent-content crystals, providing that an algorithm with good global search capabilities is employed. The feasibility of directly phasing diffraction data from high-solvent-content protein crystals has been predicted theoretically (Millane & Arnal, 2015) and demonstrated practically (He & Su, 2015; Jiang et al., 2018; He & Su, 2018; Jiang et al., 2019), but so far no general method has emerged. This study establishes the practicality of direct phasing for high-solvent-content crystals, subject to a reasonable estimate for the solvent fraction. The procedure we have implemented is unsupervised and does not require tuning or case–based decision making. Tested on a randomly selected set of 42 structures at modest resolution, it routinely succeeds when the solvent fraction is greater than 0.70, and is extremely likely to succeed when the solvent fraction is greater than 0.75. Preliminary tests suggest that the procedure is robust to errors in the assumed solvent content of the crystal.
While already providing a viable method for β which controls the behavior of the Difference Map algorithm; and the filter radius used during molecular envelope determination, amongst other variables. Developing and testing more sophisticated schemes for controlling these parameters is one focus of our current work.
it is probable that the approach can be further improved. The results reported here provide a benchmark against which future developments can be evaluated. In particular, the success of the algorithm, at both the envelope determination and phase determination steps, is quite sensitive to the apodization scheme; the parameterExactly how far the reach of this algorithm can be extended, without introducing stronger constraints on the density function is presently unclear. About 4.5% of protein crystals are expected to have solvent fraction greater than 0.7, but 19% will have solvent fraction greater than 0.6, and 52% will have solvent fraction greater than 0.5 (Weichenberger & Rupp, 2014). Hence, even a small lowering of the threshold solvent content for applicability of the method would bring many more structures into reach. There are more powerful image constraints that might be applied in the protein region, the most obvious of these being (NCS). NCS is commonplace (Kleywegt, 1996) and is frequently exploited for conventional phase (Kleywegt & Read, 1997). This can be seen in Supplementary Table S1, where 57% (24/42) of the test cases have NCS, which was not used as a constraint in our phase determination protocol. However, it is challenging to implement a symmetry constraint in any general fashion, because the nature of any symmetry present, and the position and orientation of any symmetry elements, are all a priori unknown. While it might be possible to deduce the order of the rotational symmetry prior to phasing (Blow, 1976; Sawaya, 2007), translational parameters, in particular, would need to be co-determined with a symmetry-constrained density, significantly increasing the complexity and difficulty of the problem. There has been some work in this area (He et al., 2019), but the resulting algorithm was very complicated, and appears unlikely to be generally applicable. If better methods for detecting and exploiting molecular symmetry can be devised, that would greatly increase the reach of the algorithm. However, there may be other constraints, reflecting generic properties of the protein density, that will also prove effective in this regard.
Because of dramatic recent advances in protein structure prediction (Jumper et al., 2021; Lupas et al., 2021), is becoming the predominant method for obtaining initial phase estimates in protein crystallography. However, particularly at modest resolution (<2.5 Å) there is the potential for significant model bias (Adams et al., 1999; DiMaio et al., 2011) when using this approach. We have shown that ab initio phase determination using iterative projection algorithms can be effective with this kind of data, and will produce solutions free of any model bias. It may be that a hybrid procedure, where the algorithm we described is initiated with model-based phase estimates, subject to some limited randomization, would also be effective in reducing or eliminating bias.
Some computational aspects of our approach deserve comment. The procedure employed for ab initio phase determination is obviously decomposable into many identical and fully separable subtasks. These are the individual runs, initiated with random phase sets, that are performed during both the envelope and phase determination steps. Parallelization of these steps makes the procedure relatively rapid to perform. The implementation of the approach we have publicly released is fully parallelized.
A two–stage procedure has been adopted for reasons of computational efficiency (i.e. because it decreases the overall number of iterations of the algorithm required to locate the solution). For some test cases the phase determination problem is relatively easy, and a separate envelope determination step is not strictly necessary, as a randomly initiated phase-determination step, with gradual resolution extension, would converge to the solution often enough to be viable (Table 3). However, in more difficult cases a single-stage algorithm may converge to the solution extremely sporadically from a completely random starting point. This results in the execution of many lengthy phase-determination runs, the vast majority of which are unsuccessful. However, if an approximate molecular envelope is first determined, and imposed at the very start of the phase determination procedure, efficiency is always improved (Table 3). A key observation is that a correct envelope often coalesces at low resolution before a full solution to the is located (Fig. 1). Hence, the envelope can be efficiently computed at low resolution, and used to effectively bias the initialization of the phase determination procedure at a higher resolution. The envelope determination calculations can be carried out quite rapidly, because a coarse grid can be used to represent the density, and an envelope typically coalesces in a relatively small number of iterations (Fig. 1).
In summary, we present a general-purpose, unsupervised, a priori phasing procedure for diffraction data of modest resolution, applicable to protein crystals with a solvent content greater than about 70%. The method is based on the use of an iterative projection algorithm to solve the global constraint satisfaction problem, with rigorous incorporation of solvent flatness and histogram constraints. Computational efficiency is improved by breaking the problem down into separable envelope-determination and phase-determination stages. Clustering procedures are used to identify and promote correct solutions. At the phase determination step, the emergence of highly consistent phase sets (mean absolute phase difference < 40–50°) from different randomly initiated runs, is a simple and reliable indicator of success. Such phase sets always correspond to the solution. Tests on 42 previously determined structures (solvent fraction 0.60–0.85, resolution 1.9–3.5 Å), selected at random, demonstrate the effectiveness of the algorithm. The implementation is based on the Clipper crystallographic library (Cowtan, 2003) and the code is publicly available. The algorithm has immediate practical application to crystals with high solvent content. With the incorporation of additional constraints on the protein density, the approach has potential to be effective for crystals with much lower solvent content.
Supporting information
Supplementary figures and tables. DOI: https://doi.org/10.1107/S2052252522006996/jt5063sup1.pdf
Acknowledgements
We thank Dr Michael Barnett (University of Auckland) for helping parallelize and automate the computational procedures.
Funding information
The following funding is acknowledged: Royal Society of New Zealand (grant No. 20-UOA-138).
References
Abrahams, J. P. & Leslie, A. G. W. (1996). Acta Cryst. D52, 30–42. CrossRef CAS Web of Science IUCr Journals Google Scholar
Adams, P. D., Pannu, N. S., Read, R. J. & Brunger, A. T. (1999). Acta Cryst. D55, 181–190. Web of Science CrossRef CAS IUCr Journals Google Scholar
Andersson, K. M. & Hovmöller, S. (1996). Acta Cryst. D52, 1174–1180. CrossRef CAS Web of Science IUCr Journals Google Scholar
Arrigoni, C., Rohaim, A., Shaya, D., Findeisen, F., Stein, R. A., Nurva, S. R., Mishra, S., Mchaourab, H. S. & Minor, D. L. (2016). Cell, 164, 922–936. Web of Science CrossRef CAS PubMed Google Scholar
Aylett, C. H. S. & Löwe, J. (2012). Proc. Natl Acad. Sci. USA, 109, 16522–16527. Web of Science CrossRef CAS PubMed Google Scholar
Baker, D., Krukowski, A. E. & Agard, D. A. (1993). Acta Cryst. D49, 186–192. CrossRef CAS Web of Science IUCr Journals Google Scholar
Blessing, R. H. & Langs, D. A. (1988). Acta Cryst. A44, 729–735. CrossRef CAS Web of Science IUCr Journals Google Scholar
Blow, D. M. (1976). Crystallographic Computing Techniques, edited by F. R. Ahmed, pp. 229–238. Copenhagen: Munksgaard. Google Scholar
Bricogne, G. (1974). Acta Cryst. A30, 395–405. CrossRef Web of Science IUCr Journals Google Scholar
Chapman, M. S., Blanc, E., Johnson, J. E., Mckenna, R., Munshi, S., Rossmann, M. G. & Tsao, J. (1998). Direct Methods for Solving Macromolecular Structures, edited by S. Fortier, pp. 433–422. Dordrecht: Kluwer Academic Publishers. Google Scholar
Coelho, A. A. (2021). Acta Cryst. D77, 98–107. Web of Science CrossRef IUCr Journals Google Scholar
Colman, P. (1974). Z. Kristallogr. 140, 344–349. CrossRef Web of Science Google Scholar
Condado, J. G., Muñoz-Barrutia, A. & Sorzano, C. O. S. (2022). BioRxiv, 2022.03.01.482513. Google Scholar
Cowtan, K. D. (2003). IUCr Computing Commission Newsletter, No. 2, edited by L. Cranswick, pp. 4–9. https://www.iucr.org/resources/commissions/crystallographic-computing/newsletters/2. Google Scholar
Crowther, R. A. (1967). Acta Cryst. 22, 758–764. CrossRef CAS IUCr Journals Web of Science Google Scholar
Crowther, R. A. (1969). Acta Cryst. B25, 2571–2580. CrossRef CAS IUCr Journals Web of Science Google Scholar
David, P. R. & Subbiah, S. (1994). Acta Cryst. D50, 132–138. CrossRef CAS Web of Science IUCr Journals Google Scholar
DiMaio, F., Terwilliger, T. C., Read, R. J., Wlodawer, A., Oberdorfer, G., Wagner, U., Valkov, E., Alon, A., Fass, D., Axelrod, H. L., Das, D., Vorobiev, S. M., Iwaï, H., Pokkuluri, P. R. & Baker, D. (2011). Nature, 473, 540–543. Web of Science CrossRef CAS PubMed Google Scholar
Donatelli, J. J., Sethian, J. A. & Zwart, P. H. (2017). Proc. Natl Acad. Sci. USA, 114, 7222–7227. Web of Science CrossRef CAS PubMed Google Scholar
Donatelli, J. J., Zwart, P. H. & Sethian, J. A. (2015). Proc. Natl Acad. Sci. USA, 112, 10286–10291. Web of Science CrossRef CAS PubMed Google Scholar
Dvir, H., Silman, I., Harel, M., Rosenberry, T. L. & Sussman, J. L. (2010). Chem. Biol. Interact. 187, 10–22. Web of Science CrossRef CAS PubMed Google Scholar
Ekeberg, T., Svenda, M., Abergel, C., Maia, F. R. N. C., Seltzer, V., Claverie, J.-M., Hantke, M., Jönsson, O., Nettelblad, C., van der Schot, G., Liang, M., DePonte, D. P., Barty, A., Seibert, M. M., Iwan, B., Andersson, I., Loh, N. D., Martin, A. V., Chapman, H., Bostedt, C., Bozek, J. D., Ferguson, K. R., Krzywinski, J., Epp, S. W., Rolles, D., Rudenko, A., Hartmann, R., Kimmel, N. & Hajdu, J. (2015). Phys. Rev. Lett. 114, 098102. Web of Science CrossRef PubMed Google Scholar
Elser, V. (2003a). J. Opt. Soc. Am. A, 20, 40–55. Web of Science CrossRef Google Scholar
Elser, V. (2003b). Acta Cryst. A59, 201–209. Web of Science CrossRef CAS IUCr Journals Google Scholar
Elser, V. & Millane, R. P. (2008). Acta Cryst. A64, 273–279. Web of Science CrossRef CAS IUCr Journals Google Scholar
Elser, V., Rankenburg, I. & Thibault, P. (2007). Proc. Natl Acad. Sci. USA, 104, 418–423. Web of Science CrossRef PubMed CAS Google Scholar
Fienup, J. R. (1982). Appl. Opt. 21, 2758–2769. CrossRef CAS PubMed Web of Science Google Scholar
Fisher, N. I. (1993). Statistical Analysis of Circular Data. Cambridge University Press. Google Scholar
Giacovazzo, C. (1999). Direct Phasing in Crystallography. Oxford University Press/International Union of Crystallography. Google Scholar
Grant, T. D. (2018). Nat. Methods, 15, 191–193. Web of Science CrossRef CAS PubMed Google Scholar
Harrison, R. W. (1988). J. Appl. Cryst. 21, 949–952. CrossRef CAS Web of Science IUCr Journals Google Scholar
Hatakeyama, T., Kamiya, T., Kusunoki, M., Nakamura-Tsuruta, S., Hirabayashi, J., Goda, S., et al. (2011). J. Biol. Chem. 286, 10305–10315. Web of Science CrossRef CAS PubMed Google Scholar
He, H., Jiang, M. & Su, W.-P. (2019). Crystals, 9, 55. Web of Science CrossRef Google Scholar
He, H. & Su, W.-P. (2015). Acta Cryst. A71, 92–98. Web of Science CrossRef IUCr Journals Google Scholar
He, H. & Su, W.-P. (2018). Acta Cryst. A74, 36–43. Web of Science CrossRef IUCr Journals Google Scholar
Hedayat, A., Sloane, N. J. A. & Stufken, J. (1999). Orthogonal Arrays. New York: Springer. Google Scholar
Hendrickson, W. A. (2014). Q. Rev. Biophys. 47, 49–93. Web of Science CrossRef PubMed Google Scholar
Hunt, J. F., Vellieux, F. M. D. & Deisenhofer, J. (1997). Acta Cryst. D53, 434–437. CrossRef CAS Web of Science IUCr Journals Google Scholar
Jiang, M., He, H., Cheng, Y. & Su, W. (2018). Crystals, 8, 1–17. Google Scholar
Jiang, M., He, H. & Su, W.-P. (2019). Crystals, 9, 533. Web of Science CrossRef Google Scholar
Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Žídek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S. A. A., Ballard, A. J., Cowie, A., Romera-Paredes, B., Nikolov, S., Jain, R., Adler, J., Back, T., Petersen, S., Reiman, D., Clancy, E., Zielinski, M., Steinegger, M., Pacholska, M., Berghammer, T., Bodenstein, S., Silver, D., Vinyals, O., Senior, A. W., Kavukcuoglu, K., Kohli, P. & Hassabis, D. (2021). Nature, 596, 583–589. Web of Science CrossRef CAS PubMed Google Scholar
Klejnot, M., Gabrielsen, M., Cameron, J., Mleczak, A., Talapatra, S. K., Kozielski, F., Pannifer, A. & Olson, M. F. (2013). Acta Cryst. D69, 1780–1788. Web of Science CrossRef IUCr Journals Google Scholar
Kleywegt, G. J. (1996). Acta Cryst. D52, 842–857. CrossRef CAS Web of Science IUCr Journals Google Scholar
Kleywegt, G. J. & Read, R. J. (1997). Structure, 5, 1557–1569. Web of Science CrossRef CAS PubMed Google Scholar
Kosinska, U., Carnrot, C., Sandrini, M. P. B., Clausen, A. R., Wang, L., Piskur, J., Eriksson, S. & Eklund, H. (2007). FEBS J. 274, 727–737. Web of Science CrossRef PubMed CAS Google Scholar
Kubota, M., Takeuchi, K., Watanabe, S., Ohno, S., Matsuoka, R., Kohda, D., Nakakita, S. I., Hiramatsu, H., Suzuki, Y., Nakayama, T., Terada, T., Shimizu, K., Shimizu, N., Shiroishi, M., Yanagi, Y. & Hashiguchi, T. (2016). Proc. Natl Acad. Sci. USA, 113, 11579–11584. Web of Science CrossRef CAS PubMed Google Scholar
Kudo, S., Caaveiro, J. M. M. & Tsumoto, K. (2016). Structure, 24, 1523–1536. Web of Science CrossRef CAS PubMed Google Scholar
Lawrence, M. C. (1991). Q. Rev. Biophys. 24, 399–424. CrossRef PubMed CAS Web of Science Google Scholar
Leppänen, V.-M., Tvorogov, D., Kisko, K., Prota, A. E., Jeltsch, M., Anisimov, A., Markovic-Mueller, S., Stuttfeld, E., Goldie, K. N., Ballmer-Hofer, K. & Alitalo, K. (2013). Proc. Natl Acad. Sci. USA, 110, 12960–12965. Web of Science PubMed Google Scholar
Leslie, A. G. W. (1987). Acta Cryst. A43, 134–136. CrossRef CAS Web of Science IUCr Journals Google Scholar
Liu, Z.-C., Xu, R. & Dong, Y.-H. (2012). Acta Cryst. A68, 256–265. Web of Science CrossRef CAS IUCr Journals Google Scholar
Lo, V. L., Kingston, R. L. & Millane, R. P. (2015). Acta Cryst. A71, 451–459. Web of Science CrossRef IUCr Journals Google Scholar
Lo, V. L., Kingston, R. L. & Millane, R. P. (2016). J. Struct. Biol. 196, 407–413. Web of Science CrossRef CAS PubMed Google Scholar
Lunin, V. Yu. (1988). Acta Cryst. A44, 144–150. CrossRef CAS Web of Science IUCr Journals Google Scholar
Lunin, V. Y., Lunina, N. L. & Urzhumtsev, A. G. (2007). Evolving Methods for Macromolecular Crystallography, edited by R. J. Read & J. L. Sussman, pp. 1–11. Dordrecht: Springer. Google Scholar
Lunin, V. Yu. & Skovoroda, T. P. (1991). Acta Cryst. A47, 45–52. CrossRef CAS Web of Science IUCr Journals Google Scholar
Lunin, V. Y., Urzhumtsev, A. G. & Podjarny, A. (2012). International Tables for Crystallography, Vol. F, edited by E. Arnold & M. G. Rossmann, pp. 437–442. Dordrecht: Springer. Google Scholar
Lunin, V. Yu. & Vernoslova, E. A. (1991). Acta Cryst. A47, 238–243. CrossRef CAS Web of Science IUCr Journals Google Scholar
Lupas, A. N., Pereira, J., Alva, V., Merino, F., Coles, M. & Hartmann, M. D. (2021). Biochem. J. 478, 1885–1890. Web of Science CrossRef CAS PubMed Google Scholar
Main, P. & Rossmann, M. G. (1966). Acta Cryst. A21, 67–72. CrossRef IUCr Journals Web of Science Google Scholar
Marchesini, S. (2007). Rev. Sci. Instrum. 78, 011301. Web of Science CrossRef PubMed Google Scholar
Martynowycz, M. W., Hattne, J. & Gonen, T. (2020). Structure, 28, 458–464.e2. Web of Science CrossRef CAS PubMed Google Scholar
Matthews, B. W. (2007). Protein Sci. 16, 1013–1016. Web of Science CrossRef PubMed CAS Google Scholar
McCoy, A. J., Oeffner, R. D., Wrobel, A. G., Ojala, J. R. M., Tryggvason, K., Lohkamp, B. & Read, R. J. (2017). Proc. Natl Acad. Sci. USA, 114, 3637–3641. Web of Science CrossRef CAS PubMed Google Scholar
McCoy, A. J. & Read, R. J. (2010). Acta Cryst. D66, 458–469. Web of Science CrossRef CAS IUCr Journals Google Scholar
Miao, J., Kirz, J. & Sayre, D. (2000). Acta Cryst. D56, 1312–1315. Web of Science CrossRef CAS IUCr Journals Google Scholar
Miao, J. & Sayre, D. (2000). Acta Cryst. A56, 596–605. Web of Science CrossRef CAS IUCr Journals Google Scholar
Millane, R. P. (1990). J. Opt. Soc. Am. A, 7, 394–411. CrossRef Web of Science Google Scholar
Millane, R. P. (1993). J. Opt. Soc. Am. A, 10, 1037–1045. CrossRef Web of Science Google Scholar
Millane, R. P. & Arnal, R. D. (2015). Acta Cryst. A71, 592–598. Web of Science CrossRef IUCr Journals Google Scholar
Millane, R. P. & Lo, V. L. (2013). Acta Cryst. A69, 517–527. Web of Science CrossRef IUCr Journals Google Scholar
Millane, R. P. & Stroud, W. (1997). J. Opt. Soc. Am. A, 14, 568–579. CrossRef CAS Web of Science Google Scholar
Müller, J. J., Lunina, N. L., Urzhumtsev, A., Weckert, E., Heinemann, U. & Lunin, V. Y. (2006). Acta Cryst. D62, 533–540. Web of Science CrossRef IUCr Journals Google Scholar
Nespolo, M., Aroyo, M. I. & Souvignier, B. (2018). J. Appl. Cryst. 51, 1481–1491. Web of Science CrossRef CAS IUCr Journals Google Scholar
Panaretos, V. M. & Zemel, Y. (2019). Annu. Rev. Stat. Appl. 6, 405–431. Web of Science CrossRef Google Scholar
Pettersen, E. F., Goddard, T. D., Huang, C. C., Meng, E. C., Couch, G. S., Croll, T. I., Morris, J. H. & Ferrin, T. E. (2021). Protein Sci. 30, 70–82. Web of Science CrossRef CAS PubMed Google Scholar
Plas, J. L. van der & Millane, R. P. (2000). Proc. SPIE, 4123, 249–260. Google Scholar
Podjarny, A. & Urzhumtsev, A. G. (1997). Methods Enzymol. 276, 641–658. CrossRef CAS PubMed Web of Science Google Scholar
Podjarny, A. D., Rees, B. & Urzhumtsev, A. G. (1996). Methods Mol. Biol. 56, 205–226. CAS PubMed Google Scholar
Read, R. J. & Schierbeek, A. J. (1988). J. Appl. Cryst. 21, 490–495. CrossRef CAS Web of Science IUCr Journals Google Scholar
Rogers, D. (1965). Computing Methods in Crystallography, edited by J. S. Rollett, pp. 117–132. Oxford: Pergamon. Google Scholar
Rossmann, M. G. (1995). Curr. Opin. Struct. Biol. 5, 650–655. CrossRef CAS PubMed Web of Science Google Scholar
Sawaya, M. R. (2007). Methods Mol. Biol. 364, 95–120. PubMed CAS Google Scholar
Scapin, G. (2013). Acta Cryst. D69, 2266–2275. Web of Science CrossRef CAS IUCr Journals Google Scholar
Schevitz, R. W., Podjarny, A. D., Zwick, M., Hughes, J. J. & Sigler, P. B. (1981). Acta Cryst. A37, 669–677. CrossRef CAS IUCr Journals Web of Science Google Scholar
Schubert, E., Sander, J., Ester, M., Kriegel, H.-P. & Xu, X. (2017). ACM Trans. Database Systems, 42, 1–21. Web of Science CrossRef Google Scholar
Subbiah, S. (1991). Science, 252, 128–133. CrossRef CAS PubMed Web of Science Google Scholar
Subbiah, S. (1993). Acta Cryst. D49, 108–119. CrossRef Web of Science IUCr Journals Google Scholar
Sundaresan, R., Ragunathan, P., Kuramitsu, S., Yokoyama, S., Kumarevel, T. & Ponnuraj, K. (2012). Biochem Biophys Res Commun. 13, 4203, 692–697. Google Scholar
Taylor, G. L. (2010). Acta Cryst. D66, 325–338. Web of Science CrossRef IUCr Journals Google Scholar
Urzhumtsev, A. G., Vernoslova, E. A. & Podjarny, A. D. (1996). Acta Cryst. D52, 1092–1097. CrossRef CAS Web of Science IUCr Journals Google Scholar
Urzhumtsev, A., von Castelmur, E. & Mayans, O. (2008). Acta Cryst. D64, 478–486. Web of Science CrossRef IUCr Journals Google Scholar
Usón, I. & Sheldrick, G. M. (1999). Curr. Opin. Struct. Biol. 9, 643–648. Web of Science CrossRef PubMed CAS Google Scholar
Wang, B. C. (1985). Methods Enzymol. 115, 90–112. CrossRef CAS PubMed Google Scholar
Wang, J., Wlodawer, A. & Dauter, Z. (2007). Acta Cryst. D63, 751–758. Web of Science CrossRef IUCr Journals Google Scholar
Warrens, M. J. (2008). Psychometrika, 73, 777–789. Web of Science CrossRef PubMed Google Scholar
Weichenberger, C. X., Afonine, P. V., Kantardjieff, K. & Rupp, B. (2015). Acta Cryst. D71, 1023–1038. Web of Science CrossRef IUCr Journals Google Scholar
Weichenberger, C. X. & Rupp, B. (2014). Acta Cryst. D70, 1579–1588. Web of Science CrossRef IUCr Journals Google Scholar
Yong, K., Zhang, J. & Main, P. (1990). Acta Cryst. A46, 41–46. CrossRef IUCr Journals Google Scholar
Zhang, K. Y. J., Cowtan, K. D. & Main, P. (2012). International Tables for Crystallography, Vol. F, edited by E. Arnold & M. G. Rossmann. Dordrecht: Springer. 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.