- Methodology article
- Open Access
- Published:

# Fine-grained alignment of cryo-electron subtomograms based on MPI parallel optimization

*BMC Bioinformatics*
**volume 20**, Article number: 443 (2019)

## Abstract

### Background

Cryo-electron tomography (Cryo-ET) is an imaging technique used to generate three-dimensional structures of cellular macromolecule complexes in their native environment. Due to developing cryo-electron microscopy technology, the image quality of three-dimensional reconstruction of cryo-electron tomography has greatly improved.

However, cryo-ET images are characterized by low resolution, partial data loss and low signal-to-noise ratio (SNR). In order to tackle these challenges and improve resolution, a large number of subtomograms containing the same structure needs to be aligned and averaged. Existing methods for refining and aligning subtomograms are still highly time-consuming, requiring many computationally intensive processing steps (i.e. the rotations and translations of subtomograms in three-dimensional space).

### Results

In this article, we propose a Stochastic Average Gradient (SAG) fine-grained alignment method for optimizing the sum of dissimilarity measure in real space. We introduce a Message Passing Interface (MPI) parallel programming model in order to explore further speedup.

### Conclusions

We compare our stochastic average gradient fine-grained alignment algorithm with two baseline methods, high-precision alignment and fast alignment. Our SAG fine-grained alignment algorithm is much faster than the two baseline methods. Results on simulated data of GroEL from the Protein Data Bank (PDB ID:1KP8) showed that our parallel SAG-based fine-grained alignment method could achieve close-to-optimal rigid transformations with higher precision than both high-precision alignment and fast alignment at a low SNR (SNR=0.003) with tilt angle range ±60^{∘} or ±40^{∘}. For the experimental subtomograms data structures of GroEL and GroEL/GroES complexes, our parallel SAG-based fine-grained alignment can achieve higher precision and fewer iterations to converge than the two baseline methods.

## Background

Cryo-electron tomography visualizes the three-dimensional structures in situ and sub-molecular resolution within single cells [1–5]. However, due to the radiation damage caused by electrons, the original tomograms’ signal-to-noise ratio (SNR) is extremely small, which typically limits the resolution of the original tomograms data to 5-10 nm [6]. At such a low SNR, the traditional 3D image registration methods are very difficult to apply. In normal conditions, thousands or even tens of thousands of subtomograms are aligned and averaged to obtain structures with higher resolutions, which reduces noise and eliminates missing wedge effects. A number of individual macromolecules are picked from a 3D tomogram and then classified into structural classes by pair-wise comparisons. Alignment and averaging of subtomograms in each class result in a clearer structure with increased SNR.

Subtomogram alignment aims to rotate and translate a subtomogram to minimize its dissimilarity measure with a reference structure. The reference-free averaging process iteratively aligns a large number of subtomograms together with their own simple average as the initial reference to approximate the macromolecular structure of interest [7–10]. In the iteration procedure of optimizing subtomogram averaging, each subtomogram is rotated and translated in different ways but with the same reference structure. Much software has been developed for subtomogram alignment and classification [8, 11, 12]. Most implement algorithms that use a dissimilarity measure or a distance function as the alignment metric between the subtomogram and the reference [8, 12–14]. In three dimensional space, there is one translation and one rotation parameter along each axis. Therefore, for averaging *N* subtomograms, the parameter search space is 6^{N−1} dimensional. If an exhaustive 6D search was performed in Cartesian space or in Fourier space for each subtomogram, the computational cost would be infeasible. To accelerate the search of translational parameters, Fourier transform is commonly used [15]. However, the computational cost for the exhaustive search of rotational parameters is still a major bottleneck. Fast translation-invariant rotational matching that obtains better rotational parameter candidate sets using spherical harmonics functions in Fourier space [16] has been proposed [17, 18] and extended to subtomogram alignment [9, 10, 19, 20].

A local fine-grained alignment can be applied for obtaining a better rotational parameter candidate set close to the optimal solution. Based on previous local refinement alignment on a very sparsely distributed starting rotational parameter candidate set [20, 21], we further explore the potential of utilizing locally optimized alignment methods in a sparse rotational parameter candidate set.

In this article, we design a competent stochastic average gradient (SAG) fine-grained alignment algorithm for dissimilarity measure between a pair of subtomograms in real space. We utilize an MPI parallel architecture, which can distinctly fulfill the simultaneous improvement of different alignment candidates. We demonstrate our SAG-based fine-grained alignment algorithm on realistically simulated data of GroEL and experimental GroEL and GroEL/GroES complexes subtomograms. The results show that SAG-based fine-grained alignment method can achieve higher alignment precision and better averaging of subtomograms at a low SNR of 0.003 with tilt angle range from +60^{∘} to −60^{∘} and from +40^{∘} to −40^{∘}, as compared to baseline methods.

## Methods

We design a three-dimensional fine-grained alignment framework for subtomogram alignment based on stochastic average gradient [22], which minimizes the dissimilarity score defined by the Euclidean distance between a function with fixed parameters and a function with optimized parameters. We design dissimilarity scores of subtomogram alignment with missing wedge correction: constrained dissimilarity score in real space. We provide parallelization of our algorithm on the MPI parallel computing platform.

