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

Journal logoSTRUCTURAL
BIOLOGY
ISSN: 2059-7983

Robust error calibration for serial crystallography

crossmark logo

aMolecular Biophysics and Integrated Bioimaging Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA, and bDepartment of Chemistry, University of Texas at San Antonio, San Antonio, TX 78249, USA
*Correspondence e-mail: dwmoreau@lbl.gov, asbrewster@lbl.gov

Edited by R. J. Read, University of Cambridge, United Kingdom (Received 15 January 2025; accepted 28 March 2025; online 29 April 2025)

Serial crystallography is an important technique with unique abilities to resolve enzymatic transition states, minimize radiation damage to sensitive metallo­enzymes and perform de novo structure determination from micrometre-sized crystals. This technique requires the merging of data from thousands of crystals, making manual identification of errant crystals unfeasible. cctbx.xfel.merge uses filtering to remove problematic data. However, this process is imperfect, and data reduction must be robust to outliers. We add robustness to cctbx.xfel.merge at the step of uncertainty determination for reflection intensities. This step is a critical point for robustness because it is the first step where the data sets are considered as a whole, as opposed to individual lattices. Robustness is conferred by reformulating the error-calibration procedure to have fewer and less stringent statistical assumptions and incorporating the ability to down-weight low-quality lattices. We then apply this method to five macromolecular XFEL data sets and observe the improvements to each. The appropriateness of the intensity uncertainties is demonstrated through internal consistency. This is performed through theoretical CC1/2 and I/σ relationships and by weighted second moments, which use Wilson's prior to connect intensity uncertainties with their expected distribution. This work presents new mathematical tools to analyze intensity statistics and demonstrates their effectiveness through the often underappreciated process of uncertainty analysis.

1. Introduction

In macromolecular crystallography (MX), data reduction is the conversion of raw frames of X-ray diffraction into averaged structure-factor intensities and uncertainties for subsequent structural modeling. Diffraction patterns are first indexed to determine the location of each reflection. The number of photons scattered into each reflection is then summed to form a list of integrated intensities, with uncertainties derived from counting-statistics errors. These values are scaled to place them onto a common magnitude and to correct for known effects that modulate intensities. Counting-statistics error thus forms the lower bound for uncertainty, because it does not account for errors in the scaling process or other experimental variances. Many of these sources of error have been enumerated in the literature (Holton et al., 2014[Holton, J. M., Classen, S., Frankel, K. A. & Tainer, J. A. (2014). FEBS J. 281, 4046-4060.]; Diederichs, 2010[Diederichs, K. (2010). Acta Cryst. D66, 733-740.]). Assuming that each error source can be modeled explicitly, a textbook approach would be to form the final uncertainty estimate by propagating each contribution explicitly. In the cases of small errors and/or linear models, first-derivative approaches are used. Otherwise, sampling techniques such as Markov chain Monte Carlo algorithms or variational inference are used (Possolo & Iyer, 2017[Possolo, A. & Iyer, H. K. (2017). Rev. Sci. Instrum. 88, 011301.]; Bevington & Robinson, 2003[Bevington, P. R. & Robinson, D. K. (2003). Data Reduction and Error Analysis for the Physical Sciences, 3rd ed. New York: McGraw-Hill.]).

In practice, however, error sources are incompletely known, so crystallographic data reduction has historically taken an empirical approach towards error modeling (Busing & Levy, 1957[Busing, W. R. & Levy, H. A. (1957). J. Chem. Phys. 26, 563-568.]; McCandlish et al., 1975[McCandlish, L. E., Stout, G. H. & Andrews, L. C. (1975). Acta Cryst. A31, 245-249.]). Sources of a reflection's error, beyond counting-statistics error, are accounted for by an empirical transformation of the scaled counting-statistics error (Leslie, 1999[Leslie, A. G. W. (1999). Acta Cryst. D55, 1696-1702.]; Borek et al., 2003[Borek, D., Minor, W. & Otwinowski, Z. (2003). Acta Cryst. D59, 2031-2038.]; Evans, 2006[Evans, P. (2006). Acta Cryst. D62, 72-82.], 2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]; Kabsch, 2010a[Kabsch, W. (2010a). Acta Cryst. D66, 125-132.]; Diederichs, 2010[Diederichs, K. (2010). Acta Cryst. D66, 733-740.]; McCandlish et al., 1975[McCandlish, L. E., Stout, G. H. & Andrews, L. C. (1975). Acta Cryst. A31, 245-249.]; Evans & Murshudov, 2013[Evans, P. R. & Murshudov, G. N. (2013). Acta Cryst. D69, 1204-1214.]; Brewster, Bhowmick et al., 2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]; Beilsten-Edmands et al., 2020[Beilsten-Edmands, J., Winter, G., Gildea, R., Parkhurst, J., Waterman, D. & Evans, G. (2020). Acta Cryst. D76, 385-399.]; Khouchen et al., 2023[Khouchen, M., Klar, P. B., Chintakindi, H., Suresh, A. & Palatinus, L. (2023). Acta Cryst. A79, 427-439.]). This approach to uncertainty quantification is known as error calibration and shares many similarities with statistical post-processing in weather forecasting (Vannitsem et al., 2021[Vannitsem, S., Bremnes, J. B., Demaeyer, J., Evans, G. R., Flowerdew, J., Hemri, S., Lerch, S., Roberts, N., Theis, S., Atencia, A., Ben Bouallègue, Z., Bhend, J., Dabernig, M., De Cruz, L., Hieta, L., Mestre, O., Moret, L., Plenković, I. O., Schmeits, M., Taillardat, M., Van den Bergh, J., Van Schaeybroeck, B., Whan, K. & Ylhaisi, J. (2021). Bull. Am. Meteorol. Soc. 102, E681-E699.]), astronomy (Chen et al., 2019[Chen, Y., Meng, X. L., Wang, X., van Dyk, D. A., Marshall, H. L. & Kashyap, V. L. (2019). J. Am. Stat. Assoc. 114, 1018-1037.]) and machine learning (Palmer et al., 2022[Palmer, G., Du, S., Politowicz, A., Emory, J. P., Yang, X., Gautam, A., Gupta, G., Li, Z., Jacobs, R. & Morgan, D. (2022). npj Comput. Mater. 8, 115.]; Kuleshov et al., 2018[Kuleshov, V., Fenner, N. & Ermon, S. (2018). Proc. Mach. Learn. Res. 80, 2796-2804.]; Levi et al., 2022[Levi, D., Gispan, L., Giladi, N. & Fetaya, E. (2022). Sensors, 22, 5540.]). This approach is justified by the needs of MX data-reduction programs and existing characterization of experimental X-ray sources. These programs operate in an automated manner on data from a wide variety of samples collected from sources with limited, and often inaccurate, characterization (Winter, 2010[Winter, G. (2010). J. Appl. Cryst. 43, 186-190.]). The lack of knowledge of the root sources of uncertainty, such as unit-cell distribution, point-spread functions, parallax and detector response, prevents our ability to explain the error we see in the observed intensities, necessitating this empirical approach.

Most data-reduction programs use the transformed errors as weights to average redundant measurements (Kabsch, 2010b[Kabsch, W. (2010b). Acta Cryst. D66, 133-144.]; Otwinowski et al., 2012[Otwinowski, Z., Minor, W., Borek, D. & Cymborowski, M. (2012). International Tables for Crystallography, Vol. F, 2nd online ed., edited by E. Arnold, D. M. Himmel & M. G. Rossmann, pp. 282-295. Chester: International Union of Crystallography.]; Beilsten-Edmands et al., 2020[Beilsten-Edmands, J., Winter, G., Gildea, R., Parkhurst, J., Waterman, D. & Evans, G. (2020). Acta Cryst. D76, 385-399.]; Evans, 2006[Evans, P. (2006). Acta Cryst. D62, 72-82.]). This approach is taken in cctbx.xfel.merge and xia2.ssx. An alternative approach to merging is to average the scaled measurements together without weighting and use the residuals as the final uncertainty. This approach is similar to that of Chapman et al. (2011[Chapman, H. N., Fromme, P., Barty, A., White, T. A., Kirian, R. A., Aquila, A., Hunter, M. S., Schulz, J., DePonte, D. P., Weierstall, U., Doak, R. B., Maia, F. R. N. C., Martin, A. V., Schlichting, I., Lomb, L., Coppola, N., Shoeman, R. L., Epp, S. W., Hartmann, R., Rolles, D., Rudenko, A., Foucar, L., Kimmel, N., Weidenspointner, G., Holl, P., Liang, M., Barthelmess, M., Caleman, C., Boutet, S., Bogan, M. J., Krzywinski, J., Bostedt, C., Bajt, S., Gumprecht, L., Rudek, B., Erk, B., Schmidt, C., Hömke, A., Reich, C., Pietschner, D., Strüder, L., Hauser, G., Gorke, H., Ullrich, J., Herrmann, S., Schaller, G., Schopper, F., Soltau, H., Kühnel, K.-U., Messerschmidt, M., Bozek, J. D., Hau-Riege, S. P., Frank, M., Hampton, C. Y., Sierra, R. G., Starodub, D., Williams, G. J., Hajdu, J., Timneanu, N., Seibert, M. M., Andreasson, J., Rocker, A., Jönsson, O., Svenda, M., Stern, S., Nass, K., Andritschke, R., Schröter, C.-D., Krasniqi, F., Bott, M., Schmidt, K. E., Wang, X., Grotjohann, I., Holton, J. M., Barends, T. R. M., Neutze, R., Marchesini, S., Fromme, R., Schorb, S., Rupp, D., Adolph, M., Gorkhover, T., Andersson, I., Hirsemann, H., Potdevin, G., Graafsma, H., Nilsson, B. & Spence, J. C. H. (2011). Nature, 470, 73-77.]) and CrystFEL (White et al., 2012[White, T. A., Kirian, R. A., Martin, A. V., Aquila, A., Nass, K., Barty, A. & Chapman, H. N. (2012). J. Appl. Cryst. 45, 335-341.]). Averaging with inverse variance weighting is the maximum-likelihood estimate of the mean. This should improve mean estimates by giving reflections deemed to be more accurately measured by the uncertainty estimate a larger contribution to the average. Brewster, Bhowmick et al. (2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]) demonstrated that weighted averaging improved merging results in serial crystallography (SX) only when the transformed errors are used as weights. Weighted averaging using counting-statistics error was worse than unweighted averaging.

