Abstract
Most x-ray sources are inherently polychromatic. Polychromatic (“pink”) x-rays provide an efficient way to conduct diffraction experiments as many more photons can be used and large regions of reciprocal space can be probed without sample rotation during exposure—ideal conditions for time-resolved applications. Analysis of such data is complicated, however, causing most x-ray facilities to discard >99% of x-ray photons to obtain monochromatic data. Key challenges in analyzing polychromatic diffraction data include lattice searching, indexing and wavelength assignment, correction of measured intensities for wavelength-dependent effects, and deconvolution of harmonics. We recently described an algorithm, Careless, that can perform harmonic deconvolution and correct measured intensities for variation in wavelength when presented with integrated diffraction intensities and assigned wavelengths. Here, we present Laue-DIALS, an open-source software pipeline that indexes and integrates polychromatic diffraction data. Laue-DIALS is based on the dxtbx toolbox, which supports the DIALS software commonly used to process monochromatic data. As such, Laue-DIALS provides many of the same advantages: an open-source, modular, and extensible architecture, providing a robust basis for future development. We present benchmark results showing that Laue-DIALS, together with Careless, provides a suitable approach to the analysis of polychromatic diffraction data, including for time-resolved applications.
I. INTRODUCTION
Most x-ray generation mechanisms inherently yield polychromatic (“pink”) x-rays, with the energies of incident photons often varying by several percent (Table I). Historically, analysis of such data has been complicated, leading many x-ray facilities to discard >99% of x-ray photons to obtain monochromatic data. Although this simplifies analysis, pink x-ray diffraction can be a necessary stage in the deployment of new x-ray generation technologies that do not yet provide sufficient flux for successful monochromatic data collection. More fundamentally, polychromatic x-rays cover significant regions of reciprocal space while recording full rather than partial diffraction intensities without the need for sample rotation during exposure, in contrast with monochromatic exposures. This opens up applications in which samples cannot be rotated during exposure, for instance, with short x-ray pulses, while also increasing the number of incident photons. For these reasons, pulsed polychromatic x-rays are ideally suited to the study of the dynamics of biological macromolecules—a major frontier in structural biology.
TABLE I.
Source | Typical bandwidth ( or , FWHM) (%) | Typical pulse duration |
---|---|---|
Si 111 monochromator | <0.01 | Continuous |
Cu anode (K ) with multilayer mirrorsa | 5 | Continuous |
Synchrotron multilayer monochromators (CHESS)54 | 0.6–1.3 | Continuous |
Synchrotron undulator (ESRF ID-09)55 | 1–3 | ps |
Synchrotron dual undulators (BioCARS)56 | 5.5 | ps |
SASE at XFELs57 | 0.1–0.3 | fs |
Pink SSX (Pohang)58 | 1.2 | fs |
SwissFEL pink59 | 1.8–2.2 | fs |
Inverse Compton sources (MuCLS)60 | 3 | Continuous |
Compact femtosecond Compton sources (CXLS)61 | 0.1–5 | fs |
Compact x-ray light sourceb | 3, 10 | fs |
Betatron source62 | <100 | fs |
Based on personal communication with Dr. J. Graf, Oncoatec (Bruker).
Based on personal communication with Dr. W. G. Graves, Arizona State University.
Such diffraction images collected without sample rotation are known as stills. The analysis of monochromatic stills is particularly fraught by the partiality problem. When samples are rotated [Fig. 1(a)], the complete intensity of reflections can be collected. Without rotation, only a small part of the intensity of reflections is observed [Fig. 1(b)]. In addition, many fewer reflections are typically observed. Several analytical approaches have been proposed to alleviate the partiality problem, but none are accurate enough to remove the requirement for large numbers of diffraction patterns to achieve accurate structure factor amplitudes.
The collection of stills by exposure of crystals to polychromatic x-rays is known as the Laue method.1 As illustrated in Fig. 1(c), the Laue method largely eliminates the partiality problem: most reflections will be observed in full, with only the need to correct for the variation in diffracted intensity with wavelength. Many applications benefit, including synchrotron serial and time-resolved crystallography, and experiments at x-ray free electron laser (XFEL) facilities. The latter experiments are usually based on the diffract-before-destroy principle as individual femtosecond XFEL exposures often exceed the radiation damage dose limit by orders of magnitude.2,3 Such XFEL experiments have enabled determination of structures from sub-micron-sized crystals4 and of damage-free structures of metalloproteins,5 as well as a wealth of time-resolved studies.6–11
The Laue method is, in principle, an ideal approach for any crystallographic technique requiring the collection of stills. Despite the attractive properties of the Laue method, however, it has found limited adoption outside the synchrotron time-resolved crystallography studies. There are a few reasons for this. First, the appearance of Laue diffraction patterns is highly sensitive to crystal mosaicity (Fig. 2, top row), complicating lattice search and integration of the intensity per spot. Second, the options for processing macromolecular Laue diffraction patterns are limited and do not readily permit incorporation of new algorithms for performing different aspects of the data reduction pipeline, such as new indexing and integration algorithms. For instance, Precognition (Renz Research, Inc.) is proprietary, closed-source software, while the Daresbury Laue suite12,13 does not readily compile on modern hardware or interface with scientific Python.
Figure 1 also illustrates several of the difficulties in interpreting Laue diffraction patterns. In the monochromatic case, each reflection can be mapped fairly accurately to the reciprocal lattice, as the lengths of the and vectors are known [the inverse of the wavelength; panels (a) and (b)]. For Laue diffraction [Fig. 1(c)], different reflections lead to diffraction at the same time but for different x-ray wavelengths (evident as variation in the length of the and vectors). As a consequence, the mapping is not unique, as the wavelength is not observed (except in neutron time-of-flight Laue diffraction). This complicates crystal lattice determination, assignment of Miller indices, and inference of the wavelength of each observed diffraction spot. In addition, observed intensities need to be corrected (“normalized”) for the dependence of incident flux, absorption, and diffraction on the wavelengths of the x-rays for which the diffraction condition is met (along with corrections for other effects such as exposed crystal volume and radiation damage). Finally, reflections in the same direction of the vector [marked by arrowheads in Fig. 1(c)] will be coincident on the detector—this occurs for reflections that lie on the same central ray (lines passing through the origin of the reciprocal lattice). Such diffraction spots with contributions from multiple reciprocal lattice points are known as harmonics.
Here, we introduce Laue-DIALS: an open-source, extensible, Python-based platform for the reduction of Laue data to integrated intensities. At present, the package enables the processing of fixed-target pseudo-rotation series data—conventional single-crystal Laue data collected as a set of stills at a series of evenly-spaced angles. In doing so, Laue-DIALS addresses lattice determination, assignment of indices and peak wavelengths per reflection, geometry refinement, and integration. Importantly, Laue-DIALS provides a general platform for further development and deployment of novel algorithms, including those based on machine learning—a natural pairing given the spectral complexity of Laue diffraction patterns. Laue-DIALS naturally interfaces with the program Careless, an open-source, Python-based software.14 Careless performs simultaneous scaling and merging of x-ray diffraction data using forward probabilistic modeling of data formation and addresses wavelength normalization and the deconvolution of harmonic observations.
Laue-DIALS builds on DIALS (Diffraction Integration for Advanced Light Sources).15 DIALS is an open-source toolkit for working with diffraction data. Its components include a library (dxtbx16) that is able to read images from the vast majority of known x-ray sources and to represent beamline geometry using programmatic, parameterized models (such as beam, detector, crystal, goniometer, and scan). DIALS also includes a set of routines for searching images for bright Bragg signal (spot finding), determining the crystal orientation and unit cell parameters from the spot locations (indexing), refinement of crystallographic models,17 prediction of spot centroid locations, and integration of pixels to create summed measurements of Bragg reflections. DIALS was developed from the ground up to be flexible, extensible, and reusable, with a toolkit approach to its libraries to support modification and addition.18 Critically, it was based on algorithms developed and kindly published by crystallographers (such as XDS19 and MOSFLM20) and as such is robust in use cases ranging from standard rotation crystallography, to serial crystallography,21 to micro-electron diffraction.22 DIALS is used at many beamlines for routine data processing, both in manual and automated pipelines to process hundreds of thousands of datasets per year.
DIALS originated with the monochromatic diffraction experiment in mind, but direct support of polychromatic sources (including x-ray and neutron sources) is in development. In the meantime, this work uses DIALS for reading in Laue data, spot finding, generating an initial indexing solution, and refinement of experimental geometry. Afterward, the new code described here is used for Laue specific steps, such as wavelength assignment and normalization.
II. THE LAUE-DIALS DATA REDUCTION WORKFLOW
We illustrate the typical workflow for processing Laue diffraction data using Laue-DIALS in Fig. 3.
A. Importing data
The current Laue-DIALS analysis pipeline begins with the application of monochromatic algorithms present in DIALS to generate an initial estimate of the experimental geometry. Experimental data are imported using dials.import, storing the initial parameter values of the beam, detector, image set, and goniometer models in a so-called experiment (.expt) file. At the software level, these parameterized models take the form of objects as described by Parkurst et al. 16 At this stage, a pixel mask can be provided that will be applied automatically at all subsequent steps, or such a mask can be provided at individual subsequent steps to mask panel gaps, dead panels, beam stop shadows, etc. We advise users to construct masks using the DIALS image viewer to suit their use case.
B. Spot finding, indexing, and initial refinement
The next Laue-DIALS commands are thin wrappers of their DIALS counterparts. These commands override certain parameters with appropriate defaults for polychromatic data. The overridden parameters for each of these commands are enumerated in Table II. For spot finding, we use a two-dimensional (2D) spot finder in DIALS to locate reflection centroids on each image individually. Although we do not override spot finding gain or masking, these parameters are critical for success, and we recommend that the user use the DIALS image viewer to assess if spots have been identified appropriately, neither leaving too many clear reflections unidentified nor marking pixel noise as reflections.
TABLE II.
Laue-DIALS | DIALS | Overridden parameters |
---|---|---|
laue.find_spots | dials.find_spots | spotfinder.force_2d=True |
output.shoeboxes=False | ||
laue.index | dials.index | indexing.refinement_protocol.mode=repredict_only |
refinement.parameterisation.beam.fix=all | ||
refinement.parameterisation.detector.fix=all | ||
refinement.parameterisation.goniometer.fix=all | ||
refinement.reflections.outlier.algorithm=tukey | ||
refinement.reflections.outlier.tukey.iqr_multiplier=0 | ||
refinement.reflections.minimum_number_of_reflections=1 | ||
dials.refine | refinement.parameterisation.beam.fix=all | |
refinement.parameterisation.crystal=cell | ||
refinement.parameterisation.detector.fix=orientation | ||
refinement.parameterisation.goniometer.fix=None | ||
refinement.parameterisation.scan_varying=True | ||
refinement.reflections.outlier.algorithm=tukey | ||
refinement.reflections.outlier.tukey.iqr_multiplier=0 | ||
refinement.reflections.minimum_number_of_reflections=1 | ||
laue.refine | dials.refine | refinement.refinery.engine=SparseLevMar |
refinement.reflections.weighting_strategy.override=stills | ||
refinement.reflections.outlier.nproc=1 | ||
refinement.reflections.outlier.minimum_number_of_reflections=1 | ||
refinement.reflections.outlier.algorithm=mcd | ||
refinement.reflections.outlier.separate_images=True | ||
refinement.parameterisation.beam.fix=*in_spindle_plane *out_spindle_plane | ||
refinement.parameterisation.crystal.unit_cell.fix_list=real_space_a | ||
refinement.parameterisation.detector.fix=distance | ||
refinement.parameterisation.auto_reduction.action=fix | ||
refinement.parameterisation.auto_reduction.min_nref_per_parameter=1 | ||
refinement.parameterisation.spherical_relp_model=True | ||
output.experiments=poly_refined.expt | ||
output.reflections=poly_refined.refl | ||
output.log=laue.poly_refined.log |
To index the reflections found by spot finding, we apply the FFT3D algorithm implemented in DIALS15 at a nominal wavelength matching either the peak spectral intensity or midpoint of the beam spectrum. All available images are used for indexing. This algorithm determines the unit cell and orientation for the crystal, assigns Miller indices to a subset of the reflections (typically 10%–25%), and assigns these reflections to the nominal wavelength. At this point, this subset may correspond to a true wavelength that differs from the specified wavelength, causing a multiplicative shift in the inferred unit cell dimensions–this can be accounted for later (see below). If the unit cell and space group of the crystal are known, those can be provided at this indexing step to improve the initial estimate. By default, we override the input parameters, fixing all beam, detector, and goniometer parameters, allowing only for the crystal parameters to be estimated. Tukey outlier rejection23 is used to disregard reflections that do not approximately fit an indexed experimental model during iterations of indexing. An optional iteration of geometric refinement can also be applied, which takes one of two forms: scan-static or scan-varying. For experiments where geometric parameters are expected to vary smoothly across the dataset, a round of scan-varying refinement can improve the accuracy of the solution by allowing variation of geometric parameters across images in a given dataset. For experiments where variation of parameters is unknown or expected not to vary, the scan-static option allows for a single universal experimental geometry to be applied equally to all images. This initial geometric refinement in Laue-DIALS still fixes all aspects of the beam, orientation of the detector, and unit cell of the indexed crystal (but not orientation), but allows for free variation of the goniometer parameters. Tukey outlier rejection is also applied in this stage. Any of the parameters listed here can be overridden by the user, including those that Laue-DIALS overrides itself.
After obtaining initial estimates of the properties and orientation of the crystal, the beam, the detector, and the goniometer, we split the sequence(s) of images into stills by running laue.sequence_to_stills, with distinct geometric objects (crystal, goniometer, beam, detector objects) associated with each diffraction image. This step informs downstream programs that the images are stills rather than rotation series data. Although Laue-DIALS currently only supports stills rotation series data (where all data are indexed jointly), we anticipate that this choice will enable the processing of pink serial crystallography data in the near future (where each still represents a random crystal orientation and needs to be indexed independently), with work under way to implement the polychromatic indexing algorithm PinkIndexer24 natively into DIALS.
C. Wavelength assignment
To transition from a monochromatic model of the experiment to a polychromatic model, we wrote a new program called laue.optimize_indexing, which takes the stills and relaxes the monochromatic constraint to allow for wavelengths anywhere between a user-provided minimum and maximum wavelength. The algorithm iteratively assigns Miller indices and rotates the crystal orientation matrix for the still image to capture as many reflections as possible. Outlier rejection is performed in each iteration by applying the minimum covariance determinant (MCD) algorithm,25 and the next iteration is performed on the set of inliers calculated in this way. This allows for correcting slight errors in the rotation, but may fail to converge if given large errors such as might be introduced by crystal slippage. Miller indices are assigned by solving a linear sum assignment problem using a cost matrix consisting of the angles between observed and predicted scattering vectors, and wavelengths are determined by the magnitude of the reflection's scattering vector. The linear sum assignment solver is implemented in SciPy26 using the algorithm described by Crouse.27 Rotation updates are estimated by solving the orthogonal Procrustes problem using the algorithm described by Schönemann28 also implemented in SciPy.26 The inferred unit cell of the crystal is kept constant and is taken from the initial monochromatic estimate. The user may choose to override the initial estimated unit cell with a set of known values, which can correct for errors in the initial estimate resulting from the initial monochromatic lattice search. The output of this program is then a set of DIALS-compatible files with individual wavelengths for each reflection and a set of optimized crystal orientation matrices for each still image.
D. Geometric refinement
With the polychromatic indexing solution output by laue.optimize_indexing, we can now refine the experimental geometry using the full set of indexed reflections. Laue-DIALS allows for parallel refinement of images. The refinement call, laue.refine, wraps around dials.refine and overrides some parameters to be appropriate for pink data (Table II). In particular, the detector distance and one of the unit cell axes are fixed in order to allow for varying the wavelengths assigned to reflections. If the user wishes to refine either the detector distance or unit cell volume, then the beam wavelengths need to be fixed to converge on a solution. laue.refine then generates a set of DIALS beam objects—one per reflection—all with the same direction, but with individual wavelengths for each reflection. To minimize the memory footprint, these beam objects are generated per image being processed. Once refined, the wavelengths are entered into the reflection data (in the so-called .refl file), and the respective beam objects deleted. Memory limitations can then be handled by reducing the number of parallel processes running, which reduces the number of beam objects instantiated at any particular time. With the parameters supplied, refinement is then run on each still image independently, using the sparse LevMar refinery engine in DIALS21 and applying MCD outlier rejection to each still between refinement macrocycles. Spherical reciprocal lattice point models supported in DIALS via the spherical_relp_model option are used to generate scattering vectors consistent with the vector direction in laue.predict, instead of the default direction that incorporates an Ewald offset. The output files then completely describe an experimental geometry with wavelengths for each observed reflection. Residuals between observed data and predicted reflection centroids are recorded and RMSDs can be visualized using laue.compute_rmsds.
E. Spot prediction
Given a refined experimental geometry, we can now predict the locations of all reflections satisfying the diffraction condition for an image, regardless of whether they were detected during spot finding. To do this, we first generate a set of Miller indices that lie within the envelope bounded by Ewald spheres given by the minimum and maximum wavelengths provided by the user, as well as a maximum resolution ( ). This set of feasible reflections is then further reduced by filtering harmonics to only the minimal Miller index (for the corresponding reciprocal lattice point closest to the origin of the reciprocal lattice). For the remaining set, wavelengths are then assigned based on the Ewald sphere the index lies on and then a set of scattered ( ) vectors are predicted. Those vectors that point toward the detector are kept.
In order to maximize the accuracy of the predicted reflections, a resolution-dependent bandpass29 is then used to filter out improbable reflections based on user-provided tolerance. Probable reflections lie in a region of reciprocal space extending to higher resolution in a spectral intensity-dependent manner as illustrated in Fig. 4(a). To determine this region, a Gaussian kernel density estimator (KDE) from scipy.stats.gaussian_kde is built and trained on the set of resolution and wavelength data corresponding to the observed reflections. To obtain a suitable space for the resolution of each reflection, the resolution is transformed to the square of the distance of each reciprocal lattice point to the origin of the reciprocal lattice (that is, ), yielding the transformed space shown in Figs. 4(b) and 4(c). Harmonic reflections are removed from the training data for the KDE. Treating the resulting smoothed histogram as a probability density function, the full set of feasible reflections are then assigned probabilities based on their resolution and wavelength, with those having a probability lower than the user-provided threshold being removed from the dataset—any observation outside of a probability contour in Fig. 4(b). The program then outputs a file containing the reflection data for both strong and weak reflections on the image, with observed spots being marked as” strong” in the reflection table.
F. Integration
To determine integrated intensities, we use laue.integrate, which implements a variable elliptical integrator similar to the approach described by Ren and Moffat:29 For each strong reflection, an elliptical profile is built which includes a foreground and background mask for the reflection. Weak reflections then have their profiles built by using a k-nearest neighbor approach, averaging the profiles of nearby strong reflections. In the case of overlapping reflections, the integrator assigns all pixels to the nearest reflection centroid for profile estimation and fitting, which avoids integrating the same pixel multiple times. A radius argument can be overridden to only integrate pixels within a given radius of the reflection centroid. The intensities for each reflection are then determined using a summation routine applied to each profile to obtain a set of integrated intensities. The output MTZ file then contains the image numbers, Miller indices, reflection centroids, wavelengths, integrated intensities (both background and foreground), and estimates of the uncertainty of each reflection intensity based on propagating the counting error from each pixel used in summation.
G. Scaling and merging
The integrated intensities obtained from Laue-DIALS still need to be corrected for variations in the wavelengths giving rise to each reflection (because incident flux, absorption, and scattering depend on wavelength), for the overlap of harmonics, and for other factors not specific to Laue diffraction, such as radiation damage, beam polarization, and variations in diffracting volume during rotation.30 Here, we infer and apply the relevant correction factors (or scale factors) using the program Careless, which performs simultaneous inference of the scales of reflections and their merged structure factor amplitudes.14
III. RESULTS
We illustrate the current capabilities of Laue-DIALS using three examples. Detailed implementations of these examples are provided on the Laue-DIALS GitHub page (https://rs-station.github.io/laue-dials/) in the form of didactic Jupyter notebooks accompanying the online documentation. An archive of these tutorials for version 0.4 of Laue-DIALS is available in the accompanying Zenodo deposition (https://zenodo.org/records/12761162), which includes a script for downloading data from SBGrid. Typical run times are shown in Table III.
TABLE III.
Dataset | Number of images | Number of CPUs | Indexing through refinement | Spot prediction | Integration | Careless merging |
---|---|---|---|---|---|---|
Simulated DHFR | 180 | 4/2 | 12:52 | 8:10 | 1:06:67 | 39:00 |
Anomalous HEWL | 3049 | 8/48/64 | 3:07:11 | 6:18:56 | 1:15:37 | 1:21:53 |
PDZ2 | 1064 | 4/8/1 | 2:35 | 0:17 | 15:23 | 20:00 |
A. Processing of simulated ground-truth data
To investigate the accuracy of Laue-DIALS, we created several simulated datasets of diffraction from a crystal of dihydrofolate reductase (DHFR), starting from a deposited dataset (PDB ID 7LVC). The simulations were performed using the program nanoBragg31–33 as part of the Computational Crystallography Toolbox.34 With nanoBragg, forward diffraction (the pixel values, given the structure factors and experimental parameters) was calculated according to the classic kinematical theory.35 To investigate the sensitivity of Laue-DIALS with respect to various experimental parameters, we simulated 11 pseudo-rotation scans, for each of which we modeled a unique combination of beam divergence, spectral bandwidth, and crystal mosaicity (see Table IV). Each pseudo-rotation scan comprised 180 still exposures, and the crystal was rotated by 1° about a fixed axis between exposures, for a total of 180° per scan. Synthetic measurements were recorded in a Rayonix camera format and included realistic background and readout error. Close-ups of representative simulated diffraction images are shown in Fig. 2.
TABLE IV.
Mosaicity (°) | Divergence (°) | Bandwidth (FWHM %) | Completeness (%) |
---|---|---|---|
0.1 | 0.1 | BioCARS | 98.5 |
0.05 | 0.1 | BioCARS | 99.1 |
0.25 | 0.1 | BioCARS | 98.3 |
0.5 | 0.1 | BioCARS | 83.1 |
0.1 | 0.0001 | BioCARS | 99.0 |
0.1 | 0.001 | BioCARS | 99.4 |
0.1 | 0.01 | BioCARS | 99.0 |
0.1 | 1 | BioCARS | 98.4 |
0.1 | 0.1 | 0.5 | 66.8 |
0.1 | 0.1 | 1 | 81.6 |
0.1 | 0.1 | 2.2 | 96.3 |
0.1 | 0.1 | 5 | 98.2 |
The simulated data were processed through the Laue-DIALS pipeline illustrated in Fig. 3 and integrated intensities were then merged in Careless (see Sec. V). We first assessed indexing accuracy. As expected, many more reflections are indexed after polychromatic indexing (laue.optimize_indexing) and polychromatic geometry refinement (using laue.refine) than after initial monochromatic indexing, with a concomitant increase in accuracy (Table V). We find that after monochromatic refinement, off-by-one errors on Miller indices are the dominant errors. Polychromatic indexing largely eliminates such errors (compare rows 1 and 2 of Table V). After polychromatic geometry refinement, the primary sources of misindexing are harmonic reflections. Of the remaining 163 misindexed reflections, 125 (75%) are assigned to harmonics of the correct Miller index. Since Careless considers all harmonics of the assigned Miller index compatible with the wavelength spectrum, such errors will be corrected for in downstream processing. The causes of misindexing of the remaining 0.21% of reflections remain under investigation.
TABLE V.
File | Total reflections | Correctly indexed reflections |
---|---|---|
monochromatic.refl | 10 958 | 10 505 (95.87%) |
optimized.refl | 21 282 | 21 088 (99.09%) |
poly_refined.refl | 17 722 | 17 559 (99.08%) |
Since the beam is polychromatic, there remains an overall error in the inferred unit cell dimensions. As a consequence, the assigned wavelengths can differ from true wavelengths by a multiplicative error, showing in Fig. 5 as a systematic deviation from the diagonal. Once accounted for using a scalar correction (blue lines), the assigned wavelengths of 99.91% of reflections in the reference dataset coincide with the true wavelengths with an error of less than 0.001 Å. Significant rates of failure only occur for highly mosaic crystals (Fig. 5), where outlier reflections' wavelength errors are likely due to misindexing of harmonic reflections. Consistent with these observations, we find that crystal mosaicity is the main factor impacting merging statistics (Fig. 6). Mosaicities higher than 0.1° are uncommon at room temperature but can be induced by freezing of laser- or electric field perturbations or sample handling.
Finally, the simulated data make clear the benefit of treating polychromatic data as polychromatic: If we were to only use a monochromatic nominal wavelength for predicting centroids compared to our polychromatic method, large inaccuracies in spot centroid position would result. In Fig. 7, we use an adapted form of cctbx.xfel.detector_residuals to plot spot centroid residuals within 64 regions (virtual panels) of the detector when predicting spot centroids using either assigned wavelengths [panel (a)] or using a nominal wavelength [panel (b)], with coloring indicating the angular error.
B. Analysis of anomalous signal
Anomalous diffraction is a vital component of many macromolecular crystallographic experiments. In addition to enabling experimental phasing,36,37 anomalous signal can be used to distinguish biologically relevant ions.38 Anomalous peak heights can also serve as a sensitive reporter of data processing accuracy.39 Such anomalous scattering may come from either atoms natively present in the protein, such as sulfur, or atoms or ions soaked into the crystal. To examine whether Laue-DIALS could resolve anomalous signal from single-crystal polychromatic data, we collected a pseudo-rotation series of 3049 frames on a hen egg white lysozyme (HEWL) crystal soaked with sodium iodide. The data were collected at ambient temperature (about 295 K) with the standard BioCARS x-ray beam (1.02–1.20 Å, with 1.05 Å peak intensity wavelength). Notably, this peak wavelength is far from the x-ray absorption edges of either iodine or sulfur. We processed the data with Laue-DIALS (see Sec. V and the accompanying Jupyter notebook) before scaling with Careless14 and refining with Phenix.40
The resulting anomalous map showed clear peaks on all ten native sulfur atoms as well as five ordered iodide ions [Fig. 8(a); confirmed by comparison to a monochromatic reference dataset, see Sec. V). The crystal diffracted well, with a CC1/2 value of over 0.975 at 1.7 Å [Fig. 8(b)]; the CCanom value remained above 0.3 throughout that same range [Fig. 8(c)]. Since this is a relatively large single-crystal dataset, we also scaled and merged subsets of the data in Careless to examine the strength of the anomalous signal from subsets of the data. Whether the 15 anomalous scattering atoms were considered individually [Fig. 8(d)] or averaged by element type [Fig. 8(e)], the results remained consistent. While the anomalous peak height increases with increasing amount of diffraction data, nearly all of the signal could be obtained in under 1500 frames, and based on the provided fits, the anomalous signal of S and I atoms reaches 50% of its asymptotic value within 180 frames (about 85 frames for I and 156 frames for S atoms).
C. Analysis of time-resolved diffraction data
Conventional fixed-target, time-resolved Laue diffraction data are typically collected in multiple passes (either on the same or several crystals), with interleaved collection of the unperturbed (“OFF”) data and perturbed (“ON”) data taking place at each angle before moving on to the next angle. These angular steps can be large (4–6°) to ensure even coverage of reciprocal space before a crystal becomes damaged.
Here we illustrate the processing of such time-resolved diffraction data with Laue-DIALS for data from an EF-X experiment (electric-field-stimulated time-resolved x-ray crystallography). This EF-X dataset of the second PDZ domain of human LNX241 contains 16 image series, each obtained from a phi angle scan. Each pass has four electric-field timepoints—off, 50, 100, and 200 ns of electric field. The workflow is illustrated in Fig. 9(a) and described in detail in an accompanying Jupyter notebook. This workflow ensures consistent geometry in all processing steps.
As an overall measure of time-resolved signal in reciprocal space, we use , which quantifies symmetry breaking due to the electric field, analogous to how quantifies deviations from symmetry imposed by Friedel's law due to anomalous signal by measuring the correlation of structure factor amplitude differences between Friedel mates estimated from separate halves of the data42 (see Sec. V). clearly indicates the presence of a signal increasing with the duration of the electric field, consistent with previous observations (Fig. 9, Ref. 41).
Weighted difference maps highlight electric-field dependent motions (Fig. 9) consistent with those observed previously41 and highlighted here for residues Asp368 and Ser410: For Asp368, we observe a shift in rotamer equilibrium with side chain motion against the applied electric field, consistent with naive expectation for the motion of a negatively charged group in an electric field (indicated by an orange arrow; Fig. 9, top left and right). Additionally, Ser410 in both chain A and chain B moves against the electric field (Fig. 9, middle), while Asn415 in both chain A and chain B moves with the electric field (Fig. 9, bottom). Both of these observations are as expected based on previous observations.41 Of the difference map peaks highlighted in Fig. 9, peak heights are above 3 in Coot (Fig. 9).43 We conclude that time-resolved signal can be recovered by analysis with Laue-DIALS.
IV. DISCUSSION AND CONCLUSIONS
We have described a computational framework, Laue-DIALS, for open-source processing of polychromatic x-ray diffraction patterns, primarily intended for processing macromolecular data. Laue-DIALS can be installed as an add-on package for DIALS, a general framework for processing diffraction data, and builds on its code base. Like DIALS, Laue-DIALS is open-source and free and welcomes contributions and community involvement. Laue-DIALS also inherits DIALS' modular architecture such that new algorithms can be swapped with relative ease.
This flexibility also allows for a series of planned further improvements and extensions. In particular, the current indexing algorithm was designed for monochromatic data. In future work, we intend to incorporate a natively polychromatic indexing algorithm such as PinkIndexer24 or machine learning-based algorithm like LaueNN.44 Recent work shows the substantial benefit of Laue diffraction for serial crystallography applications.45–48 PinkIndexer can index individual frames, potentially removing the primary obstacle to processing serial Laue diffraction data with Laue-DIALS. In the current approach, after indexing and initial inference of the crystal lattice and orientation, the data are already otherwise treated as stills. We further anticipate that natively polychromatic geometric refinement, currently under development in DIALS for processing of polychromatic neutron diffraction data (https://github.com/dials/dials/pull/2662), can improve the speed and accuracy of data processing.
V. METHODS
A. Simulated diffraction data
Simulated diffraction data were generated using nanoBragg.31–33 For simulations, we assumed a parallelepiped crystal domain consisting of 100 unit cells along each unit cell vector. The cubed root of the resulting crystal domain volume was 5.4 μm (using the unit cell taken from PDB 7LVC), and this domain size defined the characteristic profile of each Bragg reflection. However, to simulate scattering from a crystal with 100 μm thickness, we amplified the scattering by a factor of . The incident beam spot size was set to 10 μm, and the total photons per exposure was . In addition to the crystal diffraction, we modeled scattering through 2.5 mm of water and 5 mm of air. We simulated data onto a detector of area 340 × 340 mm2, with 3840 pixels along each dimension, making a pixel size of 0.088 mm. The crystal-to-detector distance was 200 mm. To simulate energy dispersion, a photon energy spectrum with 5 eV resolution (10 eV for the Gaussian spectra as they were smoothly varying) was created spanning the energy range, leading to 322 discretely sampled energies per exposure. For each energy, we modeled 12 beam vectors spanning a cone of divergence. For each exposure, to simulate angular mosaic spread, we perturbed the nominal crystal orientation 100 times (according to the desired mosaic spread) and averaged the diffraction from each perturbed crystal. These discrete calculations resulted in 322 × 12 × 100= 386 400 simulation steps per exposure, warranting GPU acceleration. Diffraction was simulated into each square pixel. Pixel gain was set to 0.7 ADUs (area detector units) per photon. In addition to Poisson noise on the number of photons arriving at each pixel, gain calibration noise (a randomly sampled multiplicative factor on the per pixel gain) and readout noise (a per pixel, per exposure randomly sampled additive factor on the amplified signal) were modeled. Per-pixel gain calibration terms were drawn from a normal distribution centered on 1, with a standard deviation of 0.03. Per-pixel, per-exposure readout noise terms were drawn from a normal distribution centered on 0, with a standard deviation of 3 ADUs. Finally, detector point spread was modeled using values typical for Rayonix cameras.49
For each simulated dataset of 180 images, the image data were imported using a custom Python script that built DIALS objects according to the simulated parameters and read the synthetic image data from the CBF files. These data were then processed through the standard pipeline (Fig. 3). The same set of parameters is used in each analysis, with wavelength limits of 0.9 and 1.2 Å used for all analyses. The known unit cell for the simulated DHFR crystal was input into laue.index and allowed to undergo scan-varying refinement before being split into stills. Based on analyses of experimental DHFR data, a resolution cutoff of 1.4 Å was supplied to laue.optimize_indexing and laue.predict. Each image was then integrated using the variable elliptical algorithm implemented in laue.integrate and combined into MTZ files containing the integrated intensities for each separate simulated dataset. These datasets were then merged with Careless,14 and supplying the wavelengths output from laue.refine for each reflection.
We attached fractional Miller index data to pixels of the reference simulated dataset and used these to determine misindexing rates throughout the pipeline. We analyzed the output files of laue.index, laue.optimize_indexing, and laue.refine by locating the pixel of the spot centroid for each indexed reflection, rounding the fractional Miller index in the associated image data, and checking for consistency with the assigned Miller index in the reflection table. Wavelength errors for each simulated dataset were similarly calculated by comparing reflection wavelengths to the intensity-weighted average wavelength associated with the pixel of the spot centroid.
To compare monochromatic and polychromatic analyses of these data, we processed the data through geometric refinement as in Sec. III A and applied an additional set of analyses to the output of laue.refine. First we averaged the respective detector objects for each image into a single detector object for the dataset. A custom Python script then splits these detectors into sets of 8 × 8 panels. The resulting data were passed to a custom variant of cctbx.xfel.detector_residuals twice—once with repredict_input_reflections=False and once with repredict_input_reflections=True. The former case plotted detector residuals in each panel using the wavelength estimates given in Laue-DIALS, while the latter case repredicted spot centroids using the single nominal wavelength provided to laue.index.
B. Collection and analysis of lysozyme anomalous data
Crystals of hen egg white lysozyme (HEWL) were grown and soaked with sodium iodide as described in Ref. 50. We collected a 3049-frame Laue dataset at BioCARS [Advanced Photon Source (APS) beamline 14-ID-B] on a single HEWL crystal soaked with sodium iodide. Data were collected at room temperature (about 295 K). On the same day, we collected a monochromatic 295 K dataset on an NaI-soaked crystal from the same batch at 1.0375 Å at beamline 24-ID-C at NE-CAT, APS. Both datasets will be described in further detail in a future manuscript.
A complete Laue-DIALS data analysis protocol is described in an accompanying Jupyter notebook (see Data Availability statement). Briefly, we processed the full dataset in Laue-DIALS, yielding an integrated MTZ file. This MTZ file was split into two subsequent MTZ files containing either the positive or the negative Friedel mates using reciprocalspaceship.51 Both MTZ files were scaled with Careless using a bivariate prior on structure factor amplitudes14 (see also https://github.com/rs-station/careless-examples/). The Friedel mates for each dataset were then recombined after scaling and merging. Phases for determination of anomalous peak heights were obtained from a model refined against the monochromatic reference dataset. This model was built by experimental phasing using AutoSol,52 AutoBuild, and phenix.refine40 and has been deposited as PDB ID 9B7C. To assess the effect of data redundancy on anomalous signal, we repeated this analysis starting from integrated intensities from the first 90, 180, 360, 540, 720, 999, 1080, 1440, 1800, 2160, 2520, 2880, or 3049 (complete) diffraction frames.
C. Analysis of time-resolved data
A complete data analysis protocol is described in an accompanying Jupyter notebook (see Data Availability statement). Briefly, these single-crystal, fixed-target data were collected in an interleaved manner, collecting OFF (no voltage applied) and ON (x-ray exposure at multiple delays from the start of a high-voltage pulse) at each crystal rotation angle, followed by sample rotation. We first process the four consecutive OFF passes independently by running the full Laue-DIALS pipeline through integration. After laue.index, we check for consistency of the inferred geometry and, if necessary, apply the symmetry operation of the C2 space group using dials.reindex. This geometry is then used for laue.sequence_to_stills. At this point, we transfer the OFF geometry to the corresponding ON image series and proceed with geometry optimization, polychromatic refinement, and integration for the ON data. Using the included custom scripts based on reciprocalspaceship,51 we combine passes for each timepoint and prepare MTZ files in both the original and reduced-symmetry space groups (see Hekstra et al.41). These .mtz files are reduced together using Careless.14
was introduced by Greisman et al.42 and calculated using a custom script adapted from rs-booster (https://rs-station.github.io/), an add-on package to reciprocalspaceship. As expected, there is a higher resolution-dependent for later timepoints. Weighted difference maps between the 200 ns and off timepoints were calculated using tools from reciprocalspaceship and rs-booster.
ACKNOWLEDGMENTS
We thank Dr. Rama Ranganathan and Dr. Keith Moffat for advice and encouragement, Dr. David Waterman for stimulating discussions on polychromatic refinement, Michael Socolich (University of Chicago) for providing the NaI-soaked lysozyme crystals, and to Robert Henning and Insik Kim for remote collection of diffraction data for the HEWL dataset. This work was supported a Burroughs-Wellcome Fund CASI award (KMD); a National Science Foundation Graduate Research Fellowship (to HKW, No. DGE 2140743), an NIH Grant (No. R35-GM151988; NKS), a DOE ICDI Grant (No. DE-SC0022215; ASB), and the NIH Director's New Innovator Award (No. DP2-GM141000; DRH). This research used resources of the Advanced Photon Source, a U.S. Department of Energy (DOE) Office of Science User Facility operated for the DOE Office of Science by Argonne National Laboratory under Contract No. DE-AC02-06CH11357. Use of BioCARS was also supported by the National Institute of General Medical Sciences of the National Institutes of Health under Grant Number P41 GM118217. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. Finally, we gratefully acknowledge past and present efforts of the community to make the routine, accurate processing of Laue diffraction data a reality. KMD is currently employed by the Linac Coherent Light Source (LCLS) at the SLAC National Accelerator Laboratory, an Office of Science User Facility operated for the U.S. Department of Energy Office of Science by Stanford University. KMD is supported by the U.S. Department of Energy, Office of Science, Basic Energy Sciences under Contract No. DEAC02-76SF00515.
Note: Paper published as part of the special topic on Celebrating the work and achievements of Keith Moffat.
Contributor Information
Rick A. Hewitt, Email: mailto:rahewitt@fas.harvard.edu.
Kevin M. Dalton, Email: mailto:kmdalton@slac.stanford.edu.
Aaron S. Brewster, Email: mailto:asbrewster@lbl.gov.
Doeke R. Hekstra, Email: mailto:doeke_hekstra@harvard.edu.
AUTHOR DECLARATIONS
Conflict of Interest
The authors have no conflicts to disclose.
Author Contributions
Rick A. Hewitt: Conceptualization (equal); Data curation (equal); Formal analysis (equal); Funding acquisition (equal); Investigation (equal); Methodology (equal); Project administration (equal); Software (lead); Supervision (equal); Validation (equal); Visualization (equal); Writing – original draft (equal); Writing – review & editing (equal). Kevin M. Dalton: Conceptualization (lead); Data curation (equal); Formal analysis (lead); Investigation (equal); Methodology (lead); Software (equal); Supervision (equal); Validation (equal); Visualization (supporting); Writing – original draft (equal); Writing – review & editing (equal). Derek A. Mendez: Conceptualization (lead); Data curation (equal); Formal analysis (equal); Investigation (equal); Methodology (lead); Software (supporting); Supervision (equal); Visualization (equal); Writing – original draft (equal); Writing – review & editing (equal). Harrison K. Wang: Data curation (equal); Formal analysis (equal); Investigation (equal); Software (supporting); Validation (equal); Visualization (equal); Writing – original draft (equal); Writing – review & editing (equal). Margaret A. Klureza: Data curation (equal); Formal analysis (equal); Investigation (equal); Software (supporting); Validation (equal); Visualization (equal); Writing – original draft (equal); Writing – review & editing (equal). Dennis E. Brookner: Data curation (equal); Formal analysis (supporting); Investigation (equal); Software (supporting); Validation (equal); Visualization (supporting); Writing – original draft (equal); Writing – review & editing (equal). Jack B. Greisman: Data curation (equal); Formal analysis (supporting); Investigation (equal); Software (supporting); Validation (equal); Visualization (supporting); Writing – review & editing (equal). David McDonagh: Data curation (equal); Formal analysis (supporting); Investigation (equal); Software (supporting); Validation (equal); Visualization (supporting); Writing – review & editing (equal). Vukica Srajer: Conceptualization (equal); Data curation (equal); Formal analysis (supporting); Investigation (equal); Validation (equal); Visualization (supporting); Writing – review & editing (equal). Nicholas K. Sauter: Conceptualization (equal); Data curation (equal); Investigation (equal); Validation (equal); Writing – review & editing (equal). Aaron S. Brewster: Conceptualization (equal); Data curation (supporting); Formal analysis (equal); Funding acquisition (equal); Methodology (equal); Software (supporting); Validation (supporting); Visualization (supporting); Writing – original draft (equal); Writing – review & editing (equal). Doeke R. Hekstra: Conceptualization (lead); Data curation (equal); Formal analysis (equal); Funding acquisition (lead); Investigation (equal); Methodology (equal); Project administration (lead); Software (supporting); Supervision (lead); Validation (equal); Visualization (equal); Writing – original draft (equal); Writing – review & editing (equal).
DATA AVAILABILITY
Raw data are available on SBGrid for the HEWL (https://data.sbgrid.org/dataset/1118/), PDZ2 (https://data.sbgrid.org/dataset/1116/), and DHFR (https://data.sbgrid.org/dataset/1117/) datasets. Derived data supporting the findings of this study are available from the corresponding author upon reasonable request.
References
- 1. Ren Z., Bourgeois D., Helliwell J. R., Moffat K., Šrajer V., and Stoddard B. L., “ Laue crystallography: Coming of age,” J. Synchrotron Rad. 6, 891–917 (1999). 10.1107/S0909049599006366 [DOI] [Google Scholar]
- 2. Barty A., Caleman C., Aquila A., Timneanu N., Lomb L., White T. A., Andreasson J., Arnlund D., Bajt S., Barends T. R. et al. , “ Self-terminating diffraction gates femtosecond x-ray nanocrystallography measurements,” Nat. Photonics 6, 35–40 (2012). 10.1038/nphoton.2011.297 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3. Neutze R., Wouts R., Van der Spoel D., Weckert E., and Hajdu J., “ Potential for biomolecular imaging with femtosecond x-ray pulses,” Nature 406, 752–757 (2000). 10.1038/35021099 [DOI] [PubMed] [Google Scholar]
- 4. 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. et al. , “ Femtosecond x-ray protein nanocrystallography,” Nature 470, 73–77 (2011). 10.1038/nature09750 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Kern J., Yachandra V. K., and Yano J., “ Metalloprotein structures at ambient conditions and in real-time: Biological crystallography and spectroscopy using x-ray free electron lasers,” Curr. Opin. Struct. Biol. 34, 87–98 (2015). 10.1016/j.sbi.2015.07.014 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Gruhl T., Weinert T., Rodrigues M. J., Milne C. J., Ortolani G., Nass K., Nango E., Sen S., Johnson P. J., Cirelli C. et al. , “ Ultrafast structural changes direct the first molecular events of vision,” Nature 615, 939–944 (2023). 10.1038/s41586-023-05863-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Brändén G. and Neutze R., “ Advances and challenges in time-resolved macromolecular crystallography,” Science 373, eaba0954 (2021). 10.1126/science.aba0954 [DOI] [PubMed] [Google Scholar]
- 8. Yun J.-H., Li X., Yue J., Park J.-H., Jin Z., Li C., Hu H., Shi Y., Pandey S., Carbajo S., Boutet S., Hunter M. S., Liang M., Sierra R. G., Lane T. J., Zhou L., Weierstall U., Zatsepin N. A., Ohki M., Tame J. R. H., Park S.-Y., Spence J. C. H., Zhang W., Schmidt M., Lee W., and Liu H., “ Early-stage dynamics of chloride ion–pumping rhodopsin revealed by a femtosecond x-ray laser,” Proc. Natl. Acad. Sci. U. S. A. 118, e2020486118 (2021). 10.1073/pnas.2020486118 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Schmidt M., “ Time-resolved macromolecular crystallography at pulsed x-ray sources,” Int. J. Mol. Sci. 20, 1401 (2019). 10.3390/ijms20061401 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10. Smith N., Dasgupta M., Wych D. C., Dolamore C., Sierra R. G., Lisova S., Marchany-Rivera D., Cohen A. E., Boutet S., Hunter M. S., Kupitz C., Poitevin F., Moss F. R., Mittan-Moreau D. W., Brewster A. S., Sauter N. K., Young I. D., Wolff A. M., Tiwari V. K., Kumar N., Berkowitz D. B., Hadt R. G., Thompson M. C., Follmer A. H., Wall M. E., and Wilson M. A., “ Changes in an enzyme ensemble during catalysis observed by high-resolution XFEL crystallography,” Sci. Adv. 10, eadk7201 (2024). 10.1126/sciadv.adk7201 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Christou N.-E., Apostolopoulou V., Melo D. V. M., Ruppert M., Fadini A., Henkel A., Sprenger J., Oberthuer D., Günther S., Pateras A., Mashhour A. R., Yefanov O. M., Galchenkova M., Reinke P. Y. A., Kremling V., Scheer T. E. S., Lange E. R., Middendorf P., Schubert R., Zitter E. D., Lumbao-Conradson K., Herrmann J., Rahighi S., Kunavar A., Beale E. V., Beale J. H., Cirelli C., Johnson P. J. M., Dworkowski F., Ozerov D., Bertrand Q., Wranik M., Bacellar C., Bajt S., Wakatsuki S., Sellberg J. A., Huse N., Turk D., Chapman H. N., and Lane T. J., “ Time-resolved crystallography captures light-driven DNA repair,” Science 382, 1015–1020 (2023). 10.1126/science.adj4270 [DOI] [PubMed] [Google Scholar]
- 12. Hao Q., Harding M. M., Helliwell J. R., and Szebenyi D. M., “ Weblinks for the Daresbury Laue software source code and information. Addendum,” J. Synchrotron Rad. 28, 666 (2021). 10.1107/S1600577521001326 [DOI] [Google Scholar]
- 13. Arzt S., Campbell J. W., Harding M. M., Hao Q., and Helliwell J. R., “ LSCALE—The new normalization, scaling and absorption correction program in the Daresbury Laue software suite,” J. Appl. Crystallogr. 32, 554–562 (1999). 10.1107/S0021889898015350 [DOI] [Google Scholar]
- 14. Dalton K. M., Greisman J. B., and Hekstra D. R., “ A unifying Bayesian framework for merging X-ray diffraction data,” Nat. Commun. 13, 7764 (2022). 10.1038/s41467-022-35280-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Winter G., Waterman D. G., Parkhurst J. M., Brewster A. S., Gildea R. J., Gerstel M., Fuentes-Montero L., Vollmar M., Michels-Clark T., Young I. D., Sauter N. K., and Evans G., “ DIALS: Implementation and evaluation of a new integration package,” Acta Crystallogr. D Struct. Biol. 74, 85–97 (2018). 10.1107/S2059798317017235 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Parkhurst J. M., Brewster A. S., Fuentes-Montero L., Waterman D. G., Hattne J., Ashton A. W., Echols N., Evans G., Sauter N. K., and Winter G., “ dxtbx: The diffraction experiment toolbox,” J. Appl. Crystallogr. 47, 1459–1465 (2014). 10.1107/S1600576714011996 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17. Waterman D. G., Winter G., Gildea R. J., Parkhurst J. M., Brewster A. S., Sauter N. K., and Evans G., “ Diffraction-geometry refinement in the DIALS framework,” Acta Crystallogr. D Struct. Biol. 72, 558–575 (2016). 10.1107/S2059798316002187 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Winter G., Beilsten-Edmands J., Devenish N., Gerstel M., Gildea R. J., McDonagh D., Pascal E., Waterman D. G., Williams B. H., and Evans G., “ DIALS as a toolkit,” Protein Sci. 31, 232–250 (2022). 10.1002/pro.4224 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19. Kabsch W., “ xds,” Acta Crystallogr. D Biol. Crystallogr. 66, 125–132 (2010). 10.1107/S0907444909047337 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20. Leslie A. G. and Powell H. R. et al. , “ Processing diffraction data with mosflm,” in Evolving Methods for Macromolecular Crystallography ( Springer, 2007), Vol. 245, pp. 41–51. [Google Scholar]
- 21. 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., and Sauter N. K., “ Improving signal strength in serial crystallography with DIALS geometry refinement,” Acta Crystallogr. D Struct. Biol. 74, 877–894 (2018). 10.1107/S2059798318009191 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Clabbers M. T. and Abrahams J. P., “ Electron diffraction and three-dimensional crystallography for structural biology,” Crystallogr. Rev. 24, 176–204 (2018). 10.1080/0889311X.2018.1446427 [DOI] [Google Scholar]
- 23. Hoaglin B. I. D. C. and Tukey J. W., “ Performance of some resistant rules for outlier labeling,” J. Am. Stat. Assoc. 81, 991–999 (1986). 10.1080/01621459.1986.10478363 [DOI] [Google Scholar]
- 24. Gevorkov Y., Barty A., Brehm W., White T. A., Tolstikova A., Wiedorn M. O., Meents A., Grigat R.-R., Chapman H. N., and Yefanov O., “ pinkIndexer – a universal indexer for pink-beam X-ray and electron diffraction snapshots,” Acta Crystallogr. A Found. Adv. 76, 121–131 (2020). 10.1107/S2053273319015559 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Rousseeuw P. J., “ Least median of squares regression,” J. Am. Stat. Assoc. 79, 871–880 (1984). 10.1080/01621459.1984.10477105 [DOI] [Google Scholar]
- 26. Virtanen P., Gommers R., Oliphant T. E., Haberland M., Reddy T., Cournapeau D., Burovski E., Peterson P., Weckesser W., Bright J., van der Walt S. J., Brett M., Wilson J., Millman K. J., Mayorov N., Nelson A. R. J., Jones E., Kern R., Larson E., Carey C. J., Polat İ., Feng Y., Moore E. W., VanderPlas J., Laxalde D., Perktold J., Cimrman R., Henriksen I., Quintero E. A., Harris C. R., Archibald A. M., Ribeiro A. H., Pedregosa F., and van Mulbregt P., and SciPy 1.0 Contributors. “ SciPy 1.0: Fundamental algorithms for scientific computing in Python,” Nat. Methods 17, 261–272 (2020). 10.1038/s41592-019-0686-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27. Crouse D. F., “ On implementing 2D rectangular assignment algorithms,” IEEE Trans. Aerosp. Electron. Syst. 52, 1679–1696 (2016). 10.1109/TAES.2016.140952 [DOI] [Google Scholar]
- 28. Schönemann P. H., “ A generalized solution of the orthogonal procrustes problem,” Psychometrika 31, 1–10 (1966). 10.1007/BF02289451 [DOI] [Google Scholar]
- 29. Ren Z., Precognition User Guide with Reference and Tutorials ( Renz Research, Inc., 2006). [Google Scholar]
- 30. Aldama L. A., Dalton K. M., and Hekstra D. R., “ Correcting systematic errors in diffraction data with modern scaling algorithms,” Acta Crystallogr. D Struct. Biol. 79, 796–805 (2023). 10.1107/S2059798323005776 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31. Sauter N. K., Kern J., Yano J., and Holton J. M., “ Towards the spatial resolution of metalloprotein charge states by detailed modeling of XFEL crystallographic diffraction,” Acta Crystallogr. D Struct. Biol. 76, 176–192 (2020). 10.1107/S2059798320000418 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Lyubimov A. Y., Uervirojnangkoorn M., Zeldin O. B., Zhou Q., Zhao M., Brewster A. S., Michels-Clark T., Holton J. M., Sauter N. K., Weis W. I., and Brunger A. T., “ Advances in X-ray free electron laser (XFEL) diffraction data processing applied to the crystal structure of the synaptotagmin-1/SNARE complex,” eLife 5, e18740 (2016). 10.7554/eLife.18740 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Holton J. M., Classen S., Frankel K. A., and Tainer J. A., “ The R-factor gap in macromolecular crystallography: An untapped potential for insights on accurate structures,” FEBS J. 281, 4046–4060 (2014). 10.1111/febs.12922 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34. Grosse-Kunstleve R. W., Sauter N. K., Moriarty N. W., and Adams P. D., “ The Computational Crystallography Toolbox: Crystallographic algorithms in a reusable software framework,” J. Appl. Crystallogr. 35, 126–136 (2002). 10.1107/S0021889801017824 [DOI] [Google Scholar]
- 35. James R. W., The Optical Principles of the Diffraction of X Rays, Vol. 2 ( G. Bell And Sons Limited, London, 1962). [Google Scholar]
- 36. Hendrickson W. A., “ Anomalous diffraction in crystallographic phase evaluation,” Quart. Rev. Biophys. 47, 49–93 (2014). 10.1017/S0033583514000018 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37. Liu Q. and Hendrickson W. A., “ Contemporary use of anomalous diffraction in biomolecular structure analysis,” in Protein Crystallography: Methods and Protocols, edited by Wlodawer A., Dauter Z., and Jaskolski M. ( Springer New York, New York, NY, 2017), pp. 377–399. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38. Langan P. S., Vandavasi V. G., Weiss K. L., Afonine P. V., El Omari K., Duman R., Wagner A., and Coates L., “ Anomalous x-ray diffraction studies of ion transport in k+ channels,” Nat. Commun. 9, 4540 (2018). 10.1038/s41467-018-06957-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39. Brewster A. S., Bhowmick A., Bolotovsky R., Mendez D., Zwart P. H., and Sauter N. K., “ SAD phasing of XFEL data depends critically on the error model,” Acta Crystallogr. D Struct. Biol. 75, 959–968 (2019). 10.1107/S2059798319012877 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40. Liebschner D., Afonine P. V., Baker M. L., Bunkóczi G., Chen V. B., Croll T. I., Hintze B., Hung L.-W., Jain S., and McCoy A. J., “ Macromolecular structure determination using X-rays, neutrons and electrons: Recent developments in Phenix,” Acta Crystallogr. D Struct. Biol. 75, 861–877 (2019). 10.1107/S2059798319011471 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41. Hekstra D. R., White K. I., Socolich M. A., Henning R. W., Šrajer V., and Ranganathan R., “ Electric-field-stimulated protein mechanics,” Nature 540, 400–405 (2016). 10.1038/nature20571 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42. Greisman J. B., Dalton K. M., Brookner D. E., Klureza M. A., Sheehan C. J., Kim I. S., Henning R. W., Russi S., and Hekstra D. R., “ Perturbative diffraction methods resolve a conformational switch that facilitates a two-step enzymatic mechanism,” Proc. Natl. Acad. Sci. U. S. A. 121, e2313192121 (2024). 10.1073/pnas.2313192121 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43. Emsley P., Lohkamp B., Scott W. G., and Cowtan K., “ Features and development of Coot,” Acta Crystallogr. D Biol. Crystallogr. 66, 486–501 (2010). 10.1107/S0907444910007493 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44. Purushottam Raj Purohit R. R. P., Tardif S., Castelnau O., Eymery J., Guinebretière R., Robach O., Ors T., and Micha J.-S., “ Lauenn: Neural-network-based HKL recognition of Laue spots and its application to polycrystalline materials,” J. Appl. Crystallogr. 55, 737–750 (2022). 10.1107/S1600576722004198 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45. Meents A., Wiedorn M. O., Šrajer V., Henning R., Sarrou I., Bergtholdt J., Barthelmess M., Reinke P. Y. A., Dierksmeyer D., Tolstikova A., Schaible S., Messerschmidt M., Ogata C. M., Kissick D. J., Taft M. H., Manstein D. J., Lieske J., Oberthuer D., Fischetti R. F., and Chapman H. N., “ Pink-beam serial crystallography,” Nat. Commun. 8, 1281 (2017). 10.1038/s41467-017-01417-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46. Kim Y. and Nam K. H., “ Fixed-target pink-beam serial synchrotron crystallography at Pohang light source II,” Crystals 13, 1544 (2023). 10.3390/cryst13111544 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47. Martin-Garcia J. M., Zhu L., Mendez D., Lee M.-Y., Chun E., Li C., Hu H., Subramanian G., Kissick D., Ogata C., Henning R., Ishchenko A., Dobson Z., Zhang S., Weierstall U., Spence J. C. H., Fromme P., Zatsepin N. A., Fischetti R. F., Cherezov V., and Liu W., “ High-viscosity injector-based pink-beam serial crystallography of microcrystals at a synchrotron radiation source,” IUCrJ 6, 412–425 (2019). 10.1107/S205225251900263X [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48. Nass K., Bacellar C., Cirelli C., Dworkowski F., Gevorkov Y., James D., Johnson P. J. M., Kekilli D., Knopp G., Martiel I., Ozerov D., Tolstikova A., Vera L., Weinert T., Yefanov O., Standfuss J., Reiche S., and Milne C. J., “ Pink-beam serial femtosecond crystallography for accurate structure-factor determination at an X-ray free-electron laser,” IUCrJ 8, 905–920 (2021). 10.1107/S2052252521008046 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49. Holton J. M., Nielsen C., and Frankel K. A., “ The point-spread function of fiber-coupled area detectors,” J. Synchrotron Rad. 19, 1006–1011 (2012). 10.1107/S0909049512035571 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50. Takeda K., Miyatake H., Park S.-Y., Kawamoto M., Kamiya N., and Miki K., “ Multi-wavelength anomalous diffraction method for I and Xe atoms using ultra-high-energy X-rays from SPring-8,” J. Appl. Crystallogr. 37, 925–933 (2004). 10.1107/S0021889804023076 [DOI] [Google Scholar]
- 51. Greisman J. B., Dalton K. M., and Hekstra D. R., “ Reciprocalspaceship: A Python library for crystallographic data analysis,” J. Appl. Crystallogr. 54, 1521–1529 (2021). 10.1107/S160057672100755X [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52. Terwilliger T. C., Adams P. D., Read R. J., McCoy A. J., Moriarty N. W., Grosse-Kunstleve R. W., Afonine P. V., Zwart P. H., and Hung L.-W., “ Decision-making in structure solution using Bayesian estimates of map quality: The PHENIX AutoSol wizard,” Acta Crystallogr. D Biol. Crystallogr. 65, 582–601 (2009). 10.1107/S0907444909012098 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53. Greisman J. B., Dalton K. M., Sheehan C. J., Klureza M. A., Kurinov I., and Hekstra D. R., “ Native SAD phasing at room temperature,” Acta Crystallogr. D Struct. Biol. 78, 986–996 (2022). 10.1107/S2059798322006799 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54. Kazimirov A., Smilgies D.-M., Shen Q., Xiao X., Hao Q., Fontes E., Bilderback D. H., Gruner S. M., Platonov Y., and Martynov V. V., “ Multilayer X-ray optics at CHESS,” J. Synchrotron Rad. 13, 204–210 (2006). 10.1107/S0909049506002846 [DOI] [PubMed] [Google Scholar]
- 55. Jankowski M., Belova V., Chushkin Y., Zontone F., Levantino M., Narayanan T., KKonovalov O., and Pastore A., “ The complex systems and biomedical sciences group at the ESRF: Current status and new opportunities after extremely brilliant source upgrade,” Nucl. Instrum. Methods Phys. Res. Sect. B 538, 164–172 (2023). 10.1016/j.nimb.2023.02.034 [DOI] [Google Scholar]
- 56. Graber T., Anderson S., Brewer H., Chen Y.-S., Cho H. S., Dashdorj N., Henning R. W., Kosheleva I., Macha G., Meron M., Pahl R., Ren Z., Ruan S., Schotte F., Šrajer V., Viccaro P. J., Westferro F., Anfinrud P., and Moffat K., “ BioCARS: A synchrotron resource for time-resolved X-ray science,” J. Synchrotron Rad. 18, 658–670 (2011). 10.1107/S0909049511009423 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57. Chollet M., Alonso-Mori R., Cammarata M., Damiani D., Defever J., Delor J. T., Feng Y., Glownia J. M., Langton J. B., Nelson S., Ramsey K., Robert A., Sikorski M., Song S., Stefanescu D., Srinivasan V., Zhu D., Lemke H. T., and Fritz D. M., “ The X-ray pump–probe instrument at the Linac coherent light source,” J. Synchrotron Rad. 22, 503–507 (2015). 10.1107/S1600577515005135 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58. Kim Y. and Nam K. H., “ Pink-beam serial synchrotron crystallography at Pohang light source II,” Crystals 12, 1637 (2022). 10.3390/cryst12111637 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59. Reiche S., Bacellar C., Bougiatioti P., Cirelli C., Dijkstal P., Ferrari E., Juranić P., Knopp G., Malyzhenkov A., Milne C., Nass K., Prat E., Vila-Comamala J., and David C., “ Frequency and spatially chirped free-electron laser pulses,” Phys. Rev. Res. 5, L022009 (2023). 10.1103/PhysRevResearch.5.L022009 [DOI] [Google Scholar]
- 60. Eggl E., Dierolf M., Achterhold K., Jud C., Günther B., Braig E., Gleich B., and Pfeiffer F., “ The Munich compact light source: Initial performance measures,” J. Synchrotron Rad. 23, 1137–1142 (2016). 10.1107/S160057751600967X [DOI] [PubMed] [Google Scholar]
- 61. Graves W. S., Bessuille J., Brown P., Carbajo S., Dolgashev V., Hong K.-H., Ihloff E., Khaykovich B., Lin H., Murari K., Nanni E. A., Resta G., Tantawi S., Zapata L. E., Kärtner F. X., and Moncton D. E., “ Compact x-ray source based on burst-mode inverse Compton scattering at 100 kHz,” Phys. Rev. ST. Accel. Beams 17, 120701 (2014). 10.1103/PhysRevSTAB.17.120701 [DOI] [Google Scholar]
- 62. Chaulagain U., Lamač M., Raclavský M., Khakurel K. P., Rao K. H., Ta-Phuoc K., Bulanov S. V., and Nejdl J., “ Eli gammatron beamline: A dawn of ultrafast hard x-ray science,” Photonics 9, 853 (2022). 10.3390/photonics9110853 [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Raw data are available on SBGrid for the HEWL (https://data.sbgrid.org/dataset/1118/), PDZ2 (https://data.sbgrid.org/dataset/1116/), and DHFR (https://data.sbgrid.org/dataset/1117/) datasets. Derived data supporting the findings of this study are available from the corresponding author upon reasonable request.