### Parameter definitions

We define a subtomogram as an integrable function, \(V(\mathbf {x}) \colon \mathbb {R}^{3} \ \rightarrow \ \mathbb {R}\). We define \(\mathbb {T}_{T}\) as the operator of translation on subtomogram for \(T \ \in \ \mathbb {R}^{3}\), which be expressed by

In the 3D rotation group *S**O*(3), we define *Λ*_{R} as the operator of rotation for a rotation *R*, which be expressed by

where rotation *R* is a 3×3 rotation matrix [17]. The 3D subtomograms *V*(**x**) rotation and translation operation can be described as:

The transformation parameters include rotation operation and translation operation can be represent as \(\beta =(R,T)=(\phi,\theta,\psi,\tau _{1},\tau _{2},\tau _{3})^{\intercal }\), where rotation parameters \(R = {(\phi,\theta,\psi)}^{\intercal }\) can be deemed as Euler angles in the ‘*ZYZ*’ usage [23] or ‘*y*’ usage [24], and translation parameters as \(T = (\tau _{1},\tau _{2},\tau _{3})^{\intercal }\).

### Fine-grained alignment of subtomograms using constrained dissimilarity measure in a real space

We now propose a fine-grained registration algorithm for the subtomogram alignment based on the stochastic average gradient. The goal of fine-grained alignment is to search for a local minimum value provided the given rough parameters of rotation *R* and translation *T*. To perform the alignment, one must define an alignment metric. We use a dissimilarity measure function for the alignment of two subtomograms. Many challenges exist, such as low resolution, low SNR, distortions owing to partial data loss (i.e., missing wedge effect). These factors must be considered during the subtomogram alignment procedure.

To handle the significant missing wedge in Fourier space, the most common approach to correct the missing wedge is the constrained correlation coefficient (CCC) measure recommended by Förster et al. [8]. A binary mask function \(\mathcal {M} \ \colon \ \mathbb {R}^{3} \ \rightarrow \ \{0,1\}\) is defined to represent the corresponding missing wedge. In cryo-electron tomography with single tilt ±*θ*, the missing wedge mask functions \(\mathcal {M}(\zeta) \colon = I_{(|\zeta _{3}|\leq |\zeta _{1}|tan(\theta))}(\zeta)\), where *I* is symbolic function [19]. The overlap region after the alignment of two subtomograms in the Fourier space \(\Omega \ \colon =\mathcal {M}\Lambda _{R}\mathcal {M}\). It only considers the best overlap region by rotation in Fourier space when two subtomograms are aligned, and eliminates the transform depending on the property of Fourier space. To reduce the effects of noise, focus on the particles, we also define a binary mask *M* in real space.

Related to the Fourier space, the constrained function of subtomogram *f* can be expressed as:

where FT denotes the Fourier transformation, FT ^{−1} denotes the inverse Fourier transformation.

The subtomogram mean value of \(\bar {f^{\star }}\) must be restricted to *M* and *Ω* :

The constrained function of subtomogram *g* can be expressed as:

where \(\bar {g^{\star }_{\beta }} \colon = \frac {1}{\sum _{x,y,z}M}\sum _{x,y,z}FT^{-1}(FT(\mathbb {T}_{T}{\Lambda _{R}}g) \cdot \Omega)\).

In fact, for convenient calculation on discrete voxel points, we define the constrained cross-correlation function of normalized and aligned subtomograms *f*^{⋆} and \(g^{\star }_{\beta }\) can be given as:

During the alignment, the dissimilarity score *d* is normalized, which is derived from the CCC. Given a normalized and aligned subtomogram *f*^{⋆} and \(g^{\star }_{\beta }\), *d* can be represented as:

By using the fast rotational matching (FRM) [9, 19, 20], we can get an initial set of the top *N* best rough rotations candidate set { *R*^{1},*R*^{2},…,*R*^{N}}, and then obtain the top *N* best rough translations candidate set { *T*^{1},*T*^{2},…,*T*^{N}}, that can efficiently minimize the normalized Euclidean distance *d* using fast translational matching (FTM), where *N* is the cardinality of the rotations or translations set. The selected rotation candidate sets have the highest CCC value compared to other rotation sets that are not selected. For each rotation *R*^{j} in the set { *R*^{1},*R*^{2},…,*R*^{N}}, we can utilize FTM to search the best translations *T*^{j} between *f*^{⋆} and \(g^{\star }_{(T,R)}\). For comparison purpose, the acquisition of the initial rotations candidate set was implemented using the corresponding fast rotation matching code of Chen’s method. Two volume (subtomogram and reference) are transferred into Fourier space, the power spectrum (i.e. the magnitude of Fourier components) of a subtomogram and reference are only considered, and then we convert the Fourier coefficients to spherical coordinates and calculate fast rotational match by spherical harmonics convolution. The power spectrum is translation invariant. Therefore the fast rotation matching does not depend on translation.