This paper details the adaptation of the cctbx.xfel.merge Ev11 error model to better reflect SX data and experimentation. cctbx.xfel.merge is a program for scaling and merging SX data and is part of the cctbx.xfel suite (Brewster, Young et al., 2019[Brewster, A. S., Young, I. D., Lyubimov, A., Bhowmick, A. & Sauter, N. K. (2019). Comput. Crystallogr. Newsl. 10, 22-39.]).1 The Ev11 error model is the direct implementation of the error model of Evans (2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]) for single-crystal rotational diffraction to SX (Brewster, Bhowmick et al., 2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]; Brewster et al., 2018[Brewster, A. S., Waterman, D. G., Parkhurst, J. M., Gildea, R. J., Young, I. D., O'Riordan, L. J., Yano, J., Winter, G., Evans, G. & Sauter, N. K. (2018). Acta Cryst. D74, 877-894.]). However, SX data, experimentation and interpretation differ in ways that justify an SX-specific error model (Gorel et al., 2021[Gorel, A., Schlichting, I. & Barends, T. R. M. (2021). IUCrJ, 8, 532-543.]). In rotational crystallography, a single crystal is rotated while being illuminated by a stable, `continuous' beam. This rotation allows the integration of the full three-dimensional profile of the diffracted intensity and ensures smooth continuity between frames. An assumption can be made that crystal properties and quality remain relatively constant for the entire data set while scaling factors slowly vary. In SX, data sets are built up by separately collecting data from thousands of randomly oriented crystals, without rotation, and with an incident beam varying in both intensity and wavelength. A SX error model must be robust to outlier data and capable of applying different degrees of error to each lattice according to its accuracy in measurement and scaling.

For the new empirical error model, we are attempting to find a transformation of the initial counting-statistics uncertainties that explains the scale of the distribution of redundant measurements. We apply concepts of robust statistics (Lange et al., 1989[Lange, K. L., Little, R. J. A. & Taylor, J. M. G. (1989). J. Am. Stat. Assoc. 84, 881-896.]) to the determination of this model. Robustness describes the ability of an algorithm to resist failure when subjected to data that violate the statistical assumptions made on the data. Robustness can be increased by using fewer and less stringent assumptions. Our robust approach requires the writing of a likelihood distribution. Unfortunately, SX data do not follow simple, easily derived distributions (Sharma et al., 2017[Sharma, A., Johansson, L., Dunevall, E., Wahlgren, W. Y., Neutze, R. & Katona, G. (2017). Acta Cryst. A73, 93-101.]). Therefore, a likelihood function is written based on pairwise differences of symmetry-related reflections. Generally speaking, pairwise differences of samples drawn from the same distribution can be used as a measure of the scale of the distribution irrespective of its mean or skew (Rousseeuw & Croux, 1993[Rousseeuw, P. J. & Croux, C. (1993). J. Am. Stat. Assoc. 88, 1273-1283.]). This represents a reduction in assumptions. To model our data, we write the likelihood function utilizing a t-distribution. This distribution has longer tails than a normal distribution and is more accommodative to outlier data, forming a less stringent assumption.

In serial crystallography, diffraction frames are recorded. These frames can comprise diffraction from multiple crystals. A lattice refers to the diffraction from a single crystal. Differing degrees of error are applied to each lattice based on the Pearson correlation coefficient between the reflection intensities of a lattice and a scaling reference. This scaling reference can be either a PDB file or, in the case of de novo structure determination, a data set merged without a scaling reference. These correlations form a continuous variable that, in principle, should have a monotonic relationship with measurement, scaling and correction accuracy. The Ev11 parameterized error transformation is rewritten so different levels of error are applied to each lattice based on this correlation coefficient.

The application of robust statistics to MX includes peak finding (Hadian-Jazi et al., 2017[Hadian-Jazi, M., Messerschmidt, M., Darmanin, C., Giewekemeyer, K., Mancuso, A. P. & Abbey, B. (2017). J. Appl. Cryst. 50, 1705-1715.]), the generation of bad pixel masks (Sadri et al., 2022[Sadri, A., Hadian-Jazi, M., Yefanov, O., Galchenkova, M., Kirkwood, H., Mills, G., Sikorski, M., Letrun, R., de Wijn, R., Vakili, M., Oberthuer, D., Komadina, D., Brehm, W., Mancuso, A. P., Carnis, J., Gelisio, L. & Chapman, H. N. (2022). J. Appl. Cryst. 55, 1549-1561.]), background modeling (Parkhurst et al., 2016[Parkhurst, J. M., Winter, G., Waterman, D. G., Fuentes-Montero, L., Gildea, R. J., Murshudov, G. N. & Evans, G. (2016). J. Appl. Cryst. 49, 1912-1921.]) and finding pseuodotranslations (Sauter & Zwart, 2009[Sauter, N. K. & Zwart, P. H. (2009). Acta Cryst. D65, 553-559.]). Recent efforts have applied robust statistics to scaling and merging (Aldama et al., 2023[Aldama, L. A., Dalton, K. M. & Hekstra, D. R. (2023). Acta Cryst. D79, 796-805.]; Greisman et al., 2021[Greisman, J. B., Dalton, K. M. & Hekstra, D. R. (2021). J. Appl. Cryst. 54, 1521-1529.]; Dalton et al., 2022[Dalton, K. M., Greisman, J. B. & Hekstra, D. R. (2022). Nat. Commun. 13, 7764.]). Greisman et al. (2021[Greisman, J. B., Dalton, K. M. & Hekstra, D. R. (2021). J. Appl. Cryst. 54, 1521-1529.]) describe a maximum-likelihood approach to merging data with an error modeling that utilizes a t-distribution for robustness. Distributions for the merged intensities are inferred from the distribution of the redundant measurements. Their further work on this subject (Dalton et al., 2022[Dalton, K. M., Greisman, J. B. & Hekstra, D. R. (2022). Nat. Commun. 13, 7764.]) uses deep-learning-based variational inference to infer distributions of merged structure factors. Their methods utilize a t-distribution to model reflection intensities robustly. Our error model differs by determining uncertainties for unmerged reflections so that reflections assigned high uncertainty can be down-weighted during merging.

The uncertainty estimates of intensities are first used in the merging process, the weighted average of symmetry-related and multiply measured observations. Improved merging produces more accurate intensities, which should generate higher quality electron-density maps. Uncertainties are also relevant throughout structure determination and refinement. Phenix utilizes reflection uncertainties for outlier rejection (Read, 1999[Read, R. J. (1999). Acta Cryst. D55, 1759-1764.]), pruning low-information reflections (Read et al., 2020[Read, R. J., Oeffner, R. D. & McCoy, A. J. (2020). Acta Cryst. D76, 238-247.]), French–Wilson conversion (French & Wilson, 1978[French, S. & Wilson, K. (1978). Acta Cryst. A34, 517-525.]), phasing and molecular replacement (Read & McCoy, 2016[Read, R. J. & McCoy, A. J. (2016). Acta Cryst. D72, 375-387.]; Brewster, Bhowmick et al., 2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]), and structure refinement (Lunin et al., 2002[Lunin, V. Y., Afonine, P. V. & Urzhumtsev, A. G. (2002). Acta Cryst. A58, 270-282.]).

We demonstrate improved uncertainty estimates through their consistency with other statistical quantities. The direct impact of this on merging is shown by improvements to merging statistics. The more distant impact on electron-density maps is shown through increased anomalous map heights at heavy-atom positions.

2. Methods

2.1. Overview of the previous Ev11 error model

We now rederive the Ev11 method presented by Brewster, Bhowmick et al. (2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]) to examine its assumptions and identify avenues of improvement that will be presented in the next section. The following notation will be used. If R is normally distributed with mean μ and variance σ2, this will be denoted as [R \sim {\cal N}(\mu,{\sigma^2})]. The expected value and expected standard deviation of R are E(R) and std(R), respectively.

Before error calibration, a post-refinement process is performed that scales intensities and counting-statistics uncertainty to place them on the scale of a common reference. This corrects for lattice-to-lattice intensity variations due to incident beam intensity, illuminated crystal volume and Wilson B factor, and includes per-observation corrections for partiality. These factors are discussed in Brewster, Bhowmick et al. (2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]) and Sauter (2015[Sauter, N. K. (2015). J. Synchrotron Rad. 22, 239-248.]).

The Ev11 error model, detailed in Brewster, Bhowmick et al. (2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]) and Evans (2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]), approaches the problem of error calibration by utilizing the large redundancy in an XFEL crystallographic data set. Ignorance of the underlying sources of error is assumed. A parametric form of uncertainty is written for each reflection and is optimized to explain the observed variance within the data.

The intensity of the kth observation of Miller index h is written as Ihk and is assumed to be normally distributed with mean Ih, the true unobserved intensity, and variance [\sigma_{{\rm error},h}}^2],

[I_{hk}\sim {\cal N}(I_h,\sigma_{{\rm error},h}^2). \eqno(1)]

It is assumed that each observation of Miller index h is independently and identically distributed and that all symmetry-related reflections have been grouped into a common Miller index. The distribution of observations of the intensity of a Bragg peak has been suggested to not be normally distributed (Sharma et al., 2017[Sharma, A., Johansson, L., Dunevall, E., Wahlgren, W. Y., Neutze, R. & Katona, G. (2017). Acta Cryst. A73, 93-101.]) and it is not generally true that each observation of Miller index h is identically distributed. Our investigation of intensities after post-refinement also suggests a complex, non-normal distribution, an observation that we will return to later.

The Ev11 algorithm starts by writing a parameterized form of the measurement error, [\sigma_{{\rm Ev}11,hk}^2], that can be optimized to approximate the true, unknown error, [\sigma_{{\rm error},hk}^2],

[\sigma_{{\rm Ev}11,hk}^2 = s_{\rm fac}^2 [\sigma_{hk}^2 + s_{\rm B}^2 \langle I_h \rangle + s_{\rm add}^2 \langle I_h \rangle ^2]. \eqno(2)]

In this equation, [\sigma_{hk}^2] is the counting-statistics uncertainty derived from spot integration and 〈Ih〉 is the average intensity of all measurements of reflection h. The terms sfac, sB and sadd are optimizable parameters introduced by Evans (2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]). The sfac parameter scales the intensities and counting-statistics uncertainty to account for error in the detector gain. The sadd parameter accounts for undescribed sources of measurement error that should have variances that scale with 〈Ih2. The sB parameter is given no physical meaning. Evans (2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]) included this term because it seemed to improve the fitting to experimental data. These parameters are global; they have the same value for each lattice.

The Ev11 algorithm optimizes sfac, sB and sadd such that [\sigma_{{\rm Ev}11,hk}^2] explains the observed residual or difference between Ihk and 〈Ih〉. Normalized deviations are introduced as part of this optimization as a ratio of the observed residual to [\sigma_{{\rm Ev}11,hk}^2]. When the Ev11 error terms are correctly optimized, the distribution of these normalized deviations should have a standard deviation of one, which we will take advantage of to build a target function. The derivation of the normalized deviations starts with [\langle I_{hk}' \rangle], the mean of the n observations of Miller index h, except for the kth reflection. We can then write [\langle I_{hk}' \rangle \sim {\cal N}[I_h,(\sigma_{{\rm error},h}^2/n - 1)]]. The n − 1 term comes from averaging n − 1 reflections under the assumption that each observation of Miller index h is independently and identically distributed. The residuals are distributed as [I_{hk} - \langle I_{hk}'\rangle \sim {\cal N}[0, \sigma_{{\rm error},h}^2 + (\sigma_{{\rm error},h}^2/n - 1)]], where the variances add linearly. The normalized deviations for each measurement are constructed by dividing [{I_{hk}} - \langle I_{hk}'\rangle] by our approximation of the measurement error, [\sigma_{{\rm Ev}11,hk}^2}],