Given a certain combination of *R* and *T*, we can get the new rotation value *R*^{k} and translation value *T*^{k} using the stochastic average gradient (SAG) fine-grained alignment algorithm on three-dimensional density map, so that the normalized Euclidean distance decreases.

The SAG algorithm was firstly applied to the two-dimensional matrix [22]. Standard stochastic gradient descent algorithm implements sublinear rates, because the randomness introduces variance. The SAG algorithm stores previous calculated gradients to achieve a linear convergence rate. We expand the SAG algorithm and apply it to the three-dimensional matrix to form the 3D SAG algorithm. We design a 3D version of SAG algorithm and apply it to 3D rigid registration on subtomogram alignment procedure.

Since the function *f*^{⋆} is fixed, we only use SAG fine-grained alignment algorithm to update the *β*=(*R*,*T*). Now we redefine the loss function *J* for 3D subtomogram alignment.

where *n* is the length of the volume on the x-axis, *x*_{i} is a slice of subtomogram along x-axis, index *i* ∈ {1,..,n}, \(h_{\beta }(x_{i}) = h_{(R,T)}(x_{i}) \ \colon = (f^{\star }(x_{i}) - g^{\star }_{(T,R)}(x_{i}))^{2}\).

The recursive form of the SAG algorithm is given as:

where at each iteration a index *i*_{k} along the x-axis in the experimental data is random selected redundantly and uniformly in {1,…,*n*}, *α*_{k} is step size and \(y_{i}^{k}\) can be given as:

Similar to the standard full gradient (FG) method, the procedure contains a gradient in regard to the whole experimental subtomogram data. However, similar to the stochastic gradient (SG) method, the each iteration of SAG method only calculates the gradient in regard to a slice of the whole experimental subtomogram data along the x-axis. So, the iterative cost is independent of *n*, thus giving the SAG method low iteration cost and a linear convergence rate. In other words, by randomly choosing index *i*_{k} and maintaining the memory of the latest gradient value calculated for each slice of the whole experimental subtomogram data, the iteration accomplishes a faster convergence rate than the iteration of the SG method. So SAG method does not increase the capability of getting trapped into local minima.