[{\delta_{hk}} = \left({{n - 1} \over n} \right)^{1/2} {{ I_{hk} - \langle I_{hk}'\rangle } \over { \sigma_{{\rm Ev}11,hk} }}. \eqno(3)]

When [\sigma_{{\rm Ev}11,hk}^2] is an accurate estimate of [\sigma_{{\rm error},h}^2], the standard deviation of all δhk for a common Miller index h should be one and can be estimated as the root-mean-squared δhk, [{\rm std} (\delta_h) = [E(\delta_h^2)]^{1/2} = [(1/n)\textstyle \sum_{k=1}^n \delta_{hk}^2]^{1/2}], given that the expected value of the normalized deviations, E(δh), is zero. Ev11 therefore refines sfac, sB and sadd to minimize the difference in the standard deviation of δhk from one.

The creation of the target function starts by binning the reflections based on the mean observed intensity of all of their symmetry-related reflections 〈Ih〉. 100 intensity bins are created, evenly spaced in intensity ranging from the minimum to maximum 〈Ih〉. All reflections of a Miller index are assigned to a single bin, indexed by b, based on their associated 〈Ih〉. A subscript b is introduced to indicate the binning and the Miller indices within a bin are denoted by hb.

The target function used to optimize sfac, sB and sadd minimizes the difference between our estimate of [{\rm std}(\delta_{h_{\rm b}})] within an intensity bin and one,

[{\cal L}_{{\rm Ev}11} = {\textstyle \sum \limits_{b=1}^{100}} w_b \left [1 - \left({1 \over {m_{b} }} \textstyle \sum \limits_{h_{b}} \sum \limits_{j=1}^n \delta_{h_{b}\,j}^2 \right)^{1/2} \right]^2. \eqno(4)]

The weighting for each bin is the square root of the number of observations in the bin b, wb = (mb)1/2. If the weighting was chosen to be one for all bins, it would weight each intensity bin equally. On the other hand, if we choose wb = mb, it would weight each observation equally. The choice of wb = (mb)1/2 is a middle ground between these two options. Minimization is performed using the scitbx L-BFGS-B optimizer (Zhu et al., 1997[Zhu, C., Byrd, R. H., Lu, P. & Nocedal, J. (1997). ACM Trans. Math. Softw. 23, 550-560.]) with analytical first derivatives.

2.2. MM24: updated error model

A new error model is developed using the Ev11 approach with several key differences. (i) The sB parameter is removed and sadd is further parameterized to reflect different uncertainty levels between frames. (ii) Pairwise differences of symmetry-related reflection intensities are used as a robust measure of their standard deviation, as opposed to the normalized deviations in the Ev11 protocol. (iii) The optimization target function is replaced with a maximum log-likelihood target function. (iv) Intensity binning is removed from the loss function. (v) A new initialization algorithm is used.

The Ev11 protocol uses a constant sadd for each lattice. To account for the lattice-to-lattice differences in the measurement accuracy, sadd is written as an exponential decay of the Pearson correlation coefficient, ccl, of the measured reflections of lattice l to a supplied scaling reference,

[s_{\rm add}^2 = s_{{\rm add},0}^2 + s_{{\rm add},1}^2\exp (-s_{{\rm add},2}^2 {\rm cc}_l). \eqno(5)]

In this equation, there are three optimized coefficients sadd,α. When sadd,1 = 0, sadd is a constant for all frames. For nonzero sadd,2, [s_{\rm add}^2] increases as ccl decreases. Each sadd,α coefficient is the same for all lattices. sadd is lattice-specific because ccl differs between lattices. The exponential form was chosen because it produces a curve that matches expectation: [s_{\rm add}^2] should always be positive and decrease monotonically with increasing ccl. It also restrains the curve to prevent numerical issues. For example, if a polynomial was used instead, it could result in a form that crosses zero, resulting in a division-by-zero error. The [s_{\rm B}^2\langle {I_h}\rangle] term is removed from equation (2)[link], as also performed by Beilsten-Edmands et al. (2020[Beilsten-Edmands, J., Winter, G., Gildea, R., Parkhurst, J., Waterman, D. & Evans, G. (2020). Acta Cryst. D76, 385-399.]). This term has some redundancy because [\sigma_{hk}^2] and 〈Ih〉 are correlated. In practice, sB tends to optimize to relatively small values and the [s_{\rm B}^2\langle {I_h}\rangle] term has a trivial contribution. We do not observe the [s_{\rm B}^2\langle {I_h}\rangle] term improving fits to experimental data in the same way that Evans (2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]) did to justify its initial inclusion. These changes give a new uncertainty equation

[\sigma_{{\rm MM}24,hk}^2 = s_{\rm fac}^2 \{ \sigma_{hk}^2 + [s_{{\rm add},0}^2 + s_{{\rm add},1}^2\exp(-s_{{\rm add},2}^2{\rm cc}_l)]\langle I_h\rangle^2 \}. \eqno(6)]

The derivation of the normalized deviations in Ev11 assumed that they were identically distributed: symmetry-related peaks had the same variance, required an estimate of mean [\langle I_{hk}'\rangle] and assumed that the normalized deviations are distributed symmetrically about zero. A target function can be derived based on pairwise differences of symmetry-related reflections without making these assumptions. Pairwise differences can be used to robustly quantify the variance of a distribution without an estimate of a mean (Rousseeuw & Croux, 1993[Rousseeuw, P. J. & Croux, C. (1993). J. Am. Stat. Assoc. 88, 1273-1283.]) and are guaranteed to be an even function, symmetric about zero. A set of normalized pairwise differences is constructed as

[\omega_{hjk} = {{|I_{hj} - I_{hk}|} \over {\sigma_{{\rm MM}24,hjk}}}, \,\,{\rm where}\,\, j \,\gt\, k. \eqno (7)]

Here, [\sigma_{{\rm MM}24,hjk} = (\sigma_{{\rm MM}24,hj}^2 + \sigma_{{\rm MM}24,hk}^2)^{1/2}] represents the uncertainty of the pairwise difference. This is assembled given that uncertainties add in quadrature for normally distributed random variables.

If we assume that [I_{hk} \sim {\cal N}(I_h, \sigma_{{\rm error},hk}^2)], which does not assume that all measurements of Miller index h have the same variance, unlike equation (1)[link] for the normalized deviations, then [(I_{hj} - I_{hk})/(\sigma_{{\rm error},hj}^2 + \sigma_{{\rm error},hk}^2)^{1/2} \sim {\cal N}(0,1)]. The normalized pairwise differences are then distributed as a half-normal variable and the likelihood function is

[\rho_N (\omega_{hjk}) = 2{1 \over {(2\pi)^{1/2} \sigma_{{\rm MM}24,hjk}}} \exp \left[-{1 \over 2}\left({{|I_{hj} - I_{hk}|} \over {\sigma_{{\rm MM}24,hjk}}} \right)^2 \right]. \eqno(8)]

This likelihood could be replaced with a t-distribution to account for data distributed with longer tails than a normal distribution or to make the optimization more robust to outliers. We will use likelihood to optimize equation (6)[link], but maximum-likelihood optimization with a normal distribution is sensitive to outliers. To increase the optimization robustness, we choose to approximate this distribution as a half t-distribution,

[\rho_t (\omega_{hjk}) = 2{{\Gamma\left({{\nu + 1} \over 2} \right)} \over {(\nu \pi)^{1/2} \Gamma \left({\nu \over 2} \right) \sigma_{{\rm MM}24,hjk}}} \left[1 + {1 \over \nu} \left({{|I_{hj} - I_{hk}|} \over {\sigma_{{\rm MM}24,hjk}}} \right)^2\right]^{-(\nu + 1)/2}. \eqno(9)]

The gamma function, Γ(x), is equivalent to (x − 1)!; however, it is defined for non-integer numbers. The parameter ν is known as the degrees of freedom. The t-distribution models the difference between the true mean of a random variable and the mean estimated from n samples. In this interpretation, ν = n − 1. In our implementation, where the t-distribution is used as a generic probability distribution, ν can be viewed as a tuning parameter that adjusts the shape of the distribution. When ν = 1, the t-distribution is equivalent to the long-tailed Cauchy distribution. As ν approaches infinity, the t-distribution converges to the normal distribution.

A loss function is written that minimizes the negative of the log-likelihood of the pairwise differences,

[{\cal L}_{{\rm MM}24} = - \ln \left[\textstyle \prod \limits_{k=1}^{n_b} \rho (\omega_{hjk}) \right] = - \textstyle \sum\limits_{h}\sum \limits_{j>k}\sum\limits_{k}\ln [\rho (\omega_{hjk})]. \eqno(10)]

The binning scheme from the Ev11 protocol is removed from the loss function; however, it is used later for a new initialization procedure.

For the thermolysin data set utilized in this study, there are of the order of 107 unmerged reflections. The number of pairwise differences makes the optimization based on all possible pairwise differences intractable due to limited computational memory. To reduce memory demands, a maximum of 100 pairwise differences are randomly sub­sampled for each Miller index and used for optimization. To ensure reproducibility for distributed computing, a new random-number generator is created for each set of reflections with a seed calculated from the common Miller indices. Cantor's pairing function maps two natural numbers to one unique natural number, π(κ1, κ2) = [(κ1 + κ2)(κ1 + κ2 + 1)]/2 + κ2), and is used to convert Miller indices to a unique seed. Each Miller index is increased by 1000, to ensure they are all positive, and Cantor's pairing function is then iteratively applied. An optional integer can be supplied that is added to the unique seed to obtain different results. The parameters sfac, sadd,0, sadd,1, sadd,2 and, when using a t-distribution, ν, are optimized by minimizing equation (10)[link] using the scitbx L-BFGS-B optimizer (Zhu et al., 1997[Zhu, C., Byrd, R. H., Lu, P. & Nocedal, J. (1997). ACM Trans. Math. Softw. 23, 550-560.]) with analytical first derivatives.

In Ev11, sfac and sadd are initialized using the normalized deviations. Because they are not calculated in MM24, a new algorithm is used to initialize sfac and sadd,1. The terms sadd,0 and sadd,2 are initialized to 0.001. A set of unnormalized pairwise differences are constructed, [{\tilde \omega}_{hjk} = |I_{hj} - I_{hk}|]. Their means, [\langle{\tilde \omega}_{hjk}\rangle_b], are calculated in 100 intensity bins spanning zero and one tenth of the maximum biased mean, 0.1max(〈Ih〉). Zero is chosen as the lower limit for numerical stability because a square root of this value is included. The upper limit of one tenth of the maximum reflects that the bulk of the reflection intensities tends to be at least one order of magnitude less than the maximum. If Ihj and Ihk are sampled from a normal distribution with mean Ih and variance [\sigma_{{\rm error},h}^2], then IhjIhk follows a normal distribution with zero mean and variance [2\sigma_{{\rm error},h}^2] and [{\tilde \omega}_{hjk}} = |I_{hj} - I_{hk}|] follows a half-normal distribution with variance [2\sigma_{{\rm error},h}^2[1 - (2/\pi)]]. The mean of [{\tilde \omega}_{hjk}] is then 2/π1/2σerror,h. Therefore, [\langle {\tilde \omega}_{hjk}\rangle_b] should scale with [2/\pi^{1/2} [ s_{\rm fac}^2 (\langle I \rangle_b + s_{{\rm add},1}^2 \langle I\rangle_b^2)]^{1/2}]. 〈Ib is the central intensity of the bins. The sfac and sadd,1 terms are initialized by the minimization of

[{\cal L}_{\rm init} = {1 \over 2} \textstyle \sum \limits_b \left ( \langle{\tilde \omega}_{hjk}\rangle_b - \{ \langle{\tilde \omega}_{hjk} \rangle_0 + 2/\pi^{1/2} [s_{\rm fac}^2 (\langle I \rangle_b + s_{{\rm add},1}^2 \langle I \rangle_b^2)]^{1/2}\}\right )^2. \eqno(11)]

The term [\langle{\tilde \omega}_{hjk}\rangle_0] is the mean pairwise difference of the first positive-intensity bin and represents the expected nonzero error of low-intensity reflections.

2.3. Weighted second moments

The second moment of intensity, 〈I2〉/〈I2, is a metric commonly used to identify twinning (Stanley, 1972[Stanley, E. (1972). J. Appl. Cryst. 5, 191-194.]). The mean intensity, 〈I〉, and mean squared intensity, 〈I2〉, can be calculated over all merged reflections or in resolution bins. For crystals that are not twinned, the theoretical second moment for acentric reflections is two, as inferred from the Wilson distribution (Wilson, 1949[Wilson, A. J. C. (1949). Acta Cryst. 2, 318-321.]), in the absence of measurement error. In high-resolution bins, measurement error becomes comparable to the mean intensity. This adds to the dispersion of the intensities and the observed second moment increases from two. The formula for this departure is derived by combining the expected distribution for the intensities within a resolution bin and the measurement error (Read et al., 2020[Read, R. J., Oeffner, R. D. & McCoy, A. J. (2020). Acta Cryst. D76, 238-247.]).

The Wilson distribution tells us how acentric reflection intensities, I, should be distributed given the mean intensity, Σ: ρ(I) = Σ−1exp(−I/Σ). Using the normalized intensity, Z = I/Σ, this simplifies to ρ(Z) = exp(−Z). If we assume Gaussian measurement error, the distribution of the observed normalized intensity, [\hat Z], given its true value, Z, and estimated measurement error, [{\hat \sigma}_Z = {\hat \sigma}_I/\Sigma], is

[\rho ({\hat Z}|Z,{\hat \sigma}_Z) = {1 \over {(2\pi)^{1/2} {\hat \sigma}_Z}}\exp \left[ - {1 \over 2}\left({{{\hat Z} - Z} \over {{\hat \sigma}_Z}} \right)^2 \right].]

Integrating out the true intensity gives the distribution of the observed normalized intensity given measurement error,

[\eqalign{\rho ({\hat Z}|{\hat \sigma}_Z) &= {\textstyle \int \limits_0^\infty} \rho ({\hat Z}|Z,{\hat \sigma}_Z) \rho (Z)\,{\rm d}Z \cr & = {1 \over 2} \exp \left[{1 \over 2}({\hat \sigma}_Z^2 - 2\hat Z) \right]{\rm erfc} \left({{{\hat \sigma}_Z^2 - \hat Z} \over {2^{1/2} {\hat \sigma} _Z}} \right),}]

where erfc is the complementary error function. A similar derivation can be found in Read et al. (2020[Read, R. J., Oeffner, R. D. & McCoy, A. J. (2020). Acta Cryst. D76, 238-247.]) for centric reflections. This distribution is in the form of an exponentially modified Gaussian distribution with mean [\langle {\hat Z}\rangle = 1] and variance [\langle {\hat Z^2}\rangle - \langle {\hat Z}\rangle ^2 = 1 + {\hat \sigma}_Z^2]. The second moment follows as [\langle {\hat Z}^2\rangle/\langle {\hat Z}\rangle^2 = 2 + {\hat \sigma}_Z^2]. Weighted second moments are calculated in phenix.phaser after outlier rejection and anisotropic B-factor correction (McCoy et al., 2007[McCoy, A. J., Grosse-Kunstleve, R. W., Adams, P. D., Winn, M. D., Storoni, L. C. & Read, R. J. (2007). J. Appl. Cryst. 40, 658-674.]).

3. Results

Comparisons of the different error models were made with five data sets: a thermolysin data set (PDB entry 4ow3; Kern et al., 2014[Kern, J., Tran, R., Alonso-Mori, R., Koroidov, S., Echols, N., Hattne, J., Ibrahim, M., Gul, S., Laksmono, H., Sierra, R. G., Gildea, R. J., Han, G., Hellmich, J., Lassalle-Kaiser, B., Chatterjee, R., Brewster, A. S., Stan, C. A., Glöckner, C., Lampe, A., DiFiore, D., Milathianaki, D., Fry, A. R., Seibert, M. M., Koglin, J. E., Gallo, E., Uhlig, J., Sokaras, D., Weng, T. C., Zwart, P. H., Skinner, D. E., Bogan, M. J., Messerschmidt, M., Glatzel, P., Williams, G. J., Boutet, S., Adams, P. D., Zouni, A., Messinger, J., Sauter, N. K., Bergmann, U., Yano, J. & Yachandra, V. K. (2014). Nat. Commun. 5, 4371.]), an unpublished cytochrome data set similar to PDB entry 8tdq, an isopenicillin N synthase (IPNS) data set associated with PDB entry 6zae (Rabe et al., 2021[Rabe, P., Kamps, J. J. A. G., Sutherlin, K. D., Linyard, J. D. S., Aller, P., Pham, C. C., Makita, H., Clifton, I., McDonough, M. A., Leissing, T. M., Shutin, D., Lang, P. A., Butryn, A., Brem, J., Gul, S., Fuller, F. D., Kim, I. S., Cheah, M. H., Fransson, T., Bhowmick, A., Young, I. D., O'Riordan, L., Brewster, A. S., Pettinati, I., Doyle, M., Joti, Y., Owada, S., Tono, K., Batyuk, A., Hunter, M. S., Alonso-Mori, R., Bergmann, U., Owen, R. L., Sauter, N. K., Claridge, T. D. W., Robinson, C. V., Yachandra, V. K., Yano, J., Kern, J. F., Orville, A. M. & Schofield, C. J. (2021). Sci. Adv. 7, eabh0250.]), a methane monooxygenase hydroxylase (MMOH) data set associated with PDB entry 6yd0 (Srinivas et al., 2020[Srinivas, V., Banerjee, R., Lebrette, H., Jones, J. C., Aurelius, O., Kim, I. S., Pham, C. C., Gul, S., Sutherlin, K. D., Bhowmick, A., John, J., Bozkurt, E., Fransson, T., Aller, P., Butryn, A., Bogacz, I., Simon, P., Keable, S., Britz, A., Tono, K., Kim, K. S., Park, S. Y., Lee, S. J., Park, J., Alonso-Mori, R., Fuller, F. D., Batyuk, A., Brewster, A. S., Bergmann, U., Sauter, N. K., Orville, A. M., Yachandra, V. K., Yano, J., Lipscomb, J. D., Kern, J. & Högbom, M. (2020). J. Am. Chem. Soc. 142, 14249-14266.]) and a second methane monooxygenase hydroxylase data set (sMMOox) that is unpublished.

The thermolysin data set is available as cxi.db entry 81 (https://www.cxidb.org/id-81.html). It was collected at a wavelength of 1.27 Å with anomalous scattering from Zn and Ca atoms, which have absorption edges at 1.2837 and 3.0705 Å, respectively. Comparisons with thermolysin were made using phasing results in the same manner as the previous error-model and merging comparisons (Brewster, Bhowmick et al., 2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]; Dalton et al., 2022[Dalton, K. M., Greisman, J. B. & Hekstra, D. R. (2022). Nat. Commun. 13, 7764.]). Integration results were taken directly from the earlier work (Brewster, Bhowmick et al., 2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]). Merging used PDB entry 4ow3 as the scaling reference and a correlation outlier filter of 0.1. This outlier filter works by removing lattices whose correlation between the observed intensities and a scaling reference is less than a set threshold. This correlation is determined before post-refinement is applied. Phasing and autobuilding are performed using phenix.autosol with an exact amino-acid sequence and two Zn atoms specified. 30 trials with different random seeds were performed. The anomalous map height of one Zn atom is calculated using xfel.map_height_at_atom with the merged reflections and each phenix.autosol solution. The number of residues built, Rwork and Rfree metrics were determined using the structures produced from phenix.autosol. Table 1[link] reports the mean and standard deviation of the trials. The left column of Table 1[link] shows the results using the Ev11 protocol, as performed in Brewster et al. (2018[Brewster, A. S., Waterman, D. G., Parkhurst, J. M., Gildea, R. J., Young, I. D., O'Riordan, L. J., Yano, J., Winter, G., Evans, G. & Sauter, N. K. (2018). Acta Cryst. D74, 877-894.]) and the right column shows the MM24 protocol with a t-distribution likelihood.

Table 1
Integrated intensities were merged with both error models and merging results were compared through phasing with thermolysin and refinement for cytochrome, IPNS, MMOH and sMMOox

Generally, the MM24 error model results in larger anomalous map height, I/σ and CC1/2.

  Thermolysin Cytochrome IPNS MMOH sMMOox
Facility, beamline LCLS, CXI SWISSFEL, Bernina LCLS, MFX LCLS, MFX LCLS, MFX
Detector CSPAD JUNGFRAU 16M Rayonix MX340-XFEL Rayonix MX340-XFEL Rayonix MX340-XFEL
Wavelength (Å) 1.27 1.31 1.30 1.30 1.74
cxi.db accession No. 81 229 230 230
PDB code 4ow3 6zae 6yd0
No. of lattices 164639 8631 10365 28846 38325
No. of reflections
 Total 40619913 2243336 1984570 16079131 17459589
 Unique 101051 92647 69019 281110 225557
Resolution (Å) 34.35–1.80 (1.83–1.80) 54.00–1.75 (1.78–1.75) 21.80–1.70 (1.73–1.70) 34.54–1.80 (1.88–1.85) 37.90–2.00 (2.04–2.00)
Correlation filter threshold 0.1 0.3 0.1 0.1 −1
Error model Ev11 MM24 Ev11 MM24 Ev11 MM24 Ev11 MM24 Ev11 MM24
ν (degrees of freedom) N/A 4.4 N/A 7.6 N/A 7.9 N/A 5.3 N/A 9.4
I/σ 21.94 (5.21) 32.01 (9.44) 3.019 (0.73) 5.66 (1.82) 3.26 (0.69) 4.92 (1.03) 3.14 (0.41) 6.40 (0.80) 3.62 (0.24) 5.54 (0.32)
CC1/2 (%) 99.9 (86.3) 99.9 (86.5) 97.5 (32.0) 98.7 (14.7) 97.8 (31.2) 98.4 (32.0) 98.1 (22.5) 98.9 (13.3) 86.4 (0.04) 99.3 (0.03)
Wilson B2) 24.8 23.9 21.9 22.1 18.9 19.1 28.8 29.6 39.3 39.7
Map height (σ) Zn Zn Fe Fe Fe Fe Fe Fe Fe Fe
  80.1 ± 0.9 74.2 ± 3.0 15.8 ± 0.1 22.1 ± 0.1 19.1 ± 0.1 20.0 ± 0.1 17.4 ± 0.2 18.6 ± 0.3 12.3 ± 0.1 12.3 ± 0.1
              12.0 ± 0.2 13.7 ± 0.1 11.1 ± 0.1 11.7 ± 0.1
Residues built (of 316) 302 ± 6 298 ± 10 N/A N/A N/A N/A N/A N/A N/A N/A
Rwork (%) 19.7 ± 1.2 21.0 ± 1.7 18.0 ± 0.1 17.1 ± 0.1 15.3 ± 0.1 15.1 ± 0.1 17.8 ± 0.1 17.7 ± 0.3 18.1 ± 0.1 18.1 ± 0.1
Rfree (%) 22.3 ± 1.2 23.7 ± 1.7 20.3 ± 0.4 19.2 ± 0.4 18.1 ± 0.3 17.7 ± 0.3 20.2 ± 0.4 19.8 ± 0.5 20.7 ± 0.6 20.6 ± 0.4

For the cytochrome, IPNS, MMOH and sMMOox data sets, the images were first indexed and integrated with dials.stills_process (Brewster et al., 2018[Brewster, A. S., Waterman, D. G., Parkhurst, J. M., Gildea, R. J., Young, I. D., O'Riordan, L. J., Yano, J., Winter, G., Evans, G. & Sauter, N. K. (2018). Acta Cryst. D74, 877-894.]). The integration results were merged using cctbx.xfel.merge with PDB entries 7s0o, 6zae, 6yd0 and 6ydi as scaling references. A correlation outlier filter of 0.1 was applied to IPNS and MMOH and 0.3 for cytochrome to be consistent with the published work. It was not applied to sMMOox. Our standard practice is to not use an outlier filter as it removes lattices. When there is reason to suspect that low-quality data are being measured, we switch to a correlation filter of 0.1. During live data collection of sMMOox, the correlation filter was not used. At the time of publication, PDB entry 8tdq superseded PDB entry 7s0o for cytochrome. Cytochrome contains a heme-bound Fe atom, IPNS contains a Fe atom and MMOH and sMMOox contain two Fe atoms. The anomalous map heights at these atoms are calculated using xfel.map_height_at_atom using the merged intensity and refined structures. The left column of Table 1[link] shows the results using the current Ev11 protocol, including the correlation outlier filter in cctbx.xfel.merge. Each set of merged intensities was used as a starting point for 30 different refinements in phenix.refine starting from the scaling reference structure. The map heights, Rwork and Rfree values reflect the mean and standard deviation over these trials. The Wilson B factor was calculated using phenix.xtriage. Data and detailed processing details are available for cytochrome in cxi.db entry 229 (https://www.cxidb.org/id-229.html) and those for IPNS and MMOH in cxi.db entry 230 (https://www.cxidb.org/id-230.html).

For the results in Table 1[link], for cytochrome, IPNS, MMOH and sMMOox high-resolution cutoffs were made at the point where the multiplicity in the highest resolution shell was at ten and the resolution-binned CC1/2 was declining monotonically. This is the standard rule of thumb that we apply to SX data processing and we have found that it gives consistent and reliable results. Thermolysin data were cut at 1.8 Å resolution to be consistent with Brewster, Bhowmick et al. (2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]). Including data beyond this point reduced anomalous peak heights. The total number of lattices, observed reflections and unique reflections are listed in Table 1[link] and are the same for the MM24 and Ev11 protocols. For the MM24 protocol, the degrees of freedom of the t-distribution are optimizable parameters and their optimized values are listed in Table 1[link]. Generally, several trends are observed for the MM24 protocol, I/σ is larger and CC1/2 increases. The map heights show a small but significant increase at the heavy-atom sites. Cytochrome shows a large increase in map height and improvements in the refined Rwork and Rfree metrics.

During an SX experiment, processing data in real time is critical for decision making regarding experimental logistics; for example, determining when data collection for a sample can be stopped. The authors use CC1/2 as a critical metric for these decisions. For sMMOox, an errant frame was processed during the 52nd run. Fig. 1[link] shows that this caused a significant decrease in CC1/2 when processed with Ev11. This was not observed with the MM24 algorithm due to the increased robustness of its statistical approach.

[Figure 1]
Figure 1
Cumulative CC1/2 versus run for sMMOox. During the 52nd run of data collection, a single errant lattice caused the decrease in CC1/2 when processed with Ev11. This was not observed with the MM24 algorithm.

Fig. 2[link] shows statistical analysis of the normalized pairwise differences ωhjk and the normalized deviations δhk. Histograms of ωhjk and δhk are shown with the Ev11 (blue) and MM24 (pink) error models. The MM24 data correspond to the processing results in the right column of Table 1[link]. For the Ev11 model, ωhjk are calculated using the parameterization determined from the Ev11 optimization procedure. These plots demonstrate three points. Firstly, uncertainty estimates from the MM24 protocol are smaller, resulting in broader distributions of ωhjk and δhk. Secondly, calibrated uncertainties from MM24 match their target t-distribution. To demonstrate this, a standard half-normal distribution is drawn as a solid line and a half t-distribution as a dotted line, which match the distribution of ωhjk. Thirdly, there are difficulties in using δhk as an optimization metric. δhk are shown in the lower row. In each of these plots, the histograms of δhk are skewed and offset from zero. The derivation of the Ev11 target function assumes the mean δhk is zero, which is not true given the observed skew and offset.

[Figure 2]
Figure 2
Comparisons of optimization metrics with their target values. The top row shows statistical analysis of the normalized pairwise differences, ωhjk, for (a) thermolysin, (b) cytochrome, (c) IPNS, (d) MMOH and (e) sMMOox. The bottom row, (f)–(j), shows corresponding plots made with the normalized deviations, δhk. The MM24 protocol uses a t-distribution likelihood with degrees of freedom optimized. In each plot, a histogram of the statistical metrics is plotted for the Ev11 (blue) and MM24 (pink) protocols along with a standard normal distribution (solid black line) and t-distribution (dotted black line). The inset in the top row shows the normal probability plots. The solid and dotted lines show the expected curve if the data follow a normal or t-distribution, respectively. Deviations from these lines indicate deviations from the assumed distribution.

Abrahams & Keve (1971[Abrahams, S. C. & Keve, E. T. (1971). Acta Cryst. A27, 157-165.]) introduced the usage of normal probability plots to assess the error placed on structure factors, an approach that was also followed in Evans (2011[Evans, P. R. (2011). Acta Cryst. D67, 282-292.]) and Brewster, Bhowmick et al. (2019[Brewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959-968.]). These plots are used to visualize the distribution of the data against a theoretical distribution and are especially useful in accessing the correspondence in the tails. In these plots, the data are first sorted and then the expected value of each point is calculated from its position in the sorted data given the assumption that the data follow a normal distribution. These expected values are called rankits. In the insets of Fig. 2[link], the rankits are plotted versus the sorted normalized pairwise differences. If the normalized pairwise differences are distributed according to a half-normal distribution, the plot will be a straight line that passes through the origin with a slope of one, as shown by the solid black line. The corresponding expected line for a half t-distribution with the optimized degrees of freedom is shown as a dotted black line, which generally fits the MM24 data.

While Fig. 2[link] shows that MM24 provides a smaller estimate of uncertainty and the optimization procedure meets its objective, Figs. 3[link] and 4[link] demonstrate these smaller uncertainties are more consistent with other metrics. Fig. 3[link] demonstrates consistency between I/σ and CC1/2. The left column of Fig. 3[link] shows the average merged I/σ using Ev11 (blue) and MM24 (pink). The MM24 protocol results in larger I/σ throughout the entire resolution range for both data sets due to smaller σ estimates. Because the difference in these algorithms is the estimation of uncertainty, larger I/σ values are not indicative of better data. They are simply a result of different uncertainty estimates. To demonstrate internal consistency, the right columns plot CC1/2 against I/σ with a gray filled region that corresponds to a theoretical relationship between CC1/2 and I/σ (Karplus & Diederichs, 2015[Karplus, P. A. & Diederichs, K. (2015). Curr. Opin. Struct. Biol. 34, 60-68.]). Curves lying to the left of the shaded region are due to an underestimation of I/σ or, equivalently, an overestimation of σ. Thermolysin was cut at a resolution where CC1/2 and I/σ are still relatively high. This results in the CC1/2 versus I/σ curve (Fig. 3[link]f) remaining at a relatively large value.

[Figure 3]
Figure 3
Consistency between CC1/2 and I/σ. The left column shows the average merged I/σ binned by resolution for (a) thermolysin, (b) cytochrome, (c) IPNS, (d) MMOH and (e) sMMOox. The blue and pink lines correspond to the Ev11 and MM24 protocols, respectively. The right column shows CC1/2 plotted against I/σ with a gray filled region that corresponds to a theoretical relationship between CC1/2 and I/σ.
[Figure 4]
Figure 4
Consistency between I and σ. Weighted second moments of the acentric reflections for (a) thermolysin, (b) cytochrome, (c) IPNS, (d) MMOH and (e) sMMOox as a metric to evaluate the uncertainty estimates of the error model. According to Wilson's distribution, the second moment of the intensities of an acentric reflection for a nontwinned crystal should be two, as shown by the solid gray line. At high resolutions, where the uncertainty in the intensity becomes comparable to the mean intensity, the second moment should increase from two. This deviation is calculated from the estimated uncertainties and is shown as dotted lines for the Ev11 (blue) and MM24 (pink) protocols. The solid colored lines show the observed second moment calculated from the intensities of the reflection.

Fig. 4[link] shows the weighted second moment of intensities versus resolution and demonstrates consistency between intensities and uncertainties. The second-moment metric quantifies the dispersion of merged, unrelated intensities within a resolution bin. For acentric reflections, the Wilson distribution implies that it should be two, as shown by a solid black line. When the reflection uncertainty becomes comparable to the average value, measurement error begins to increase the expected dispersion from two. This expected deviation, calculated only from the estimated uncertainty after merging, is plotted for Ev11 and MM24 as blue and pink dotted lines, respectively. The observed second moments, calculated only from the intensities after merging, are plotted as solid lines. The expected and observed weighted second moments are calculated in phenix.phaser. Before their calculation, phenix.phaser performs outlier rejection and a correction for anisotropic B factors.

The weighted second-moment plots were a sensitive diagnostic tool for the identification of subtle artifacts in our data processing. Initially, the weighted second-moment plot for the cytochrome data set decreases from two at high resolution. This was due to a systematic underestimation of the background during integration. Reprocessing with a more appropriate integration model brought the observed and expected weighted second moments into agreement. This case demonstrates the utility of weighted second-moment plots as sensitive diagnostic tools. Its usage in macromolecular crystallography should be further explored and included in standard data-reduction software.

For cytochrome, IPNS, MMOH and sMMOox, the MM24 model provides an I/σ that is more consistent with CC1/2 and uncertainties that accurately predict the observed second moment. For thermolysin, neither model is able to produce uncertainties that are consistent with intensities (Fig. 4[link]a) and I/σ remains large enough through the useful resolution range that it cannot be compared with CC1/2 (Fig. 3[link]f). This data set was collected during an early era of XFEL experimentation and was recorded with a CSPAD detector. The XFEL pulse length is of the order of 10 fs, implying an enormous count rate. Developing a detector that could record XFEL pulses was an incredible technical advancement. However, the CSPAD operated in a mix-gain mode that was notoriously difficult to calibrate. We suspect, but cannot prove, that the discrepancies with thermolysin originate in issues with the detector. Fig. 3[link](j) and 4[link](e) both indicate some degree of overestimation of σ for sMMOox, but the MM24 model does make for a significant improvement over the Ev11 model.

Fig. 5[link] shows histograms of the correlation coefficient between the integrated intensities and a scaling reference, determined for each lattice in the data set. For each data set in this study, this correlation coefficient is determined after reflection intensities are scaled to a common reference and corrected for Wilson B factor and partiality. However, partiality correction is not always performed. For those cases, a correlation coefficient calculated after scaling can be used instead. The term [s_{\rm fac}^2 \times s_{\rm add}^2] for MM24 is plotted as a function of the correlation coefficient, and compared with the constant value for Ev11, to demonstrate the degree to which low-correlation lattices are down-weighted by this parameterization. These terms were determined with the t-distribution likelihood with ν allowed to optimize.

[Figure 5]
Figure 5
Histograms of the per-lattice correlation coefficient, CCc, for (a) thermolysin, (b) cytochrome, (c) IPNS, (d) MMOH and (e) sMMOox. The error term, [s_{\rm fac}^2 \times s_{\rm add}^2], is plotted as optimized with the Ev11 and MM24 protocols in blue and pink, respectively. Relative to the Ev11 protocol, the MM24 error model has a higher adjusted error at low correlation.

These results demonstrate that the improved statistical approach of the MM24 protocol provides a more accurate calibration of measurement error than existing error models. The normalized pairwise differences as an optimization target places the focus on the scale of the data without the need for a mean estimate. The maximum-likelihood optimization utilizing a t-distribution provides flexibility to manage data distributed with heavier tails than a normal distribution. For all proteins except thermolysin, anomalous map heights at heavy-atom positions increased significantly. Rwork and Rfree showed significant improvements for cytochrome.

4. Discussion

This paper demonstrates the MM24 approach to error calibration for the merging of serial crystallographic data. It is distinguished from the Ev11 error model in two key ways. Firstly, it acknowledges that not all lattices are measured with the same accuracy and should not be weighted equally when merging. Appropriate error calibration can assign merging weights that reflect this variation in accuracy. MM24 does this by creating a `score', a correlation coefficient in this case, which is then used to assign varying amounts of confidence to each lattice. Secondly, it utilizes robust statistics to optimize the empirical transformation of counting-statistics error to final uncertainty estimates. This is performed through a reformulation of the optimization of the error model that makes fewer and less stringent assumptions about incoming data.

The MM24 algorithm was applied to five data sets. In four cases, cytochrome, IPNS, MMOH, and sMMOox, the MM24 algorithm produced uncertainties such that the agreement between CC1/2 and I/σ and between I and σ improved compared with Ev11. Additionally, the comparisons between ωhjk and its target distribution in Fig. 2[link] show that MM24 acts in a consistent manner. This implies accurate and consistently determined I/σ.

The MM24 algorithm generates I/σ values that are roughly 1.5 times larger than those from the Ev11 algorithm for each data set. If using I/σ = 2 to determine the resolution cutoff of the data set, the cytochrome data set would be cut at 2.05 and 1.75 Å for the Ev11 and MM24 algorithms, respectively. While this paper does not address appropriate uses of σ and I/σ values after merging, it clearly demonstrates that careful consideration of the uncertainty estimates must be performed before their downstream use.

5. Software availability

Instructions for downloading and using cctbx.xfel are available from the cctbx.xfel wiki at https://cci.lbl.gov/xfel. See also Brewster, Young et al. (2019[Brewster, A. S., Young, I. D., Lyubimov, A., Bhowmick, A. & Sauter, N. K. (2019). Comput. Crystallogr. Newsl. 10, 22-39.]) for instructions on using the cctbx.xfel graphical user interface. Documentation for cctbx.xfel.merge is available at https://github.com/cctbx/cctbx_project/tree/master/xfel/merging.

Footnotes

1cctbx.xfel.merge re-implements the older cxi.merge program described by Hattne et al. (2014[Hattne, J., Echols, N., Tran, R., Kern, J., Gildea, R. J., Brewster, A. S., Alonso-Mori, R., Glöckner, C., Hellmich, J., Laksmono, H., Sierra, R. G., Lassalle-Kaiser, B., Lampe, A., Han, G., Gul, S., DiFiore, D., Milathianaki, D., Fry, A. R., Miahnahri, A., White, W. E., Schafer, D. W., Seibert, M. M., Koglin, J. E., Sokaras, D., Weng, T. C., Sellberg, J., Latimer, M. J., Glatzel, P., Zwart, P. H., Grosse-Kunstleve, R. W., Bogan, M. J., Messerschmidt, M., Williams, G. J., Boutet, S., Messinger, J., Zouni, A., Yano, J., Bergmann, U., Yachandra, V. K., Adams, P. D. & Sauter, N. K. (2014). Nat. Methods, 11, 545-548.]), adding multiprocessing, and will be described more fully in an upcoming publication. See https://github.com/cctbx/cctbx_project/tree/master/xfel/merging.

Acknowledgements

We thank Vivek Srinivas, Rohit Kumar and Martin Högbom for the permission to use the unpublished sMMOox data set in this study. We thank Pavel Afonine for discussions on how Phenix utilizes merged reflection uncertainties and help in interpreting refinement results. We thank Randy Read for introducing the weighted second moment, showing us how to calculate it with phenix.phaser and helping with the derivation. We also thank Stephen Keable and Moritz Kretzschmar for testing the model on their many proteins of interest.

Funding information

The US Department of Energy Integrated Computational and Data Infrastructure for Scientific Discovery supported DWMM, DWP and VO via grant DE-SC0022215 to ASB. NKS acknowledges support from NIH grant R35GM151988, as well as R01GM117126, which supported DWMM, DWP and ASB. AL appreciates the support of R01GM108988. JK acknowledges support from NIH grant R01GM126289 and from the Director, Office of Science, Office of Basic Energy Sciences (OBES), Division of Chemical Sciences, Geosciences, and Biosciences (CSGB) of the Department of Energy. DIALS processing is supported by the US DIALS National Resource, NIH grant R24GM154040 to ASB.

References

First citationAbrahams, S. C. & Keve, E. T. (1971). Acta Cryst. A27, 157–165.  CrossRef CAS IUCr Journals Web of Science Google Scholar
First citationAldama, L. A., Dalton, K. M. & Hekstra, D. R. (2023). Acta Cryst. D79, 796–805.  Web of Science CrossRef IUCr Journals Google Scholar
First citationBeilsten-Edmands, J., Winter, G., Gildea, R., Parkhurst, J., Waterman, D. & Evans, G. (2020). Acta Cryst. D76, 385–399.  Web of Science CrossRef IUCr Journals Google Scholar
First citationBevington, P. R. & Robinson, D. K. (2003). Data Reduction and Error Analysis for the Physical Sciences, 3rd ed. New York: McGraw-Hill.  Google Scholar
First citationBorek, D., Minor, W. & Otwinowski, Z. (2003). Acta Cryst. D59, 2031–2038.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationBrewster, A. S., Bhowmick, A., Bolotovsky, R., Mendez, D., Zwart, P. H. & Sauter, N. K. (2019). Acta Cryst. D75, 959–968.  Web of Science CrossRef IUCr Journals Google Scholar
First citationBrewster, A. S., Waterman, D. G., Parkhurst, J. M., Gildea, R. J., Young, I. D., O'Riordan, L. J., Yano, J., Winter, G., Evans, G. & Sauter, N. K. (2018). Acta Cryst. D74, 877–894.  Web of Science CrossRef IUCr Journals Google Scholar
First citationBrewster, A. S., Young, I. D., Lyubimov, A., Bhowmick, A. & Sauter, N. K. (2019). Comput. Crystallogr. Newsl. 10, 22–39.  Google Scholar
First citationBusing, W. R. & Levy, H. A. (1957). J. Chem. Phys. 26, 563–568.  CrossRef ICSD CAS Web of Science Google Scholar
First citationChapman, H. N., Fromme, P., Barty, A., White, T. A., Kirian, R. A., Aquila, A., Hunter, M. S., Schulz, J., DePonte, D. P., Weierstall, U., Doak, R. B., Maia, F. R. N. C., Martin, A. V., Schlichting, I., Lomb, L., Coppola, N., Shoeman, R. L., Epp, S. W., Hartmann, R., Rolles, D., Rudenko, A., Foucar, L., Kimmel, N., Weidenspointner, G., Holl, P., Liang, M., Barthelmess, M., Caleman, C., Boutet, S., Bogan, M. J., Krzywinski, J., Bostedt, C., Bajt, S., Gumprecht, L., Rudek, B., Erk, B., Schmidt, C., Hömke, A., Reich, C., Pietschner, D., Strüder, L., Hauser, G., Gorke, H., Ullrich, J., Herrmann, S., Schaller, G., Schopper, F., Soltau, H., Kühnel, K.-U., Messerschmidt, M., Bozek, J. D., Hau-Riege, S. P., Frank, M., Hampton, C. Y., Sierra, R. G., Starodub, D., Williams, G. J., Hajdu, J., Timneanu, N., Seibert, M. M., Andreasson, J., Rocker, A., Jönsson, O., Svenda, M., Stern, S., Nass, K., Andritschke, R., Schröter, C.-D., Krasniqi, F., Bott, M., Schmidt, K. E., Wang, X., Grotjohann, I., Holton, J. M., Barends, T. R. M., Neutze, R., Marchesini, S., Fromme, R., Schorb, S., Rupp, D., Adolph, M., Gorkhover, T., Andersson, I., Hirsemann, H., Potdevin, G., Graafsma, H., Nilsson, B. & Spence, J. C. H. (2011). Nature, 470, 73–77.  Web of Science CrossRef CAS PubMed Google Scholar
First citationChen, Y., Meng, X. L., Wang, X., van Dyk, D. A., Marshall, H. L. & Kashyap, V. L. (2019). J. Am. Stat. Assoc. 114, 1018–1037.  CrossRef CAS Google Scholar
First citationDalton, K. M., Greisman, J. B. & Hekstra, D. R. (2022). Nat. Commun. 13, 7764.  Web of Science CrossRef PubMed Google Scholar
First citationDiederichs, K. (2010). Acta Cryst. D66, 733–740.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationEvans, P. (2006). Acta Cryst. D62, 72–82.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationEvans, P. R. (2011). Acta Cryst. D67, 282–292.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationEvans, P. R. & Murshudov, G. N. (2013). Acta Cryst. D69, 1204–1214.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationFrench, S. & Wilson, K. (1978). Acta Cryst. A34, 517–525.  CrossRef CAS IUCr Journals Web of Science Google Scholar
First citationGorel, A., Schlichting, I. & Barends, T. R. M. (2021). IUCrJ, 8, 532–543.  Web of Science CrossRef CAS PubMed IUCr Journals Google Scholar
First citationGreisman, J. B., Dalton, K. M. & Hekstra, D. R. (2021). J. Appl. Cryst. 54, 1521–1529.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationHadian-Jazi, M., Messerschmidt, M., Darmanin, C., Giewekemeyer, K., Mancuso, A. P. & Abbey, B. (2017). J. Appl. Cryst. 50, 1705–1715.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationHattne, J., Echols, N., Tran, R., Kern, J., Gildea, R. J., Brewster, A. S., Alonso-Mori, R., Glöckner, C., Hellmich, J., Laksmono, H., Sierra, R. G., Lassalle-Kaiser, B., Lampe, A., Han, G., Gul, S., DiFiore, D., Milathianaki, D., Fry, A. R., Miahnahri, A., White, W. E., Schafer, D. W., Seibert, M. M., Koglin, J. E., Sokaras, D., Weng, T. C., Sellberg, J., Latimer, M. J., Glatzel, P., Zwart, P. H., Grosse-Kunstleve, R. W., Bogan, M. J., Messerschmidt, M., Williams, G. J., Boutet, S., Messinger, J., Zouni, A., Yano, J., Bergmann, U., Yachandra, V. K., Adams, P. D. & Sauter, N. K. (2014). Nat. Methods, 11, 545–548.  Web of Science CrossRef CAS PubMed Google Scholar
First citationHolton, J. M., Classen, S., Frankel, K. A. & Tainer, J. A. (2014). FEBS J. 281, 4046–4060.  Web of Science CrossRef CAS PubMed Google Scholar
First citationKabsch, W. (2010a). Acta Cryst. D66, 125–132.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationKabsch, W. (2010b). Acta Cryst. D66, 133–144.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationKarplus, P. A. & Diederichs, K. (2015). Curr. Opin. Struct. Biol. 34, 60–68.  Web of Science CrossRef CAS PubMed Google Scholar
First citationKern, J., Tran, R., Alonso-Mori, R., Koroidov, S., Echols, N., Hattne, J., Ibrahim, M., Gul, S., Laksmono, H., Sierra, R. G., Gildea, R. J., Han, G., Hellmich, J., Lassalle-Kaiser, B., Chatterjee, R., Brewster, A. S., Stan, C. A., Glöckner, C., Lampe, A., DiFiore, D., Milathianaki, D., Fry, A. R., Seibert, M. M., Koglin, J. E., Gallo, E., Uhlig, J., Sokaras, D., Weng, T. C., Zwart, P. H., Skinner, D. E., Bogan, M. J., Messerschmidt, M., Glatzel, P., Williams, G. J., Boutet, S., Adams, P. D., Zouni, A., Messinger, J., Sauter, N. K., Bergmann, U., Yano, J. & Yachandra, V. K. (2014). Nat. Commun. 5, 4371.  Web of Science CrossRef PubMed Google Scholar
First citationKhouchen, M., Klar, P. B., Chintakindi, H., Suresh, A. & Palatinus, L. (2023). Acta Cryst. A79, 427–439.  Web of Science CSD CrossRef ICSD IUCr Journals Google Scholar
First citationKuleshov, V., Fenner, N. & Ermon, S. (2018). Proc. Mach. Learn. Res. 80, 2796–2804.  Google Scholar
First citationLange, K. L., Little, R. J. A. & Taylor, J. M. G. (1989). J. Am. Stat. Assoc. 84, 881–896.  CrossRef Web of Science Google Scholar
First citationLeslie, A. G. W. (1999). Acta Cryst. D55, 1696–1702.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationLevi, D., Gispan, L., Giladi, N. & Fetaya, E. (2022). Sensors, 22, 5540.  CrossRef PubMed Google Scholar
First citationLunin, V. Y., Afonine, P. V. & Urzhumtsev, A. G. (2002). Acta Cryst. A58, 270–282.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationMcCandlish, L. E., Stout, G. H. & Andrews, L. C. (1975). Acta Cryst. A31, 245–249.  CrossRef CAS IUCr Journals Web of Science Google Scholar
First citationMcCoy, A. J., Grosse-Kunstleve, R. W., Adams, P. D., Winn, M. D., Storoni, L. C. & Read, R. J. (2007). J. Appl. Cryst. 40, 658–674.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationOtwinowski, Z., Minor, W., Borek, D. & Cymborowski, M. (2012). International Tables for Crystallography, Vol. F, 2nd online ed., edited by E. Arnold, D. M. Himmel & M. G. Rossmann, pp. 282–295. Chester: International Union of Crystallography.  Google Scholar
First citationPalmer, G., Du, S., Politowicz, A., Emory, J. P., Yang, X., Gautam, A., Gupta, G., Li, Z., Jacobs, R. & Morgan, D. (2022). npj Comput. Mater. 8, 115.  CrossRef Google Scholar
First citationParkhurst, J. M., Winter, G., Waterman, D. G., Fuentes-Montero, L., Gildea, R. J., Murshudov, G. N. & Evans, G. (2016). J. Appl. Cryst. 49, 1912–1921.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationPossolo, A. & Iyer, H. K. (2017). Rev. Sci. Instrum. 88, 011301.  CrossRef PubMed Google Scholar
First citationRabe, P., Kamps, J. J. A. G., Sutherlin, K. D., Linyard, J. D. S., Aller, P., Pham, C. C., Makita, H., Clifton, I., McDonough, M. A., Leissing, T. M., Shutin, D., Lang, P. A., Butryn, A., Brem, J., Gul, S., Fuller, F. D., Kim, I. S., Cheah, M. H., Fransson, T., Bhowmick, A., Young, I. D., O'Riordan, L., Brewster, A. S., Pettinati, I., Doyle, M., Joti, Y., Owada, S., Tono, K., Batyuk, A., Hunter, M. S., Alonso-Mori, R., Bergmann, U., Owen, R. L., Sauter, N. K., Claridge, T. D. W., Robinson, C. V., Yachandra, V. K., Yano, J., Kern, J. F., Orville, A. M. & Schofield, C. J. (2021). Sci. Adv. 7, eabh0250.  CrossRef PubMed Google Scholar
First citationRead, R. J. (1999). Acta Cryst. D55, 1759–1764.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationRead, R. J. & McCoy, A. J. (2016). Acta Cryst. D72, 375–387.  Web of Science CrossRef IUCr Journals Google Scholar
First citationRead, R. J., Oeffner, R. D. & McCoy, A. J. (2020). Acta Cryst. D76, 238–247.  Web of Science CrossRef IUCr Journals Google Scholar
First citationRousseeuw, P. J. & Croux, C. (1993). J. Am. Stat. Assoc. 88, 1273–1283.  CrossRef Google Scholar
First citationSadri, A., Hadian-Jazi, M., Yefanov, O., Galchenkova, M., Kirkwood, H., Mills, G., Sikorski, M., Letrun, R., de Wijn, R., Vakili, M., Oberthuer, D., Komadina, D., Brehm, W., Mancuso, A. P., Carnis, J., Gelisio, L. & Chapman, H. N. (2022). J. Appl. Cryst. 55, 1549–1561.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationSauter, N. K. (2015). J. Synchrotron Rad. 22, 239–248.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationSauter, N. K. & Zwart, P. H. (2009). Acta Cryst. D65, 553–559.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationSharma, A., Johansson, L., Dunevall, E., Wahlgren, W. Y., Neutze, R. & Katona, G. (2017). Acta Cryst. A73, 93–101.  Web of Science CrossRef IUCr Journals Google Scholar
First citationSrinivas, V., Banerjee, R., Lebrette, H., Jones, J. C., Aurelius, O., Kim, I. S., Pham, C. C., Gul, S., Sutherlin, K. D., Bhowmick, A., John, J., Bozkurt, E., Fransson, T., Aller, P., Butryn, A., Bogacz, I., Simon, P., Keable, S., Britz, A., Tono, K., Kim, K. S., Park, S. Y., Lee, S. J., Park, J., Alonso-Mori, R., Fuller, F. D., Batyuk, A., Brewster, A. S., Bergmann, U., Sauter, N. K., Orville, A. M., Yachandra, V. K., Yano, J., Lipscomb, J. D., Kern, J. & Högbom, M. (2020). J. Am. Chem. Soc. 142, 14249–14266.  CrossRef CAS PubMed Google Scholar
First citationStanley, E. (1972). J. Appl. Cryst. 5, 191–194.  CrossRef CAS IUCr Journals Web of Science Google Scholar
First citationVannitsem, S., Bremnes, J. B., Demaeyer, J., Evans, G. R., Flowerdew, J., Hemri, S., Lerch, S., Roberts, N., Theis, S., Atencia, A., Ben Bouallègue, Z., Bhend, J., Dabernig, M., De Cruz, L., Hieta, L., Mestre, O., Moret, L., Plenković, I. O., Schmeits, M., Taillardat, M., Van den Bergh, J., Van Schaeybroeck, B., Whan, K. & Ylhaisi, J. (2021). Bull. Am. Meteorol. Soc. 102, E681–E699.  CrossRef Google Scholar
First citationWhite, T. A., Kirian, R. A., Martin, A. V., Aquila, A., Nass, K., Barty, A. & Chapman, H. N. (2012). J. Appl. Cryst. 45, 335–341.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationWilson, A. J. C. (1949). Acta Cryst. 2, 318–321.  CrossRef IUCr Journals Web of Science Google Scholar
First citationWinter, G. (2010). J. Appl. Cryst. 43, 186–190.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationZhu, C., Byrd, R. H., Lu, P. & Nocedal, J. (1997). ACM Trans. Math. Softw. 23, 550–560.  Web of Science CrossRef 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 logoSTRUCTURAL
BIOLOGY
ISSN: 2059-7983
Follow Acta Cryst. D
Sign up for e-alerts
Follow Acta Cryst. on Twitter
Follow us on facebook
Sign up for RSS feeds