For our loss function *J*, we adopt empirical step size *α*_{k}=1/*L*. In practice, Lipschitz constant *L* is unknown. The estimation of Lipschitz constant *L* will be doubled when the instantiated Lipschitz obeys the inequality [22].

We modify the estimation rule of Lipschitz constant *L* by selecting the max value in the experimental data.

where *A*_{i} denotes the one dimensional norm of maximum squared 3D matrix max*i*{∥*x*_{i}∥^{2}}.

We implement the method in Algorithm 1 through equation 11 and 12, and we utilize a variable *D* to express the gradient of *β*. For the purpose of parallelism and vectorization, the stochastic average gradient completions usually divide the data into “small batches” and implement the stochastic average gradient iterations on small batches. We similarly perform the 3D version of the SAG-based fine-grained subtomogram alignment on small batches (a slice) along the x-axis.

In order to speed up the SAG algorithm convergence rate and adequately decrease the memory space of SAG method, we optimize small batches SAG algorithm in 3D space, which select small batches slices along the x-axis in the experimental subtomograms data, rather than only selecting a slice along the x-axis in the experimental subtomograms data in Algorithm 2. In an optimized SAG fine-grained subtomogram alignment algorithm (Algorithm 2), small batches slices depends on the side length of subtomogram data, for example, small batches is about 4 ∼30 for our simulation subtomogram, in which the side length is 64. We use a loop to judge whether each slice is visited, instead of the visitation policy of each slice in the SAG algorithm.

The comparison of computing time between Algorithm 1 and 2 is described in the Results section. Algorithm 2 is faster than Algorithm 1, so Algorithm 2 is selected for fine-grained subtomogram alignment. In the optimized SAG fine-grained subtomogram alignment algorithm, the number of x-slices in each iteration is about \(\frac {1}{16}\) to \(\frac {1}{2}\) of side length of subtomogram.

For the original candidate set *R* and *T*, the final result of iteration produces the refined parameters of subtomogram alignment \(R^{k+1} = R^{k} -\frac {\alpha _{k}}{n}\sum _{i=1}^{n}y_{i}^{k}\) and \(T^{k+1} = T^{k} -\frac {\alpha _{k}}{n}\sum _{i=1}^{n}y_{i}^{k}\) through optimized SAG fine-grained subtomogram alignment algorithm (Algorithm 2), where *k* and *k*+1 are the iteration numbers.

### Message passing interface frame parallel fine-grained subtomogram alignment procedure

To find global optimal rotation and translation parameters, it is necessary to perform multiple refining processes from different rotation and translation parameter candidate sets. To initialize on different parameter sets synchronously, we use Message Passing Interface (MPI) frame to calculate the score of dissimilarity in parallel. We compare dissimilarity scores gained by using different candidate rotation and translation parameter sets to find the least dissimilarity score in Algorithm 3. With the MPI parallel model, we can quickly search for the optimal rotation and translation candidate parameter in all candidate sets.

Message Passing Interface is a communication protocol on different computing nodes for concurrent computation, and supports peer to peer and broadcast. MPI is also a messaging application interface that includes protocol and semantic descriptions. MPI is specifically designed to allow applications to run in parallel on multiple independent computers connected over a network in Fig. 1.

We choose MPI frame as parallel programming for several advantages:

∙ MPI is the message passing library that can be regarded as a standard library. In fact, almost all HPC platforms support it.

∙ When we change applications to different platforms that conform to MPI standards, there is little or no need to modify the source code.

∙ There are many functions and a variety of implementations are available.

Finally, we outline some key differences of our stochastic average gradient fine-grained alignment method for the subtomogram alignment from Chen’s approach [20] and Xu’s approach [21]:

1. In Xu’s approach, they use Levenberg-Marquardt algorithm to calculate increment value, which needs total volume data to calculate the Jacobian matrix and parameters. In Chen’s approach, they calculate the cross-correlation coefficient of a 3D matrix in each iteration and find the best rotation and location values in the 3D matrix. They also utilize spherical harmonic function to calculate the new cross-correlation coefficient between the 3D experimental volume and the reference volume, to find the best cross-correlation score in each iteration.

2. Xu’s approach uses stochastic parallel refinement framework. Chen’s approach uses MPI frame to parallelize subtomogram alignment.

3. Our method utilizes a 3D version of stochastic average gradient algorithm to execute fine-grained subtomogram alignment and apply MPI frame to parallelize subtomogram alignment. Our SAG-based fine-grained alignment only needs a partial batch slices of the 3D volume in each iteration.

### Generating simulated cryo-electron tomograms

We downloaded the atomic model from Protein Data Bank (PDB), specified the resolution and voxel spacing, and conducted low-pass filtering of the data. After getting the density maps, we performed random rotation and translation operations. Contrast Transfer Function (CTF) was simulated using a known defocus value. The volume density maps were projected onto the specified tilt angles and angle increment. The projection images were applied with Gaussian-distributed noise and Modulation Transfer Function noise (MTF) to simulate electron optical effect. The projection images were reconstructed with a weighted back projection (WBP) algorithm to produce the simulated subtomogram datasets.

Atomic model (PDB ID:1KP8) was used to generate subtomograms of size 64^{3} with voxel size 0.6nm and -6 *μ*m defocus. We utilized tilt angle ±60^{∘} and ±40^{∘} with 1^{∘} angular increment respectively. The simulations procedure were implemented using the Situs PDB2VOL [25] program to get volume electron density maps.

The central slices of different tilt ranges and SNRs are shown in Fig. 2. Subtomograms with smaller tilt range and lower SNR shows more deformation than noise-free subtomograms (i.e. reference).

### Experimental groEL and groEL/ES subtomograms

The experimental GroEL and GroEL/ES dataset were obtained in [8]. To collect the GroEL_{14}GroES_{7}, 1 *μ*M GroEL_{14} and 5 *μ*M GroES_{7} were incubated in a buffer for 15 min at 30^{∘}*C*, which contained 5mM MgCl_{2}, 5mM KCl, 5 mM ADP, 1mM DTT, and 12.5 mM Hepes (pH 7.5). 3.5 *μ*l of protein solutions were confused with 0.5 *μ*l of a 10 nm BSA-colloidal gold suspension using mesh grids. The sample was vitrified with plunge-freezing. The single-axis tilt series were obtained by a Tecnai G2 Polara microscope, which was equipped with 2k ×2k FEI CCD camera. The tilt series were acquired from tilt angle ±65^{∘} with 2^{∘} or 2.5^{∘} angular increment at a different defocus levels between 7 and 4 *μ*m. The object pixel size was 0.6nm.

## Results

### Classification of experimental groEL and groEL/ES subtomograms

Thousands of subtomograms, which also contain putative particles, were selected manually and aligned to subtomograms average according to cross-correlation. Eliminating lower cross-correlation coefficients (e.g., CCC ≤0.42), the remainder of particles were chosen for subtomogram alignment and classification. The dataset of experimental ∼800kDa GroEL_{14} and GroEL_{14}/GroES_{7} subtomograms complex basically conducted as a quasi-standard in the subtomogram alignment and classification’s research [8, 12, 26, 27].

The 786 subtomograms in the data set were aligned by the average of all subtomograms in the facultative direction and an unsupervised manner. Subsequently, we used an MCO-A classification [12] with 10 initial classes and a seven-fold symmetry. The MCO-A method converged to three different class, whose result is consistent with those published previously in [8, 12, 27, 28]. The central slices with each classification average resulting from the MCO-A classification are shown in Fig. 3, and class 1 is look-like the fitted volume of GroEL_{14}, class 2 is associated with the fitted atomic model of GroEL_{14}/ES_{7}, class 3 is virtually less than the volume of GroEL_{14}.

### Comparison of fine-grained subtomogram alignment accuracy to the baseline methods

We simulated 20 GroEL subtomograms with random rotation and translation of various SNRs under tilt range ±40^{∘} and ±60^{∘} respectively. We first compared our method with Chen’s approach [20] and Xu’s approach [21] to assess the subtomogram alignment accuracy against the noise-free reference volume, which was produced from the GroEL structure (PDB ID: 1KP8). The reference volume was low-pass filtered to 6nm resolution and was used as the starting reference for the alignment procedure.

We aligned the 20 simulated subtomograms with the reference volume using the three methods. The alignment accuracy was assessed using the constrained cross-correlation (CCC) defined in Section Parameter definitions. The resulting CCCs were compared using the t-test of pair-wise data between our method and the two baseline methods, where the data are assumed by normal distribution [29]. We also used non-parametric test without Gaussian assumption (Wilcoxon signed-rank test) to calculate *P*-value, and the results are similar to the t test (Supplementary Section 1).

As shown in Table 1, our method outperformed the two baseline methods using simulated subtomograms of SNR 0.03 and 0.003 under tilt range ±60^{∘}.

The alignment accuracy comparison for subtomograms simulated with tilt angle range ±40^{∘} is shown in Table 2.

We note that although Chen’s method outperformed ours under some conditions, under a more realistic SNR 0.003 with different tilt angle ranges, our method has substantial improvement on the resulting CCC alignment accuracy (Figs. 4 and 5).

We also used 50 particles to evaluate subtomogram alignment accuracy under different conditions and compared the resolution value under the 0.143 criteria of FSC (Supplementary Section 2). This comparison proves that our method outperformed the two baseline methods using simulated subtomgrams of SNR 0.003 under tilt range ±60^{∘} and ±40^{∘}.

### Computation time compared to other methods in subtomogram alignment

Next, we compared the computational time between our SAG fine-grained subtomogram alignment method and the Xu’s method and Chen’s method. For an objective and fair comparison, we implemented the three alignment method in Python and performed them on 20 simulated subtomogram of SNR 0.003 under tilt range ±60^{∘}.

We used the original reference-free model as the initial reference for our algorithm. The most common Reference-free alignment rules are to use the subtomograms average in a random direction as an original reference [28]. The so-called no reference is not without any reference, but does not need a external reference, because external reference leads to reference bias. We recorded the running time of each method in obtaining the best resolution.

Every time the subtomogram alignment method converged, we got a resolution value. By defining the same convergence times, we evaluated which method can get the best resolution value with the shortest convergence times.

After each iteration, we got the subtomograms averaging and used FSC means to measure the resolutions, and then reported the running time for our SAG fine-grained subtomogram alignment method. Afterward, we repeated the protocol using Xu’s method and Chen’s method with an SNR of 0.003 conditions. Finally, we compared the resolutions of the average and the running time in three different subtomogram alignment methods.

The computation time cost of basic SAG fine-grained alignment method and optimized SAG fine-grained alignment method is 50.7 seconds and 40.5 seconds respectively, but Xu’s method and Chen’s method cost 150.2 seconds and 149.4 seconds respectively (Fig. 6). The computation time of different alignment method is the time for each alignment algorithm to be used once. Figure 6 depicts the computation time of different alignment algorithms (basic SAG fine-grained alignment method, optimized SAG fine-grained alignment method, Xu’s method and Chen’s method). We note that our SAG fine-grained alignment method is faster than Xu’s method and Chen’s method in the computation time.

Then we compared the elapsed time of getting the best resolution in three alignment methods. To get the best resolution, different alignment methods may run many times, for example, our optimized SAG-based fine-grained subtomogram alignment method got the best resolution (37.1Å) by iterating 14 times, Xu’s method got the best resolution (40.7Å) with 11 iterations and Chen’s method got the best resolution (39.7Å) with 13 iterations (Fig. 8).

### Reference-free fine-grained alignment of subtomograms on simulated and experimental data set

We tested our SAG fine-grained alignment method and the two baseline alignment methods for subtomogram alignment without external reference. We first tested different alignment method on simulated subtomograms data set. Then we applied the three methods to the experimental GroEL subtomograms data set (Fig. 3) [8]. Subtomograms data sets were divided into odd and even data sets and aligned separately. The odd and even datasets were averaged separately. The normalised cross-correlation coefficient between the odd and even average density map over corresponding shells in Fourier space is measured by FSC to get many FSC values. Under the condition of FSC 0.143 that is “gold-standard” [30], the corresponding resolution values were calculated by many FSC and voxel values, and then the odd and even data sets were combined as the subtomograms average. The subtomograms average was used as a new reference and was low-pass filtered until the end of the cycle or the frequency did not meet the conditions.

We averaged the subtomograms after reference-free subtomogram alignment and computed their resolution curves. For simulated subtomograms dataset, our SAG fine-grained alignment method was applied for subtomogram alignment at SNR of 0.003 and tilt angle range ±60^{∘} (Figs. 7 and 8), and finally obtained the 37.1Å average resolution after 14 iterations according to gold-standard criteria of 0.143 FSC [30]. Applying Xu’s method and Chen’s method to subtomogram alignment respectively, the final average resolution (0.143 FSC criteria) was 40.7Å after 11 iterations and 39.7Å after 13 iterations respectively.

Our SAG fine-grained subtomogram alignment method can get better resolution than Xu’s alignment method, and slightly better than Chen’s alignment method. During the subtomogram averaging, we often need thousands of subtomograms and spend weeks to complete. Our SAG fine-grained subtomogram alignment method can reduce computational cost and get better resolution compared to the two baseline methods.

We then applied the three methods to an experimental GroEL subtomogram dataset (Fig. 3). Throughout our iterative alignment and averaging procedure, averaging of GroEL subtomograms transformed from a blurring structure to the barrel structure of the seven symmetry, resembling the true GroEL structure. According to the 0.143 criteria of FSC, the resolution of the final average was 25.1Å after 4 iterations (Fig. 9). In order to calculate the FSC resolution, all alignment methods were performed on the dataset divided into two independent halves.

Using Xu’s alignment method and Chen’s alignment method, the resolution of the final average (0.143 criteria) was 32.5Å after 9 iterations and 27.9Å after 12 iterations according to the FSC. Furthermore, we utilized the final average, which was acquired with different alignment methods, to fit atomic structures of complexes (PDB ID: 1KP8) in Fig. 9. From Fig. 9, the final average acquired by our SAG-based fine-grained alignment method is better than the final average acquired by Xu’s alignment method and Chen’s alignment method in subtomogram alignment procedure. Therefore, our SAG-based fine-grained alignment method outperforms Xu’s alignment method and Chen’s alignment method for subtomogram reference-free averaging.

We also added FSC curves for reference-free fine-grained alignment of subtomograms on simulated and experimental data set according to the 0.143 criterion (Supplementary Section 3).

## Discussion

In this article, we propose the stochastic average gradient (SAG) fine-grained alignment method by optimizing constrained dissimilarity scores. However, the original SAG algorithm was firstly applied to the two-dimensional matrix. So we designed two versions of 3D SAG-based fine-grained alignment method on subtomogram alignment procedure.

Since randomness introduces variance, standard stochastic gradient descent algorithm implements sublinear rates. Our SAG fine-grained subtomogram alignment method only selects the slice or the mini-batch slices along the x-axis in the experimental data in each iteration, maintains the memory of the latest gradient value calculated for each slice and the whole iteration produces a gradient of the subtomogram alignment. The size of mini-batch slices depends on the side length of subtomogram data. So our SAG fine-grained subtomogram alignment method has a linear convergence rate. On the other hand, by comparing the computational time between Algorithm 1 and 2, Algorithm 2 is faster than Algorithm 1, so Algorithm 2 is selected for fine-grained subtomogram alignment. But, Xu’s method and Chen’s method require the whole 3D volume to do the calculation in each iteration, and thus take more time. Compared to other methods, our method requires more temporary space in memory.

For the alignment accuracy comparison, Chen’s method performs better than our SAG fine-grained alignment method on SNR=0.03 and SNR=0.01 subtomograms under tilt range ±40^{∘}, probably because Chen’s method searches for the best cross-correlation coefficient value between 3D cross-correlation matrix, which is accurate under higher SNR. However, our method is more robust to a more realistic low SNR setting of SNR 0.003.

Our SAG fine-grained alignment method uses MPI frame to calculate the score of dissimilarity in parallel for subtomogram alignment, however, using MPI is not easy to program and requires some experience, unlike multi-threading.

## Conclusion

Our SAG fine-grained subtomogram alignment method optimizes a constrained dissimilarity score in real space. It is obvious that our method is more accurate on subtomogram alignment and averaging at SNR=0.003 of tilt range ±60^{∘} and ±40^{∘}. By comparing the elapsed time of different alignment method, our SAG fine-grained subtomogram alignment method is faster than Xu’s method and Chen’s method, and our method obtains better resolution, which is well validated on the simulated subtomograms datasets and experimental GroEL and GroEL/ES subtomograms datasets.

Additionally, we utilized a very efficient Message Passing Interface (MPI) frame parallel refinement alignment procedure, which is particularly designed to apply in parallel on multiple independent computers nodes connected by a network. MPI significantly accelerates the simultaneous refinement of multiple subtomogram alignment candidates set.

We will consider classification problems in the future and try to use new classification algorithms, not only including deep learning. In addition, we will continue to study subtomogram alignment. We will also test the new alignment algorithm with larger, updated subtomograms data sets.

Computational analysis of cryo-electron tomography is an emerging field due to its inherent content complexity and imaging limits [27, 31–37]. Our method serves as a useful step towards improved systematic recovery of macromolecular structures captured by such tomograms.

## Availability of data and materials

Simulated GroEL (PDB ID:1KP8) subtomograms are available in Protein Data Bank. Experimental GroEL and GroEL/ES subtomograms datasets were used by Förster et al. [8]. The source code of the SAG-based fine-grained subtomogram alignment algorithm is available at https://github.com/xulabs/projects.

## References

- 1
Asano S, Fukuda Y, Beck F, Aufderheide A, Förster F, Danev R, Baumeister W. A molecular census of 26s proteasomes in intact neurons. Science. 2015; 347(6220):439–442.

- 2
Jin L, Milazzo A-C, Kleinfelder S, Li S, Leblanc P, Duttweiler F, Bouwer JC, Peltier ST, Ellisman MH, Xuong N-H. Applications of direct detection device in transmission electron microscopy. J Struct Biol. 2008; 161(3):352–358.

- 3
Murata K, Liu X, Danev R, Jakana J, Schmid MF, King J, Nagayama K, Chiu W. Zernike phase contrast cryo-electron microscopy and tomography for structure determination at nanometer and subnanometer resolutions. Structure. 2010; 18(8):903–912.

- 4
Rigort A, Bäuerlein FJ, Villa E, Eibauer M, Laugks T, Baumeister W, Plitzko JM. Focused ion beam micromachining of eukaryotic cells for cryoelectron tomography. Proc Natl Acad Sci. 2012; 109(12):4449–4454.

- 5
Han R, Zhang F, Gao X. A fast fiducial marker tracking model for fully automatic alignment in electron tomography. Bioinformatics. 2017; 34(5):853–863.

- 6
Grünewald K, Desai P, Winkler DC, Heymann JB, Belnap DM, Baumeister W, Steven AC. Three-dimensional structure of herpes simplex virus from cryo-electron tomography. Science. 2003; 302(5649):1396–1398.

- 7
Xu M, Singla J, Tocheva EI, Chang Y-W, Stevens RC, Jensen GJ, Alber F. De novo structural pattern mining in cellular electron cryotomograms. Structure. 2019; 27(4):679–691.

- 8
Förster F, Pruggnaller S, Seybert A, Frangakis AS. Classification of cryo-electron sub-tomograms using constrained correlation. J Struct Biol. 2008; 161(3):276–286.

- 9
Bartesaghi A, Sprechmann P, Liu J, Randall G, Sapiro G, Subramaniam S. Classification and 3d averaging with missing wedge correction in biological electron tomography. J Struct Biol. 2008; 162(3):436–450.

- 10
Chen Y, Pfeffer S, Fernández JJ, Sorzano COS, Förster F. Autofocused 3d classification of cryoelectron subtomograms. Structure. 2014; 22(10):1528–1537.

- 11
Xu M, Beck M, Alber F. Template-free detection of macromolecular complexes in cryo electron tomograms. Bioinformatics. 2011; 27(13):69–76.

- 12
Hrabe T, Chen Y, Pfeffer S, Cuellar LK, Mangold A-V, Förster F. Pytom: a python-based toolbox for localization of macromolecules in cryo-electron tomograms and subtomogram analysis. J Struct Biol. 2012; 178(2):177–188.

- 13
Amat F, Comolli LR, Moussavi F, Smit J, Downing KH, Horowitz M. Subtomogram alignment by adaptive fourier coefficient thresholding. J Struct Biol. 2010; 171(3):332–344.

- 14
Frazier Z, Xu M, Alber F. Tomominer and tomominercloud: A software platform for large-scale subtomogram structural analysis. Structure. 2017; 25(6):951–961.

- 15
Walz J, Typke D, Nitsch M, Koster AJ, Hegerl R, Baumeister W. Electron tomography of single ice-embedded macromolecules: three-dimensional alignment and classification. J Struct Biol. 1997; 120(3):387–395.

- 16
Hobson EW. The Theory of Spherical and Ellipsoidal Harmonics. Cambridge, English: Cambridge University Press; 1931.

- 17
Kovacs JA, Wriggers W. Fast rotational matching. Acta Crystallogr D Biol Crystallogr. 2002; 58(8):1282–1286.

- 18
Makadia A, Daniilidis K. Rotation recovery from spherical images without correspondences. IEEE Trans Pattern Anal Mach Intell. 2006; 28(7):1170–1175.

- 19
Xu M, Beck M, Alber F. J Struct Biol. 2012; 178(2):152–164.

- 20
Chen Y, Pfeffer S, Hrabe T, Schuller JM, Förster F. Fast and accurate reference-free alignment of subtomograms. J Struct Biol. 2013; 182(3):235–245.

- 21
Xu M, Alber F. High precision alignment of cryo-electron subtomograms through gradient-based parallel optimization. BMC Syst Biol. 2012; 6(1):18.

- 22
Roux NL, Schmidt M, Bach FR. A stochastic gradient method with an exponential convergence _rate for finite training sets. In: Advances in Neural Information Processing Systems. Lake Tahoe: Curran Associates, Inc.: 2012. p. 2663–71.

- 23
Brink DM, Satchler GR. Angular momentum; 2nd ed.Oxford: Clarendon Press; 1968.

- 24
Weisstein EW. CRC Concise Encyclopedia of Mathematics. Boca Raton: CRC Press; 1999.

- 25
Wriggers W, Milligan RA, McCammon JA. Situs: a package for docking crystal structures into low-resolution maps from electron microscopy. J Struct Biol. 1999; 125(2-3):185–195.

- 26
Pfeffer S, Brandt F, Hrabe T, Lang S, Eibauer M, Zimmermann R, Förster F. Structure and 3d arrangement of endoplasmic reticulum membrane-associated ribosomes. Structure. 2012; 20(9):1508–1518.

- 27
Zhao Y, Zeng X, Guo Q, Xu M. An integration of fast alignment and maximum-likelihood methods for electron subtomogram averaging and classification. Bioinformatics. 2018; 34(13):227–236.

- 28
Scheres SH, Melero R, Valle M, Carazo J-M. Averaging of electron subtomograms and random conical tilt reconstructions through likelihood optimization. Structure. 2009; 17(12):1563–1572.

- 29
Xu M, Kao M-CJ, Nunez-Iglesias J, Nevins JR, West M, Zhou XJ. BMC Genomics. 2008; 9(1):12.

- 30
Scheres SH, Chen S. Nat Methods. 2012; 9(9):853.

- 31
Han R, Wan X, Wang Z, Hao Y, Zhang J, Chen Y, Gao X, Liu Z, Ren F, Sun F, et al.Autom: a novel automatic platform for electron tomography reconstruction. J Struct Biol. 2017; 199(3):196–208.

- 32
Han R, Wan X, Li L, Lawrence A, Yang P, Li Y, Wang S, Sun F, Liu Z, Gao X, Zhang F. Autom-dualx: a toolkit for fully automatic fiducial marker-based alignment of dual-axis tilt series with simultaneous reconstruction. Bioinformatics. 2018; 35(2):319–328.

- 33
Han R, Bao Z, Zeng X, Niu T, Zhang F, Xu M, Gao X. A joint method for marker-free alignment of tilt series in electron tomography. Bioinformatics. 2019; 35(14):249–59.

- 34
Li R, Zeng X, Sigmund SE, Lin R, Zhou B, Liu C, Wang K, Jiang R, Freyberg Z, Lv H, et al.Automatic localization and identification of mitochondria in cellular electron cryo-tomography using faster-rcnn. BMC Bioinformatics. 2019; 20(3):132.

- 35
Zhou B, Guo Q, Wang K, Zeng X, Gao X, Xu M. Feature decomposition based saliency detection in electron cryo-tomograms. In: 2018 IEEE International Conference on Bioinformatics and Biomedicine (BIBM). Madrid: IEEE: 2018. p. 2467–73.

- 36
Liu C, Zeng X, Wang K, Guo Q, Xu M. Multi-task learning for macromolecule classification, segmentation and coarse structural recovery in cryo-tomography. In: British Machine Vision Conference 2018, BMVC 2018, Northumbria University, Newcastle, UK, September 3-6, 2018: 2018. p. 271. http://bmvc2018.org/contents/papers/1007.pdf. Accessed 18 Apr 2019.

- 37
Wang K, Zeng X, Liang X, Huo Z, Xing E, Xu M. Image-derived generative modeling of pseudo-macromolecular structures - towards the statistical assessment of electron cryotomography template matching. In: British Machine Vision Conference 2018, BMVC 2018, Northumbria University, Newcastle, UK, September 3-6, 2018: 2018. p. 130. http://bmvc2018.org/contents/papers/0532.pdf. Accessed 18 Apr 2019.

## Acknowledgments

We thank Prof. Xingwu Liu for fruitful discussions and suggestions. We thank Dr. Yuxiang Chen and Dr. Haiyang Li for technical assistance. We thank Dr. Friedrich Förster for sharing the GroEL subtomograms for subtomogram alignment and averaging test. We thank Alex Singh for revising the English writing.

### Funding

This publication is based upon work supported by the King Abdullah University of Science and Technology (KAUST) Office of Sponsored Research (OSR) under Award No. URF/1/2602-01 and URF/1/3007-01. This work was supported by National Key R&D Program of China, Grant No.2017YFB1002703 and the Key Research Program of Frontier Science of Chinese Academy of Sciences, Grant No.QYZDB-SSW-SMC004. This work was supported in part by U.S. National Institutes of Health (NIH) grant P41 GM103712. MX acknowledges support of the Samuel and Emma Winters Foundation. XZ1 was supported by a fellowship from Carnegie Mellon University’s Center for Machine Learning and Health. The funder played no role in the design of the study and collection, analysis, and interpretation of data and in writing the manuscript.

## Author information

### Affiliations

### Contributions

MX, YL, XZ2, HL, and XZ1 conceived the project, with XZ1 corresponding to Xiangrui Zeng and XZ2 corresponding to Xiaofang Zhao. YL, XZ1 and MX performed the research, designed methods, implemented methods, carried out experiments and wrote the manuscript. YL and SL modified code. MX, YL, HL, XZ1, XZ2 and XG improved the paper. All the authors approved the final version of the manuscript.

### Corresponding authors

Correspondence to Yongchun Lü or Min Xu.

## Ethics declarations

### Ethics approval and consent to participate

Not applicable.

### Consent for publication

Not applicable.

### Competing interests

The authors declare that they have no competing interests.

## Additional information

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver(http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.

## About this article

### Cite this article

Lü, Y., Zeng, X., Zhao, X. *et al.* Fine-grained alignment of cryo-electron subtomograms based on MPI parallel optimization.
*BMC Bioinformatics* **20, **443 (2019) doi:10.1186/s12859-019-3003-2

#### Received

#### Accepted

#### Published

#### DOI

### Keywords

- Stochastic average gradient
- Fine-grained alignment
- Cryo-ET
- MPI