원시데이터 수집 시스템
선정목록으로

ClusterAlign: A fiducial tracking and tilt series alignment tool for thick sample tomography

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Shahar Seifer — Chemical and Biological Physics, Weizmann Institute of Science, Rehovot, Israel
  2. Michael Elbaum — Chemical and Biological Physics, Weizmann Institute of Science, Rehovot, Israel
DOI
10.1017/s2633903x22000071
저널
Biological Imaging
발행년도
2022
발행기관
Cambridge University Press
피인용수
12
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1017/s2633903x22000071
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4289861393

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Thick specimens, as encountered in cryo-scanning transmission electron tomography, offer special challenges to conventional reconstruction workflows. The visibility of features, including gold nanoparticles introduced as fiducial markers, varies strongly through the tilt series. As a result, tedious manual refinement may be required in order to produce a successful alignment. Information from highly tilted views must often be excluded to the detriment of axial resolution in the reconstruction. We introduce here an approach to tilt series alignment based on identification of fiducial particle clusters that transform coherently in rotation, essentially those that lie at similar depth. Clusters are identified by comparison of tilted views with a single untilted reference, rather than with adjacent tilts. The software, called ClusterAlign, proves robust to poor signal to noise ratio and varying visibility of the individual fiducials and is successful in carrying the alignment to the ends of the tilt series where other methods tend to fail. ClusterAlign may be used to generate a list of tracked fiducials, to align a tilt series, or to perform a complete 3D reconstruction. Tools to evaluate alignment error by projection matching are included. Execution involves no manual intervention, and adherence to standard file formats facilitates an interface with other software, particularly IMOD/etomo, tomo3d, and tomoalign.

본문 57,740자

본문 펼치기
[doi:10.1017/S2633903X22000071](https://doi.org/10.1017/S2633903X22000071) RESEARCH ARTICLE # ClusterAlign: A fiducial tracking and tilt series alignment tool for thick sample tomography Shahar Seifer* and Michael Elbaum Chemical and Biological Physics, Weizmann Institute of Science, Rehovot, Israel [*Corresponding author. E-mail: Shahar.seifer@weizmann.ac.il](mailto:Shahar.seifer@weizmann.ac.il) Received: 17 March 2022; Revised: 04 July 2022; Accepted: 18 July 2022 Keywords: fiducial tracking; tilt series alignment; scanning TEM; cryo-EM tomography; thick cryo sample Abstract Thick specimens, as encountered in cryo-scanning transmission electron tomography, offer special challenges to conventional reconstruction workflows. The visibility of features, including gold nanoparticles introduced as fiducial markers, varies strongly through the tilt series. As a result, tedious manual refinement may be required in order to produce a successful alignment. Information from highly tilted views must often be excluded to the detriment of axial resolution in the reconstruction. We introduce here an approach to tilt series alignment based on identification of fiducial particle clusters that transform coherently in rotation, essentially those that lie at similar depth. Clusters are identified by comparison of tilted views with a single untilted reference, rather than with adjacent tilts. The software, called ClusterAlign, proves robust to poor signal to noise ratio and varying visibility of the individual fiducials and is successful in carrying the alignment to the ends of the tilt series where other methods tend to fail. ClusterAlign may be used to generate a list of tracked fiducials, to align a tilt series, or to perform a complete 3D reconstruction. Tools to evaluate alignment error by projection matching are included. Execution involves no manual intervention, and adherence to standard file formats facilitates an interface with other software, particularly IMOD/etomo, tomo3d, and tomoalign. Impact Statement Fiducial markers such as gold nanoparticles are often added to samples in transmission electron tomography to assist in image alignment prior to 3D reconstruction. Particularly for thick samples, tracking of individual fiducials often fails due to low contrast. ClusterAlign is a software that follows the structure of fiducial clusters, rather than individuals, to serve for alignment of the tilt series and 3D reconstruction. 1. Introduction Electron tomography offers a powerful set of tools to reveal cellular anatomy in three dimensions. The most popular implementation is that of tilt tomography in the transmission microscope. A set of 2D projection images is recorded, from which a 3D volume representation is reconstructed by one of the available algorithms, which include weighted back projection, direct Fourier inversion, and iterative techniques. An essential intermediate step is that of aligning the 2D images to approximate the ideal rotation of a rigid body around a unique tilt axis. In practice, the mechanical mechanism of rotation always introduces some shifts or drift that must be corrected by translation of the images. Additionally, electronoptical distortions as well as geometric distortions due to beam exposure may need to be corrected for a © The Author(s), 2022. Published by Cambridge University Press. This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike licence [(https://creativecommons.org/licenses/by-nc-sa/4.0/),](https://creativecommons.org/licenses/by-nc-sa/4.0/) which permits non-commercial re-use, distribution, and reproduction in any medium, provided the same Creative Commons licence is included and the original work is properly cited. f successful reconstruction. In order to facilitate the alignment, high contrast nanoparticles such as colloidal gold are often distributed over the specimen in order to assist in correcting or compensating these faults. Tracking the nanoparticles from tilt to tilt across the series serves to establish precisely the tilt axis orientation and to bring the 2D images into alignment around it. As manual tracking is tedious, a number of algorithms have been developed for automatic detection and tracking of the fiducial markers <sup>(1–6)</sup> . Despite significant advances in software, precise tracking of fiducials can still be difficult to automate, however. Alternatively, a number of fiducial-less alignment algorithms have been developed <sup>(7–13)</sup> . A recent and successful addition is AreTomo, which is based on successive matching of projections from partial reconstruction to align the tilt series <sup>(14)</sup> . In such cases, added fiducials may be used as a diagnostic of the alignment quality and indicator of the need for follow-up refinement. The widespread adoption of tomographic acquisition in batch mode accentuates the need for unattended alignment as a first step in data interpretation. The introduction of scanning transmission electron microscopy <sup>(15,16)</sup>, as well as soft X-ray imaging <sup>(17–19)</sup> modalities, has expandedthe range of specimenthickness accessibleto cryo-tomography <sup>(20)</sup> . The specimen can no longer be considered a thin slab when its thickness may typically reach half the lateral field of view. This introduces specific issues for alignment. The pileup of features in a thick specimen flattens the contrast overall, hindering the effectiveness of fiducial-less alignment, and on the other hand small fiducials may be poorly resolved in transmission through the thick material. This problem often becomes acute at high tilt angles where the projected thickness increases, and moreover, high-contrast features in the sample itself may hide or shadow the fiducials over a limited range of tilt angles. Thus, it becomes difficult even to identify individual particles reliably in every projection and to track the particles across large gaps in tilt views. One popular approach is to build a model of the rotation that can predict the projected position of individual fiducial markers, allowing the user to accept or correct the prediction so as to fill the gaps <sup>(5–21)</sup> . Other approaches generate overlapping chains of landmarks, each covering a part of the tilt range <sup>(8–12)</sup>, or make use of a local invariant criterion <sup>(3)</sup> . Further developments are underway, with an emphasis on unattended operation to support the ever-increasing throughput of data acquisition. Here we offer a complementary strategy to that of following individual fiducial markers. We identify extended clusters that transform geometrically between each of the tilted projections and a single reference view at low tilt angle, where visibility is optimal. Essentially, these are the subsets of fiducials that lie at similar height perpendicular to the view direction, and whose distributions transform with the cosine of the tilt angle. Multiple such clusters may be found and may even overlap, for example, when particles are located on two sides of a slab. The verified cluster vertices are then used as fiducials, rather than the locations of individual particles. Thus, we avoid the need to follow the same particle sequentially from tilt to tilt, and the cluster location is inherently robust to disappearance of individual particles. The relative motions of multiple identified cluster vertices are then used as fiducial markers to constrain the precise position and angle of the tilt axis by least squares fitting. The program can output the list of tracked fiducials in a format compatible with IMOD <sup>(5)</sup> or Tomoalign <sup>(9)</sup>, a stack containing the aligned tilt series, or a completed 3D reconstruction. In addition, a text file reports the transformations and error estimates generated during the processing. Alignment error is primarily translational and thus expected to be corrected by solving for Δx,Δy shifts of the image, but the algorithm is tolerant to moderate global in-plane and out of plane rotations. Note that clusters are defined by a common height with respect to the tilt axis and need not be composed of apparently adjacent fiducials in any given projection. Thus, the aim of the software is to optimize translational alignments under conditions of problematic fiducial visibility without manual intervention. 2. Method 2.1. Software features A flowchart of the processing appears in Figure 1. The workflow involves three major stages: fiducial particle identification, cluster assignment, and rigid body fitting of the tilt axis. Compatibility is g g g Figure 1. A flowchart of the ClusterAlign processing workflow. maintained with IMOD file formats and conventions. The software is written in C#, makes use of the EMGU/OpenCV library, <sup>(22,23)</sup> and is available as open source under the GNU-GPLv3 license (see Data Availability Statement). Processing 800 fiducials in a tilt series of 57 frames of 2k � 2k frame size requires 4 min on a 24-core Intel Xeon-based computer, and the reconstruction using Nvidia RTX 3060 GPU with binning of 2 takes an additional 4 min. The key input parameters appear in Table 1 and the user interface in Figure 2. Most parameters are selfexplanatory. Significance of those related to cluster assignment is explained below. Practical details appear in the user manual (see Data Availability Statement). f Parameter Purpose Table 1. Settings. File path Path for input/output files Tilt series name Name of the tilt series stack file of the images (*.mrc) Tilt angle file Name of a text file that contains tilt angles in degrees, one value per line according to the order of images in the tilt series file (e.g., *.rawtlt file) Rotation axis X or Y, according to approximate rotation axis (X is horizontal), or Angle = 0–179° to request pre-rotation of the images that aligns the rotation axis with Y Cluster size Maximum radius of a cluster in pixels Ncluster Minimum count of particle members to comprise a cluster. Enter “�1” for automatic adjustment Fiducial size Average size expected of fiducials in pixels Fiducial location tolerance The tolerance allowed for matching relative locations of cluster members, measured in % relative to fiducial size (typically between 100–300%) Max. number of fiducials Maximum number of particles to be detected in a frame, often set to twice the actual number of particles to achieve acceptable sensitivity Center slice The number of the slice to use as the reference or center tilt (if �1 then automatically the slice of smallest tilt angle is chosen) Tracking threshold (%) Minimum threshold in percentage of occurrences from available slices required to accept validity of a fiducial “trajectory” Optical iteration No for a single pass, Yes to repeat the entire image analysis in attempt to increase the tracking threshold, while increasing detection sensitivity at predicted locations of tracked fiducials Cosine sampling? True when the aspect ratio of pixels is adjusted according to cos(θ) Alignment tolerance Maximum alignment shift allowed Fiducials are bright? False for bright field images and True for dark field The software supports optional loading of external fiducial files and pre-aligned stacks for refinement, optional reconstruction in single or dual axis, and loading of an attention mask for special uses explained in the user manual. There is also support for cosine sampling tomograms, which can be acquired by varying the aspect ratio of the scan pattern <sup>(24)</sup> . The user may choose to run the analysis in two iterations to enhance precisions. The information that is carried between iterations is global and does not include particular trajectories. The knowledge gained in the first iteration is used to update the tracking threshold, to generate attention maps, and to determine fiducial size. The predicted locations of fiducial according to a rigid body model are displayed during the second iteration. The output of the program is a text-based fiducial list of the form used by Tomoalign (.fid.txt), which can be converted to the binary IMOD format (.fid) using the command point2model. An aligned tilt series is generated either by imposing only translation corrections without adjustment of the tilt axis (_jali.mrc), or in standard form (_ali.mrc) globally aligned with tilt axis vertical and centered. Optionally, the package can output a Simultaneous Iterative Reconstruction Technique (SIRT) reconstruction based on the Astra toolbox <sup>(25,26)</sup>, which corresponds to the exact fitted rotation axis. (This option is available only on computers equipped with GPU and Matlab.) The default generated tilt series (_jali.mrc) best matches our Matlab tomogram reconstruction using rotation axis properties found in file (.output.txt), while the standard form is intended for compatibility with other reconstruction software such as IMOD or tomo3d <sup>(27)</sup> . No attempt is made to optimize view angles that deviate from the mechanical tilts, nor local alignments to compensate for specimen distortion. Optimizations such as focused local alignment or g g g Figure 2. The ClusterAlign user interface. See the user manual for more information. global distortion corrections may be performed in other dedicated software such as Tomoalign <sup>(9)</sup>, EMClarity <sup>(10)</sup>, or constrained reconstruction model <sup>(28)</sup> . Furthermore, the Astra toolbox can reconstruct from several rotation axes at once. We provide a Matlab module for dual axis reconstruction that can be used after separate alignment of each tilt series in ClusterAlign. The method involves rotating the second series by 90° and passing to Astra the 3D center coordinates of each tilt series (example is shown in the Supplementary Materials). 2.2. Particle localization Detection and localization of particles is an initial step before the actual cluster analysis. The locations of particles are found based on template matching using an average generated from the measured data, an approach that has been used in RAPTOR <sup>(1)</sup> . The main difference from previous works is in the method of threshold calculation and in the way particle candidates are selected to generate a template. The main distinctive feature that allows initial marking the center of particles is the “convoluted divergence,” which is calculated as follows: GðMÞ = qf f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f ðkerx⊛∇xMÞ <sup>2</sup> þðkery⊛∇yMÞ <sup>2</sup>, where ∇xM is the gradient in the x direction of the raw gray image. Similarly ∇yM is the gradient for the y direction ker denotes a small matrix with nonzero elements over positions of a ring that envelopes the f range of possible fiducial particle sizes as entered in the user settings. The values of the nonzero elements pf f i f f i f f i f f i f f i f - - pf f i f f i f f i f f i f f i f are ðkerxÞi,j = j= i <sup>2</sup> þ j <sup>2</sup>, kery i,j <sup>= i=</sup> i <sup>2</sup> þ j <sup>2</sup>, where i and j are in reference to the center element of the pf f i f f i f f i f f i f f i f i <sup>2</sup> þ j <sup>2</sup> - i,j <sup>= i=</sup> pf f i f f i f f i f f i f f i f i <sup>2</sup> þ j <sup>2</sup> are ðkerxÞi,j = j= i <sup>2</sup> þ j <sup>2</sup>, kery i,j <sup>= i=</sup> i <sup>2</sup> þ j <sup>2</sup>, where i and j are in reference to the center element of the matrix. ðA ⊛ BÞ denotes convolution of A with B. The next step is to dilate (i.e., replace pixel values by maxima values of) the image of convoluted divergence,GðM Þ, using a mask with elements 1 over a filled circle the size of the largest particle expected, and elements 0 outside the circle. The locations where GðM Þ = DilatedfGðM Þg are the peaks of such spots and are considered as candidate fiducial locations. Although the implementation is different, the detection algorithm bears a resemblance to the radiality transform used in the SRRF fluorescence localization microscopy method <sup>(29)</sup> . Images that have been pre-aligned by cross-correlation or other means contain data-free margins with a sharp gradient at the edges. The program identifies the margins based on regions with zero values of GðM Þ and removes these margins from further processing. For each projection in the tilt series, the raw image M[n] is band pass filtered between spatial periods of 1/3 and 20 of the fiducial size, as defined in the user settings panel. The result after further manipulations is a regularized gray image M <sup>†</sup> [n]. Regions at the sides of M <sup>†</sup> that are outside the expected projection of a thin layer in the center tilt are masked since any fiducial found there will not be traceable to one that appears in the center slice. A threshold of the peaks in M <sup>†</sup> should determine which of the candidate locations of fiducial particles are to be accepted for the next screening process. The maximum allowed number of peaks is determined by the user-defined “maximum number of fiducials” (NfidMax). Initial threshold is calculated by the triangle type threshold algorithm found in EMGU/OpenCV. Then, M <sup>†</sup> is temporarily multiplied by a mask of spots around the locations of candidate fiducials and the number of contours is counted using the FindContours function. If the count is larger than the maximum allowed number of fiducials, then the threshold is increased incrementally and the process is repeated until the number of fiducials is reduced to fall within the expected range. If such iterations fail, the threshold is determined based on the histogram of gray levels and the total expected area of fiducials. In the next step, the average image of potential fiducials is generated based on their selected locations. Since we wish to reduce artifacts at sharp edges, the fiducials are filtered according to isotropy. An identified fiducial is consideredsufficiently isotropic for inclusion in the average if the normalizedcorrelation between its image and its transposed image is greater than 0.4. This criterion also filters small clusters of particles from consideration. The average fiducial image serves as a template, which is correlated with M <sup>†</sup> to generate a map H (using the MatchTemplate function in EMGU/OpenCVof type “correlation-normalized”). The peaks in the correlation map H are considered the candidates for precise locations of the fiducial particles. In order to select the best candidates counted up to NfidMax, the process of finding the suitable threshold is repeated as described above, this time based on the gray levels of M <sup>†2</sup> - H and a mask of the candidate locations convoluted with maximum expected fiducial size. The final locations are selected from those candidate locations according to the threshold. This rather elaborate protocol achieves a high sensitivity (up to 99%) of nanoparticle detection in the sample, excluding most of the artifacts (false negative expected between 1 and 6%) while optimizing the precision of locations reported for the selected particles. 2.3. Fiducial registration by clusters With a list of detected particle locations in each projection image, the next step is to track them throughout the tilt series. The conventional approach is to track fiducials that are displaced in a direction perpendicular to the tilt axis in adjacent tilt images, working incrementally through the stack. For thick specimens, this approach is not robust because of the very large displacements observed, and because of the possibility for a tracked particle to disappear behind a dense object in the specimen. We apply here an alternative strategy based on recognition of particle clusters. , kery g g g Figure 3. Tracking a fiducial across different projections is based on comparing the normalized vectors pointing from each of the detected particle to the surrounding particles in all possible clusters, and approving the cluster association if a sufficient number of vectors match the corresponding patten in the zero-tilt reference image. Each particle location in every slice is selected as a vertex, from which vectors are drawn to all neighboring particles within the user-defined maximum cluster radius. Vector lengths are normalized in the component perpendicular to the tilt axis by the cosine of the tilt angle. The set of vectors emerging from each vertex is then compared between the tilted images and the common center reference image (see Figure 3). Matches are accepted within a tolerance defined in the user settings, typically to 200% of the average fiducial size. (The tolerance allows for some displacement in the z plane.) When the number of matching vectors is greater than a threshold number NCluster (which may be defined by the user or automatically) the vertex is considered a candidate for tracking of a given fiducial at a given slice. If these candidates are indeed unique and are found in a sufficient number of slices (in terms of a user-defined “tracking threshold”), the vertex fiducials are registered as locations of a bona fide fiducial for tracking. Note that recognition of the vector pattern is robust to translations, so the strategy of comparison between tilted projections and an untilted reference does not require a pre-alignment of the tilt series. Tracking fiducials is the most demanding task in terms of computation time, so the calculations are handled by multi-threading of several CPU cores. Since the success of pairing depends sometimes on the order of the search, the process is not completely deterministic, and thus we may observe a small variability of results for certain ranges of parameters. In particular, collisions may occur where a given particle may be assigned at different tilts to different clusters. Such collisions are detected and removed in advance of the registration of the matches. 2.4. Rigid body analysis - The goal is to align the images by removing the translational shifts ΔxðnÞ <sup>, Δy</sup> ðnÞ in every slice n, which originate in mechanical jitter or optical distortions. Thus, to find the translational shifts it is necessary to fit the available information on the set of fiducial particles p at slice n, (x <sup>p</sup> ðnÞ <sup>, yp</sup> ðnÞ <sup>), with a model. The model</sup> considered for rigid body rotation with shifts is <sup>p</sup> ðnÞ <sup>, yp</sup> ð 0 B B @ ðnÞ y <sup>p</sup> ðnÞ z <sup>p</sup> ðnÞ x <sup>p</sup> c y <sup>p</sup> c z <sup>p</sup> c 0 B @ ΔxðnÞ ΔyðnÞ 0 x <sup>p</sup> ð 1 C ! C A <sup>= A</sup> ð <sup>ω</sup> θnÞ 1 C A 1 C A: (1) 0 B @ ðnÞ We denote the center index c as the one parallel to the tilt angle θ = 0. For each vertex, the values x <sup>p</sup> c <sup>p</sup> c <sup>and y</sup> c <sup>p</sup> c <sup>and y</sup> c <sup>p</sup> are known from the projected image at θ = 0. Similarly, at every projection angle θn the locations x <sup>p</sup> ðnÞ <sup>, yp</sup> ðnÞ are known with respect to the common lab frame. The rotation axis is defined as <sup>p</sup> ðnÞ <sup>, yp</sup> ð cos ψ sinφ cos ψ cos φ sin ψ 1 C A, ω! = 0 B @ f where φ denotes the azimuth of the rotation axis projected on the x-y plane in the center framework, and ψ is the out of plane angle. Assuming that the sample (and stage) rotates by a tilt angle θn around a general fixed axis ω!, the transformation matrix based on(30) is found 0 B B @ 1 C C A cos θ I þ ð1 - cos θÞ cos <sup>2</sup> ψ sin <sup>2</sup> φ cos <sup>2</sup> ψ cos φsin φ cos ψ sin ψ sin φ cos <sup>2</sup> ψ cos φ sinφ cos <sup>2</sup> ψ cos <sup>2</sup> φ cos ψ sin ψ cos φ (2) cos ψ sin ψ sin φ cos ψ sin ψ cos φ sin <sup>2</sup> ψ 1 C CA <sup>:</sup> AðθÞ <sup>=</sup> þ sinθ 0 B B @ 0 - sin ψ cos ψ cos φ sin ψ 0 - cos ψ sin φ - cos ψ cos φ cos ψ sin φ 0 We solve iteratively for the height of fiducial p in the sample, z <sup>p</sup> c <sup>, and for the projected stage translations</sup> Δx n½ �, Δy n½ - based on the inverse of equation (1). Obtaining x <sup>p</sup> c <sup>p</sup> c <sup>and yp</sup> c Obtaining x <sup>p</sup> c <sup>and yp</sup> c <sup>is trivial if a projection at tilt angle θ = 0 is available. Otherwise, we calculate the</sup> locations of each particle in the center frame from a tilt angle θ0 nearest to zero as follows: A!θ <sup>ω</sup> 0 B @ x <sup>p</sup> c y <sup>p</sup> c ∎ 1 C ! A = Að <sup>ω</sup> 0 x <sup>p</sup> ½θ0� - ! ��1B Að <sup>ω</sup> θ0Þ B@� ! - y <sup>p</sup> ½θ0� 1 0 B B @ �A!θ <sup>ω</sup> 0� 3,3 <sup>z</sup> c <sup>p</sup> ½ <sup>p:i</sup> C CA <sup>:</sup> (3) The lateral shifts are defined zero at tilt angle θ0 and the value of the fiducial height z <sup>p</sup> c The lateral shifts are defined zero at tilt angle θ0 and the value of the fiducial height z <sup>p</sup> c <sup>in equation (3) is</sup> initialized to zero in the first iteration. Subsequently, it is later propagated from previous iterations (denoted p.i). For convenience, we search for the axis of rotation ω! with deviation of up to 15° from either the x or y axes as defined in the user settings (larger in plane rotations should be compensated in advance by specifying approximate angle φ in the settings). In the following, we denote angle brackets with subscript n as the average of different slices n (either mean or median depending on the number of samples). The elements of the rotation matrix A are indexed with respect to vector (x,y,z). Accordingly, the height of the fiducial z <sup>p</sup> c <sup>should be extracted from the differences in y or x positions of the fiducial p between the center</sup> slice and other slices 2,3 <sup>〉n</sup> - <sup>p</sup> c ! <sup>ω</sup> = bx = 〈 y <sup>p</sup> ðn - ! <sup>A</sup> θ <sup>ω</sup> n - <sup>A</sup> !θ <sup>ω</sup> n� c <sup>�</sup> <sup>A</sup> !θ <sup>ω</sup> n 2,1 <sup>xp</sup> c 2,2 <sup>yp</sup> z <sup>p</sup> c - y <sup>p</sup> ðnÞ <sup>þ</sup> <sup>Δy n½</sup> <sup>��</sup> - <sup>A</sup> !θ <sup>ω</sup> n�2,1 <sup>x</sup> c <sup>p</sup> <sup>�</sup> - <sup>A</sup> !θ <sup>ω</sup> n�2,2 <sup>y</sup> c <sup>p</sup> =�A!θ <sup>ω</sup> y <sup>p</sup> ðnÞ <sup>þ</sup> <sup>Δy n½</sup> <sup>��</sup> <sup>A</sup> !θ <sup>ω</sup> n =�A!θ <sup>ω</sup> n� 1,3 <sup>〉n:</sup> - <sup>p</sup> c ! <sup>ω</sup> = by = 〈 x <sup>p</sup> ð - ! <sup>A</sup> θ <sup>ω</sup> n - <sup>A</sup> !θ <sup>ω</sup> n� c <sup>�</sup> <sup>A</sup> !θ <sup>ω</sup> n 1,1 <sup>xp</sup> c 1,2 <sup>yp</sup> z <sup>p</sup> c - x <sup>p</sup> ðnÞ <sup>þ</sup> <sup>Δx n½</sup> <sup>��</sup> - <sup>A</sup> !θ <sup>ω</sup> n�1,1 <sup>x</sup> c <sup>p</sup> <sup>�</sup> - <sup>A</sup> !θ <sup>ω</sup> n�1,2 <sup>y</sup> c <sup>p</sup> =�A!θ <sup>ω</sup> n <sup>p</sup> ðnÞ <sup>þ</sup> <sup>Δx n½</sup> <sup>��</sup> <sup>A</sup> !θ <sup>ω</sup> n �A!θ <sup>ω</sup> n� Thus, we generalize the calculation using - <u>2,3</u> <sup>z</sup> c <sup>p</sup> ! <sup>ω</sup> = bx ~~�~~ A!θ <sup>ω</sup> n ~~�~~ 2 c�! <sup>ω</sup> = by� þ �A!θ <sup>ω</sup> n <u>1,3</u> <sup>zp</sup> z <sup>p</sup> c <sup>=</sup> �A!θ <sup>ω</sup> n� A!θ <sup>ω</sup> n A!θ <sup>ω</sup> �A!θ <sup>ω</sup> n ~~�~~ ! ~~�~~ 2 θn <sup>Aω</sup> 2,3 : (4) ! θn 1,3 <sup>þ</sup> <sup>Aω</sup> The translational shifts (jitter) are calculated by iterations based on equation (1) as follows: - <sup>A</sup> !θ <sup>ω</sup> n - <sup>A</sup> !θ <sup>ω</sup> n - <sup>A</sup> !θ <sup>ω</sup> n ! ΔxðnÞ <sup>= 〈</sup> <sup>A</sup> θ <sup>ω</sup> c <sup>þ</sup> <sup>A</sup> !θ <sup>ω</sup> n 1,1 <sup>xp</sup> c <sup>þ</sup> <sup>A</sup> !θ <sup>ω</sup> n 1,2 <sup>yp</sup> 1,3 <sup>z</sup> c <sup>p</sup> <sup>�</sup> <sup>x</sup> ð <sup>p</sup> ð <sup>p</sup> nÞ <sup>〉p</sup> - <sup>A</sup> !θ <sup>ω</sup> n - <sup>A</sup> !θ <sup>ω</sup> n� - <sup>A</sup> !θ <sup>ω</sup> n� ! ΔyðnÞ <sup>= 〈</sup> <sup>A</sup> θ <sup>ω</sup> n c <sup>þ</sup> <sup>A</sup> !θ <sup>ω</sup> n 2,1 <sup>xp</sup> c <sup>þ</sup> <sup>A</sup> !θ <sup>ω</sup> n 2,2 <sup>yp</sup> 3,3 <sup>z</sup> c <sup>p</sup> <sup>�</sup> <sup>yp</sup> ðnÞ <sup>〉p:</sup> (5) 3,3 <sup>z</sup> c <sup>p</sup> <sup>�</sup> <sup>yp</sup> ðn g g g In equation (5), we take a “med-average” of different fiducials p. Namely, we sort the values by order and calculate the average of 20% of the values located in the center of the ordered list, thus rejecting false fiducial points while at the same time reducing the standard deviation by arithmetic average. The fitting error is calculated as error = 〈ðx <sup>p</sup> ½n�þ Δx n½ �� xsim½p, n�Þ <sup>2</sup> þ ðy <sup>p</sup> ½n�þ Δy n½ �� ysim½p, n�Þ <sup>2</sup> 〉n,p 1=2 (6) where “sim” stands for simulated values, and the vector is calculated as x <sup>p</sup> c y <sup>p</sup> c z <sup>p</sup> c 0 B @ xsim½p, n� ysim½p, n� zsim½p, n� C ! A = Að <sup>ω</sup> θ n½ �Þ 1 C A: 1 0 B @ The process is repeated for different parameters of φ and ψ in a range of �15° with respect to the assumed orientation of the rotation axis. By minimizing the fitting error, those parameters and the final solution of Δx n½ �, Δy n½ - are determined. Figure 4. Fiducial detection and cluster assignment. (a) Detected fiducials are marked in red, while the particles outlined in green have been identified as belonging to a common cluster in the untilted view. P l (b d) h i 50° 2° d þ20° i l f 3. Results and Demonstration We have confirmed that the image analysis is able to detect most of the fiducials that could be recognized by eye. Figure 4a shows an example where the detected particles are circled in red, and highlights in green about one fifth of them. Specifically, these tracked fiducials are validated as cluster vertices and will be used to optimize the series alignment. Figure 4b–d shows the assignment of fiducial particles to a single cluster viewed from three angles: �50°, �2°, and þ20°. The specimen is a vitrified cell of Plasmodium falciparum imaged by cryo-scanning transmission electron tomography (CSTET) in bright field mode with sampling 2 nm/pixel in a Titan Krios microscope (Thermo Fisher Scientific) at 300 kV acceleration <sup>(31(.</sup> The single-tilt series covered a range from �56° and þ56° in steps of 2°. Gold nanoparticles are scattered over the sample to serve as fiducials, but due to the specimen thickness of 1 μm they are just marginally visible by eye at the higher tilts. The user settings (Table 1, Figure 2) are as follows: cluster radius 400 pixels, fiducial size 7.5 pixels �30%, fiducial location tolerance 200%, maximal number of fiducials 800, tracking threshold of 80%, without second optical iteration (no repeat of the analysis), and with a generous alignment tolerance of 150 pixels. The minimum count of fiducials in a cluster, Ncluster, was varied with each run. Association between a fiducial appearance in the center slice and its appearance in another slice is approved if the number of relevant matching vectors is equal or greater than Ncluster. The tracking of a given fiducial is recorded only if its location as a vertex center is found in a number of tilt slices that exceeds the tracking threshold times the total number of slices (here, e.g., we ignore fiducials that could be found in less than 46 slices out of 57). In addition, we neither count nor report fiducial locations that can be associated with multiple fiducials in the center slice, the process which is called collision blockage. For the purpose of demonstration, a flag called “ignore_collisions” in the code was altered between true and false to test the influence of rejecting fiducials that match with more than one fiducial in the center slice. Moreover, when the user sets Ncluster = Auto, the threshold value Ncluster is determined independently for each fiducial and is determined as the maximum that yields only one association in fiducial location in a number of slices according to the tracking threshold. Following the description above, the tilt axis position and orientation was solved iteratively from the locations of tracked fiducials across the tilt series. The aligned series was then reconstructed by our Matlab program using SIRT3D in ASTRA toolbox, activated in the GUI window of ClusterAlign. The 3D slices shown in Figure 5 demonstrate details of the parasite as well as two separate layers of fiducials. Figure 5. SIRT3D reconstruction after automated alignment with ClusterAlign, showing 3 layers of the sample at different heights. Fiducials appear in planes both below (left) and above (right) the cellular t t g g g Figure 6. YZ sections through reconstructions (weighted back projection in IMOD) after automated alignment using ClusterAlign (a) or IMOD (b). The symmetry of intensity projections (spines) in the YZ plane radiating from each fiducial is a qualitative mark of a successful alignment. Figure 6 compares reconstruction using automated alignment in IMOD versus ClusterAlign. For a fair comparison, both reconstructions were performed using IMOD. The ClusterAlign result is visually superior. Manual refinement may be applied to either workflow, but of course that contradicts the goal of hands-off processing. Fiducials located significantly apart in z locations cannot form clusters that sustain their structure during rotation, as viewed in the image plane. Even if we observe several sets of fiducial points “traveling” to different directions during rotation due to differences in z coordinate, the algorithm will associate cluster members for each vertex of similar height while ignoring the nonmembers. Collisions are not likely to occur unless the uniqueness in structure of each cluster is compromised. However, anticipating possible warping and distortions we limit the radius of the clusters when possible. This also serves to accelerate the processing. The rationale is that nearby fiducials (e.g., those on the same side of the sample) are likely to spread at similar height in z. We test this assumption for the dataset of Figure 5 using files generated by ClusterAlign that report on the accepted fiducial locations in the central frame of axes. The plot in Figure 8 was produced using the dataset of Figure 7 and Ncluster = auto; it shows that indeed the average and minimum difference in z location is smaller for nearby fiducials. Additional examples are shown in the Supplementary Materials. Figure 7. Fiducials that lie nearby in the plane are likely to lie at similar height (more examples are shown in the Supplementary Materials). f Figure 8. Effects of cluster size. (a) The number of tracked fiducials reaches a maximum when ambiguous assignments (collisions) are ignored. This feature can be used to assign the cluster size automatically. (b) Blocking of collisions has a strong effect on fitting error for smaller cluster sizes. In the following, we present quantitative measures to evaluate the software operation. First, we need a numerical measure of the fiducial visibility. A convenient estimate of the signal to noise ratio related to fiducial detection is found by averaging 2D images of many detected fiducials and their surrounding background. Adapting from <sup>(32)</sup>, we define the contrast to noise ratio (CNR) based on 〈I <sup>2</sup> f <sup>〉, the average</sup> template of all potential fiducials within �30° tilt angles (applicable to the center tilt within 5% accuracy), .and the standard deviation (STD) of the raw image as 1=2 - 〈I2f <sup>〉</sup> <u>min</u> 1=2 CNR = 〈I <sup>2</sup> <u>f</u> <sup>〉</sup> <u>max</u> STDðIÞ The difference between the maximum and minimum of the average fiducial image represents the difference between object and background. The square over the image intensity is justified by the observed improvement in fiducial detection compared to linear averaging, consistent with their intensities standing out locally over the specimen. For the example at hand we found CNR = 1.0. This is a rather low value indicating a difficult dataset for conventional fiducial-based tracking methods A case of strong g g g contrast in a plastic-embedded section (training data for IMOD reconstruction, [https://bio3d.colorado.](https://bio3d.colorado.edu/imod/doc/etomoTutorial.html) [edu/imod/doc/etomoTutorial.html) obtained a CNR = 3.5.](https://bio3d.colorado.edu/imod/doc/etomoTutorial.html) Alignment precision depends on the number of tracked fiducials (validated by cluster centers) as well as the fidelity of their localization. As seen in Figure 8a, their number depends inversely on the number of cluster members (NCluster) when collisions, for example, ambiguous assignments in the zero tilt image, are ignored. When collision suppression is enforced, the number of tracked fiducials finds a maximum, as small clusters fare poorly in the collision test. These tendencies repeat in all datasets that we have studied, and imply quite reasonably that the confidence in the discrimination of tracked fiducials is higher when they are supported on a larger cluster count, and that the collision suppression is an effective filter to retain the reliable subset of tracked fiducials. In the example shown the number of tracked fiducial is maximum (45) for NCluster = 25. The maximum in cluster count provides a means to optimize the cluster size automatically in the face of an unknown total number of fiducial particles. We can evaluate the fitting error as the root mean square (RMS) distance in (x,y) between a reported fiducial location and its predicted location according to a fitted rigid body rotation model, for all accepted (tracked) fiducial points. The RMS of the fitting error per slice is stored in a file during execution. Figure 8b shows that the fitting error depends sensitively on the collision blocking but not on the cluster size when colliding assignments are suppressed. As an independent analysis tool, we evaluate alignment errors based on projection matching, namely, the evaluation of projection shifts, calculated based on peak locations in cross-correlation between the corrected (aligned) tilt images and the reprojected tilt images from a 3D reconstruction. We calculate reprojections from a general reconstruction, leaving out only slices with fitting error exceeding 15 pixels. In comparison, the calculation of resolution based on the value of cross-correlation between image and reprojection is more delicate and requires leaving out the one tilt angle from each dedicated reconstruction <sup>(33)</sup> . The Matlab code for alignment error assessment is available under the name clusteralign_test.m and makes use of the Astra toolbox <sup>(25,26)</sup> for weighted back projection reconstruction and projection. (Iterative reconstruction such as SIRT should not be used in this evaluation <sup>(11)</sup> ). Sub-pixel resolution is achieved using Fast Fourier Transform interpolation code <sup>(34)</sup> . Figure 9a shows that for raw tilt series data, which includes rough misalignments, the quantification of alignment error using projection matching (circles) is similar to the errors based on fitting fiducial locations to a rigid body model (triangles). Since the reconstruction of the unaligned stack is blurry, the cross-correlation at some points is too low to provide numerical values for comparison. However, considering some inaccuracy in both the fiducial locations and correlation, the evaluation is consistent. Figure 9b presents RMS of error in fit of reported fiducial locations to rigid body model after alignment by various methods. The fiducial locations are reported in fid.txt file, per tilt slice, both by ClusterAlign and IMOD. In the case of IMOD, we observe that the tracking is successful, but some of the reported locations are fictitious, that is, they are based on a model and not actually detected. In contrast, the fiducial locations reported by ClusterAlign are found independently of the rigid body model and appear to have lower residues. In the first iteration of ClusterAlign, which obtained 65 tracked fiducials, except for one error point there is improvement over the IMOD report. In the second optical iteration of ClusterAlign, which obtained six tracked fiducials in this case, all large errors are removed and the RMS fit errors of the fiducial locations are mostly below 1 pixel. While the number 6 may appear alarmingly small, it represents six vertices of clusters containing tens of identified nanoparticles, all of which contribute to determination of the tilt axis. It should be noted that IMOD provides further tools to correct manually the locations errors, but our analysis refers to automated batch mode of a difficult tilt series. The batch mode process in IMOD reports on 2.8 nm (1.4 pixels) weighted mean residual error. In Figure 9c, we show the actual alignment errors evaluated based on projection matching evaluation performed on the aligned files. In ClusterAlign, most of the errors are below 0.5 pixels and on average about half the errors from IMOD. In IMOD, three slices at high tilt angles could not be aligned; where the coarse cross-correlation based on image contrast fails, the fiducial tracking cannot recover. These tilts would normally be excluded from the reconstruction, but precisely these high tilt images contribute to resolution in the axial (z) direction. f Figure 9. Alignment errors. (a) The quantification of alignment errors using projection matching (circles) is in correlation with errors based on fitting fiducial locations to a rigid body model (triangles) in the case of a raw tilt series having large misalignments. (b) After alignment, the RMS of errors in fitting the fiducial locations reported in fid.txt file to a rigid body model, per tilt slice. (c) Alignment errors based on projection matching evaluation. The inset shows a zoom-in on the points in the outer chart. Another CSTETsample tested (HFF-1 cell) shows a good fiducial visibility (CNR = 2.8) and a copious amount of fiducials. The alignment errors based on projection matching evaluation are shown in Figure 10. The alignment settings used maximum fiducial number 2,000 and average particle size 6.5 pixel. After the first optical iteration ClusterAlign found 389 tracked fiducials, and thus the same number of points was requested in etomo using the batch alignment. After a second optical iteration in ClusterAlign, 16 tracked fiducials remained. The median error increased from about 0.2 pixels to 0.5 pixels, but all the significant errors at high tilts were reduced below 1.5 pixels. For comparison, IMOD performance was either comparable or slightly better in most points, but failed significantly at 5 points of high tilt angles. The correlation between coarse and fine alignment is again dominant. We expect that the performance of ClusterAlign at sub-pixel errors should ideally depend on the fitting error divided by the square root of the number of analyzed points per slice, which is in principle the number of tracked fiducials. Thus, the increase in the median error after the second iteration is a consequence of decrease in the number of tracked fiducials. The latter is a consequence of managed cluster rejections aiming to increase the tracking threshold and achieve higher slice coverage. g g g Figure 10. (a) Alignment errors based on projection matching method for a second dataset. The alignment in ClusterAlign, based on 389 tracked fiducial points after first iteration, is comparable to IMOD alignment. After second iteration in ClusterAlign, 16 tracked fiducials are left, and while the subpixel performance is reduced the significant errors at high tilts are eliminated. The inset shows a zoom-in on the points in the outer chart. (b) A section through the reconstruction generated automatically in ClusterAlign. 4. Discussion and Conclusion ClusterAlign is a tool for fiducial-based tomographic reconstruction. It offers automated cluster tracking, alignment, and reconstruction that is tolerant to gaps in tilt views and to skew in the rotation axis. Hence, it is especially suited for analysis of thick samples. The software is freely available and should add to the growing toolchest for tomographic reconstruction. Ongoing improvement in tilt series alignment methods carries several positive implications. Foremost, proper alignment at high tilt angles is crucial for depth resolution. Excluding high tilt contributions from reconstruction is acceptable for workflows involving sub-tomogram averaging, where the missing information is obtained from multiple particles in complementary orientations, but the exclusion will be detrimental in reconstruction of unique structures. Second, avoiding the need for manual refinements is essential in order to keep up with ever more rapid data collection. Reconstruction quality depends on sub-pixel precision, as misalignments are projected to the entire thickness of reconstruction. ClusterAlign is especially useful for tomograms that are difficult to align and reconstruct by other means. In addition, we offer several tools to compare performance with other alignment algorithms. These include import and export of fiducial location files in a format compatible with tomoalign and convertible to IMOD .fid, evaluation of the aligned stack on the basis of projection matching, and reporting locations of fiducials without alignment corrections (by setting alignment tolerance to zero). The software also extracts the 3D position of the fiducials and thus provides a tool for characterization of fiducial spread in the sample. The idea of cluster analysis for fiducial tracking was introduced in TxBr <sup>(6,35)</sup> and Raptor <sup>(1)</sup>, where clusters are compared between neighboring tilt view for improving the cross-correlation approach. In TxBr, the 3D locations of the fiducials are estimated based on triangulation of two tilt views, but the accuracy depends on successful alignment by cross-correlation. Later, affine-invariant vector products based on four fiducial pointswere used toprovide a uniquefingerprint of any suchcluster under rotation. <sup>(3)</sup> The advantage in this elegant approach is that any four points could join a cluster, irrespective of the location in z. ClusterAlign is using solely fiducial particle locations for alignment. It searches for unique patterns in many f points at once and is robust for tracking in the case of thick samples, with large lateral movements and poor visibility of fiducials at high tilt angles. A possible extension is to take into account in the second iteration the z values that are known for tracked fiducials in the first. Based on the differences in z, it would then be possible to predict accurately the dependence of the vector length on tilt angle and thus include clusters members irrespective of their height in z; however, this approach has not been implemented so far due to cost in calculation time. Finally, we can comment that the ClusterAlign approach seems to imitate the human perception of tracking fiducials based on their relations to nearby points. Acknowledgments. The authors acknowledge the acquisition of microscope data by Debakshi Mullick, and the sample preparations by Debakshi Mullick and Arina Dalaloyan. M.E. is the Head of the Irving and Cherna Moskowitz Center for Nano and Bionano Imaging and incumbent of the Sam and Ayala Zacks Professorial Chair in Chemistry. The laboratory has benefited from the historical generosity of the Harold Perlman family. Competing Interests. The authors declare no competing interests exist. Authorship Contributions. S.S. developed the new software and analyzed the data. S.S. and M.E. discussed the algorithm, studied the results, and wrote the paper. Funding Statement. This work was funded in part by grants from the Israel Science Foundation (1696/18), and the Weizmann SABRA—Yeda-Sela—WRC Program, the Estate of Emile Mimran, and The Maurice and Vivienne Wohl Biology Endowment. Data Availability Statement. [Source code and user manual are available at https://github.com/Pr4Et/ClusterAlign and a Click-](https://github.com/Pr4Et/ClusterAlign) [Once Windows application installer is available at https://sourceforge.net/projects/clusteralign/files/.](https://sourceforge.net/projects/clusteralign/files/) Supplementary Materials. [To view supplementary material for this article, please visit http://doi.org/10.1017/S2633903X22000071.](http://doi.org/10.1017/S2633903X22000071) References 1. Amat F, Moussavi F, Comolli LR, Elidan G, Downing KH & Horowitz M (2008) Markov random field based automatic image [alignment for electron tomography. J Struct Biol 161, 260–275. https://doi.org/10.1016/j.jsb.2007.07.007.](https://doi.org/10.1016/j.jsb.2007.07.007) 2. Han R, Zhang F & Gao X (2018) A fast fiducial marker tracking model for fully automatic alignment in electron tomography. [Bioinformatics 34, 853–863. https://doi.org/10.1093/bioinformatics/btx653.](https://doi.org/10.1093/bioinformatics/btx653) 3. Han R, Wang L, Liu Z, Sun F & Zhang F (2015) A novel fully automatic scheme for fiducial marker-based alignment in [electron tomography. J Struct Biol 192, 403–417. https://doi.org/10.1016/j.jsb.2015.09.022.](https://doi.org/10.1016/j.jsb.2015.09.022) 4. Heymann JB (2018) Guidelines for using Bsoft for high resolution reconstruction and validation of biomolecular structures [from electron micrographs. Protein Sci 27, 159–171. https://doi.org/10.1002/pro.3293.](https://doi.org/10.1002/pro.3293) 5. Mastronarde DN & Held SR (2017) Automated tilt series alignment and tomographic reconstruction in IMOD. J Struct Biol [197, 102–113. https://doi.org/10.1016/j.jsb.2016.07.011.](https://doi.org/10.1016/j.jsb.2016.07.011) 6. Lawrence A, Bouwer JC, Perkins G & Ellisman MH (2006) Transform-based backprojection for volume reconstruction of [large format electron microscope tilt series. J Struct Biol 154, 144–167. https://doi.org/10.1016/j.jsb.2005.12.012.](https://doi.org/10.1016/j.jsb.2005.12.012) 7. Castaño-Díez D, Scheffer M, Al-Amoudi A & Frangakis AS (2010) Alignator: a GPU powered software package for robust [fiducial-less alignment of cryo tilt-series. J Struct Biol 170, 117–126. https://doi.org/10.1016/j.jsb.2010.01.014.](https://doi.org/10.1016/j.jsb.2010.01.014) 8. Chen M, Bell JM, Shi X, Sun SY, Wang Z & Ludtke SJ (2019) A complete data processing workflow for cryo-ET and [subtomogram averaging. Nat Methods 16, 1161–1168. https://doi.org/10.1038/s41592-019-0591-8.](https://doi.org/10.1038/s41592-019-0591-8) 9. Fernandez J-J, Li S, Bharat TAM & Agard DA (2018) Cryo-tomography tilt-series alignment with consideration of the beam[induced sample motion. J Struct Biol 202, 200–209. https://doi.org/10.1016/j.jsb.2018.02.001.](https://doi.org/10.1016/j.jsb.2018.02.001) 10. Himes BA & Zhang P (2018) emClarity: software for high-resolution cryo-electron tomography and subtomogram averaging. [Nat Methods 15, 955–961. https://doi.org/10.1038/s41592-018-0167-z.](https://doi.org/10.1038/s41592-018-0167-z) 11. Houben L & Bar Sadan M (2011) Refinement procedure for the image alignment in high-resolution electron tomography. [Ultramicroscopy 111, 1512–1520. https://doi.org/10.1016/j.ultramic.2011.06.001.](https://doi.org/10.1016/j.ultramic.2011.06.001) 12. Messaoudi C, Boudier T, Sorzano COS & Marco S (2007) TomoJ: tomography software for three-dimensional reconstruction [in transmission electron microscopy. BMC Bioinform 8, 288. https://doi.org/10.1186/1471-2105-8-288.](https://doi.org/10.1186/1471-2105-8-288) 13. Noble AJ & Stagg SM (2015) Automated batch fiducial-less tilt-series alignment in Appion using Protomo. J Struct Biol 192, [270. https://doi.org/10.1016/j.jsb.2015.10.003.](https://doi.org/10.1016/j.jsb.2015.10.003) 14. Zheng S, Wolff G, Greenan G, et al. (2022) AreTomo: an integrated software package for automated marker-free, motioncorrected cryo-electron tomographic alignment and reconstruction. J Struct Biol 6, 100068. [https://doi.org/10.1101/](https://doi.org/10.1101/2022.02.15.480593) [2022.02.15.480593.](https://doi.org/10.1101/2022.02.15.480593) 15. Hohmann-Marriott MF, Sousa AA, Azari AA, et al. (2009) Nanoscale 3D cellular imaging by axial scanning transmission g g g 16. Wolf SG, Houben L & Elbaum M (2014) Cryo-scanning transmission electron tomography of vitrified cells. Nat Methods 11, [423–428. https://doi.org/10.1038/nmeth.2842.](https://doi.org/10.1038/nmeth.2842) 17. Do M, Isaacson SA, McDermott G, Le Gros MA & Larabell CA (2015) Imaging and characterizing cells using tomography. [Arch Biochem Biophys 581, 111–121. https://doi.org/10.1016/j.abb.2015.01.011.](https://doi.org/10.1016/j.abb.2015.01.011) 18. Groen J, Conesa JJ, Valcárcel R & Pereiro E (2019) The cellular landscape by cryo soft X-ray tomography. Biophys Rev 11, [611–619. https://doi.org/10.1007/s12551-019-00567-6.](https://doi.org/10.1007/s12551-019-00567-6) 19. Kapishnikov S, Berthing T, Hviid L, et al. (2012) Aligned hemozoin crystals in curved clusters in malarial red blood cells [revealed by nanoprobe X-ray Fe fluorescence and diffraction. Proc Natl Acad Sci 109, 11184–11187. https://doi.org/10.1073/](https://doi.org/10.1073/pnas.1118134109) [pnas.1118134109.](https://doi.org/10.1073/pnas.1118134109) 20. Elbaum M (2018) Expanding horizons of cryo-tomography to larger volumes. Curr Opin Microbiol 43, 155–161. [https://](https://doi.org/10.1016/j.mib.2018.01.001) [doi.org/10.1016/j.mib.2018.01.001.](https://doi.org/10.1016/j.mib.2018.01.001) 21. Kremer JR, Mastronarde DN & McIntosh JR (1996) Computer visualization of three-dimensional image data using IMOD. J [Struct Biol 116, 71–76. https://doi.org/10.1006/jsbi.1996.0013.](https://doi.org/10.1006/jsbi.1996.0013) 22. Bradski G (2000) The openCV library. Dr. Dobb’s J Softw Tools 120, 122–125. 23. [Emgu CV (2022) http://www.emgu.com/wiki/index.php/Main_Page, accessed 14 August 2022.](http://www.emgu.com/wiki/index.php/Main_Page) 24. Seifer S, Houben L & Elbaum M (2021) Flexible STEM with simultaneous phase and depth contrast. Microsc Microanal 27, [1476–1487. https://doi.org/10.1017/S1431927621012861.](https://doi.org/10.1017/S1431927621012861) 25. Palenstijn WJ, Batenburg KJ & Sijbers J (2011) Performance improvements for iterative electron tomography reconstruction [using graphics processing units (GPUs). J Struct Biol 176, 250–253. https://doi.org/10.1016/j.jsb.2011.07.017.](https://doi.org/10.1016/j.jsb.2011.07.017) 26. van Aarle W, Palenstijn WJ, De Beenhouwer J, et al. (2015) The ASTRA toolbox: a platform for advanced algorithm [development in electron tomography. Ultramicrosc 157, 35–47. https://doi.org/10.1016/j.ultramic.2015.05.002.](https://doi.org/10.1016/j.ultramic.2015.05.002) 27. Agulleiro J-I & Fernandez J-J (2015) Tomo3D 2.0 – exploitation of advanced vector eXtensions (AVX) for 3D reconstruction. [J Struct Biol 189, 147–152. https://doi.org/10.1016/j.jsb.2014.11.009.](https://doi.org/10.1016/j.jsb.2014.11.009) 28. Han R, Li L, Yang P, Zhang F & Gao X (2021) A novel constrained reconstruction model towards high-resolution [subtomogram averaging. Bioinformatics 37, 1616–1626. https://doi.org/10.1093/bioinformatics/btz787.](https://doi.org/10.1093/bioinformatics/btz787) 29. Gustafsson N, Culley S, Ashdown G, Owen DM, Pereira PM & Henriques R (2016) Fast live-cell conventional fluorophore nanoscopy with ImageJ through super-resolution radial fluctuations. Nat Commun 7, 12471. [https://doi.org/10.1038/](https://doi.org/10.1038/ncomms12471) [ncomms12471.](https://doi.org/10.1038/ncomms12471) 30. Korn GA & Korn TM (2000) Mathematical handbook for scientists and engineers. In Definitions, Theorems, and Formulas for Reference and Review. New York, NY: Dover Publications. 31. Mullick D, Rechav K, Leiserowitz L, Dzikowski R, Regev-Rudzki N & Elbaum M (2022) Diffraction contrast in cryoscanning transmission electron tomography reveals the boundary of hemozoin crystals in situ. Faraday Discuss. [https://](https://doi.org/10.1039/D2FD00088A) [doi.org/10.1039/D2FD00088A.](https://doi.org/10.1039/D2FD00088A) 32. Luo W, Yoo S, Wu QJ, Wang Z & Yin F-F (2008) Analysis of image quality for real-time target tracking using simultaneous [kV-MV imaging. Med Phys 35, 5501–5509. https://doi.org/10.1118/1.3002313.](https://doi.org/10.1118/1.3002313) 33. Cardone G, Grünewald K & Steven AC (2005) A resolution criterion for electron tomography based on cross-validation. J [Struct Biol 151, 117–129. https://doi.org/10.1016/j.jsb.2005.04.006.](https://doi.org/10.1016/j.jsb.2005.04.006) 34. Schabel M (2021) N-dimensional Fourier interpolation, MATLAB Central File Exchange. [https://www.mathworks.com/](https://www.mathworks.com/matlabcentral/fileexchange/22665-n-dimensional-fourier-interpolation) [matlabcentral/fileexchange/22665-n-dimensional-fourier-interpolation, accessed 14 August 2022.](https://www.mathworks.com/matlabcentral/fileexchange/22665-n-dimensional-fourier-interpolation) 35. Phan S, Boassa D, Nguyen P, et al (2016) 3D reconstruction of biological structures: automated procedures for alignment and [reconstruction of multiple tilt series in electron tomography. Adv Struct Chem Imag 2, 8. https://doi.org/10.1186/s40679-016-](https://doi.org/10.1186/s40679-016-0021-2) [0021-2.](https://doi.org/10.1186/s40679-016-0021-2) Cite this article: Seifer S and Elbaum M (2022). ClusterAlign: A fiducial tracking and tilt series alignment tool for thick sample

섹션 본문 49문단 · 37,589자

(제목 없음)

1Thick specimens, as encountered in cryo-scanning transmission electron tomography, offer special challenges to conventional reconstruction workflows. The visibility of features, including gold nanoparticles introduced as fiducial markers, varies strongly through the tilt series. As a result, tedious manual refinement may be required in order to produce a successful alignment. Information from highly tilted views must often be excluded to the detriment of axial resolution in the reconstruction. We introduce here an approach to tilt series alignment based on identification of fiducial particle clusters that transform coherently in rotation, essentially those that lie at similar depth. Clusters are identified by comparison of tilted views with a single untilted reference, rather than with adjacent tilts. The software, called ClusterAlign, proves robust to poor signal to noise ratio and varying visibility of the individual fiducials and is successful in carrying the alignment to the ends of the tilt series where other methods tend to fail. ClusterAlign may be used to generate a list of tracked fiducials, to align a tilt series, or to perform a complete 3D reconstruction. Tools to evaluate alignment error by projection matching are included. Execution involves no manual intervention, and adherence to standard file formats facilitates an interface with other software, particularly IMOD/etomo, tomo3d, and tomoalign.Impact StatementFiducial markers such as gold nanoparticles are often added to samples in transmission electron tomography to assist in image alignment prior to 3D reconstruction. Particularly for thick samples, tracking of individual fiducials often fails due to low contrast. ClusterAlign is a software that follows the structure of fiducial clusters, rather than individuals, to serve for alignment of the tilt series and 3D reconstruction.

Introduction

2Electron tomography offers a powerful set of tools to reveal cellular anatomy in three dimensions. The most popular implementation is that of tilt tomography in the transmission microscope. A set of 2D projection images is recorded, from which a 3D volume representation is reconstructed by one of the available algorithms, which include weighted back projection, direct Fourier inversion, and iterative techniques. An essential intermediate step is that of aligning the 2D images to approximate the ideal rotation of a rigid body around a unique tilt axis. In practice, the mechanical mechanism of rotation always introduces some shifts or drift that must be corrected by translation of the images. Additionally, electronoptical distortions as well as geometric distortions due to beam exposure may need to be corrected for a successful reconstruction. In order to facilitate the alignment, high contrast nanoparticles such as colloidal gold are often distributed over the specimen in order to assist in correcting or compensating these faults. Tracking the nanoparticles from tilt to tilt across the series serves to establish precisely the tilt axis orientation and to bring the 2D images into alignment around it. As manual tracking is tedious, a number of algorithms have been developed for automatic detection and tracking of the fiducial markers (1)(2)(3)(4)(5)(6) . Despite significant advances in software, precise tracking of fiducials can still be difficult to automate, however. Alternatively, a number of fiducial-less alignment algorithms have been developed (7)(8)(9)(10)(11)(12)(13) . A recent and successful addition is AreTomo, which is based on successive matching of projections from partial reconstruction to align the tilt series (14) . In such cases, added fiducials may be used as a diagnostic of the alignment quality and indicator of the need for follow-up refinement. The widespread adoption of tomographic acquisition in batch mode accentuates the need for unattended alignment as a first step in data interpretation.

3The introduction of scanning transmission electron microscopy (15,16) , as well as soft X-ray imaging (17)(18)(19) modalities, has expanded the range of specimen thickness accessible to cryo-tomography (20) . The specimen can no longer be considered a thin slab when its thickness may typically reach half the lateral field of view. This introduces specific issues for alignment. The pileup of features in a thick specimen flattens the contrast overall, hindering the effectiveness of fiducial-less alignment, and on the other hand small fiducials may be poorly resolved in transmission through the thick material. This problem often becomes acute at high tilt angles where the projected thickness increases, and moreover, high-contrast features in the sample itself may hide or shadow the fiducials over a limited range of tilt angles. Thus, it becomes difficult even to identify individual particles reliably in every projection and to track the particles across large gaps in tilt views. One popular approach is to build a model of the rotation that can predict the projected position of individual fiducial markers, allowing the user to accept or correct the prediction so as to fill the gaps (5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)(21) . Other approaches generate overlapping chains of landmarks, each covering a part of the tilt range (8)(9)(10)(11)(12) , or make use of a local invariant criterion (3) . Further developments are underway, with an emphasis on unattended operation to support the ever-increasing throughput of data acquisition.

4Here we offer a complementary strategy to that of following individual fiducial markers. We identify extended clusters that transform geometrically between each of the tilted projections and a single reference view at low tilt angle, where visibility is optimal. Essentially, these are the subsets of fiducials that lie at similar height perpendicular to the view direction, and whose distributions transform with the cosine of the tilt angle. Multiple such clusters may be found and may even overlap, for example, when particles are located on two sides of a slab. The verified cluster vertices are then used as fiducials, rather than the locations of individual particles. Thus, we avoid the need to follow the same particle sequentially from tilt to tilt, and the cluster location is inherently robust to disappearance of individual particles. The relative motions of multiple identified cluster vertices are then used as fiducial markers to constrain the precise position and angle of the tilt axis by least squares fitting. The program can output the list of tracked fiducials in a format compatible with IMOD (5) or Tomoalign (9) , a stack containing the aligned tilt series, or a completed 3D reconstruction. In addition, a text file reports the transformations and error estimates generated during the processing.

5Alignment error is primarily translational and thus expected to be corrected by solving for Δx,Δy shifts of the image, but the algorithm is tolerant to moderate global in-plane and out of plane rotations. Note that clusters are defined by a common height with respect to the tilt axis and need not be composed of apparently adjacent fiducials in any given projection. Thus, the aim of the software is to optimize translational alignments under conditions of problematic fiducial visibility without manual intervention.

Software features

6A flowchart of the processing appears in Figure 1. The workflow involves three major stages: fiducial particle identification, cluster assignment, and rigid body fitting of the tilt axis. Compatibility is e7-2 Shahar Seifer and Michael Elbaum maintained with IMOD file formats and conventions. The software is written in C#, makes use of the EMGU/OpenCV library, (22,23) and is available as open source under the GNU-GPLv3 license (see Data Availability Statement). Processing 800 fiducials in a tilt series of 57 frames of 2k  2k frame size requires 4 min on a 24-core Intel Xeon-based computer, and the reconstruction using Nvidia RTX 3060 GPU with binning of 2 takes an additional 4 min.

7The key input parameters appear in Table 1 and the user interface in Figure 2. Most parameters are selfexplanatory. Significance of those related to cluster assignment is explained below. Practical details appear in the user manual (see Data Availability Statement). The software supports optional loading of external fiducial files and pre-aligned stacks for refinement, optional reconstruction in single or dual axis, and loading of an attention mask for special uses explained in the user manual. There is also support for cosine sampling tomograms, which can be acquired by varying the aspect ratio of the scan pattern (24) .

8The user may choose to run the analysis in two iterations to enhance precisions. The information that is carried between iterations is global and does not include particular trajectories. The knowledge gained in the first iteration is used to update the tracking threshold, to generate attention maps, and to determine fiducial size. The predicted locations of fiducial according to a rigid body model are displayed during the second iteration.

9The output of the program is a text-based fiducial list of the form used by Tomoalign (.fid.txt), which can be converted to the binary IMOD format (.fid) using the command point2model. An aligned tilt series is generated either by imposing only translation corrections without adjustment of the tilt axis (_jali.mrc), or in standard form (_ali.mrc) globally aligned with tilt axis vertical and centered. Optionally, the package can output a Simultaneous Iterative Reconstruction Technique (SIRT) reconstruction based on the Astra toolbox (25,26) , which corresponds to the exact fitted rotation axis. (This option is available only on computers equipped with GPU and Matlab.) The default generated tilt series (_jali.mrc) best matches our Matlab tomogram reconstruction using rotation axis properties found in file (.output.txt), while the standard form is intended for compatibility with other reconstruction software such as IMOD or tomo3d (27) . No attempt is made to optimize view angles that deviate from the mechanical tilts, nor local alignments to compensate for specimen distortion. Optimizations such as focused local alignment or Name of a text file that contains tilt angles in degrees, one value per line according to the order of images in the tilt series file (e.g., *.rawtlt file) Rotation axis X or Y, according to approximate rotation axis (X is horizontal), or Angle = 0-179°to request pre-rotation of the images that aligns the rotation axis with Y Cluster size Maximum radius of a cluster in pixels Ncluster

10Minimum count of particle members to comprise a cluster. Enter "À1" for automatic adjustment Fiducial size

11Average size expected of fiducials in pixels Fiducial location tolerance The tolerance allowed for matching relative locations of cluster members, measured in % relative to fiducial size (typically between 100-300%) Max. number of fiducials Maximum number of particles to be detected in a frame, often set to twice the actual number of particles to achieve acceptable sensitivity Center slice

12The number of the slice to use as the reference or center tilt (if À1 then automatically the slice of smallest tilt angle is chosen) Tracking threshold (%)

13Minimum threshold in percentage of occurrences from available slices required to accept validity of a fiducial "trajectory" Optical iteration

14No for a single pass, Yes to repeat the entire image analysis in attempt to increase the tracking threshold, while increasing detection sensitivity at predicted locations of tracked fiducials Cosine sampling?

15True when the aspect ratio of pixels is adjusted according to cos(θ) Alignment tolerance Maximum alignment shift allowed Fiducials are bright?

16False for bright field images and True for dark field e7-4 Shahar Seifer and Michael Elbaum global distortion corrections may be performed in other dedicated software such as Tomoalign (9) , EMClarity (10) , or constrained reconstruction model (28) . Furthermore, the Astra toolbox can reconstruct from several rotation axes at once. We provide a Matlab module for dual axis reconstruction that can be used after separate alignment of each tilt series in ClusterAlign. The method involves rotating the second series by 90°and passing to Astra the 3D center coordinates of each tilt series (example is shown in the Supplementary Materials).

Particle localization

17Detection and localization of particles is an initial step before the actual cluster analysis. The locations of particles are found based on template matching using an average generated from the measured data, an approach that has been used in RAPTOR (1) . The main difference from previous works is in the method of threshold calculation and in the way particle candidates are selected to generate a template.

18The main distinctive feature that allows initial marking the center of particles is the "convoluted divergence," which is calculated as follows:

19where ∇ x M is the gradient in the x direction of the raw gray image. Similarly ∇ y M is the gradient for the y direction. ker x denotes a small matrix with nonzero elements over positions of a ring that envelopes the Biological Imaging e7-5 range of possible fiducial particle sizes as entered in the user settings. The values of the nonzero elements are ker

20, where i and j are in reference to the center element of the matrix. ðA ⊛ BÞ denotes convolution of A with B.

21The next step is to dilate (i.e., replace pixel values by maxima values of) the image of convoluted divergence,G M ð Þ, using a mask with elements 1 over a filled circle the size of the largest particle expected, and elements 0 outside the circle. The locations where G M ð Þ= DilatedfGðM Þg are the peaks of such spots and are considered as candidate fiducial locations. Although the implementation is different, the detection algorithm bears a resemblance to the radiality transform used in the SRRF fluorescence localization microscopy method (29) .

22Images that have been pre-aligned by cross-correlation or other means contain data-free margins with a sharp gradient at the edges. The program identifies the margins based on regions with zero values of G M ð Þ and removes these margins from further processing.

23For each projection in the tilt series, the raw image M[n] is band pass filtered between spatial periods of 1/3 and 20 of the fiducial size, as defined in the user settings panel. The result after further manipulations is a regularized gray image M † [n]. Regions at the sides of M † that are outside the expected projection of a thin layer in the center tilt are masked since any fiducial found there will not be traceable to one that appears in the center slice.

24A threshold of the peaks in M † should determine which of the candidate locations of fiducial particles are to be accepted for the next screening process. The maximum allowed number of peaks is determined by the user-defined "maximum number of fiducials" (NfidMax). Initial threshold is calculated by the triangle type threshold algorithm found in EMGU/OpenCV. Then, M † is temporarily multiplied by a mask of spots around the locations of candidate fiducials and the number of contours is counted using the FindContours function. If the count is larger than the maximum allowed number of fiducials, then the threshold is increased incrementally and the process is repeated until the number of fiducials is reduced to fall within the expected range. If such iterations fail, the threshold is determined based on the histogram of gray levels and the total expected area of fiducials.

25In the next step, the average image of potential fiducials is generated based on their selected locations. Since we wish to reduce artifacts at sharp edges, the fiducials are filtered according to isotropy. An identified fiducial is considered sufficiently isotropic for inclusion in the average if the normalized correlation between its image and its transposed image is greater than 0.4. This criterion also filters small clusters of particles from consideration. The average fiducial image serves as a template, which is correlated with M † to generate a map H (using the MatchTemplate function in EMGU/OpenCV of type "correlation-normalized").

26The peaks in the correlation map H are considered the candidates for precise locations of the fiducial particles. In order to select the best candidates counted up to NfidMax, the process of finding the suitable threshold is repeated as described above, this time based on the gray levels of M †2 Â H and a mask of the candidate locations convoluted with maximum expected fiducial size. The final locations are selected from those candidate locations according to the threshold.

27This rather elaborate protocol achieves a high sensitivity (up to 99%) of nanoparticle detection in the sample, excluding most of the artifacts (false negative expected between 1 and 6%) while optimizing the precision of locations reported for the selected particles.

Fiducial registration by clusters

28With a list of detected particle locations in each projection image, the next step is to track them throughout the tilt series. The conventional approach is to track fiducials that are displaced in a direction perpendicular to the tilt axis in adjacent tilt images, working incrementally through the stack. For thick specimens, this approach is not robust because of the very large displacements observed, and because of the possibility for a tracked particle to disappear behind a dense object in the specimen. We apply here an alternative strategy based on recognition of particle clusters.

e7-6

29Shahar Seifer and Michael Elbaum

30Each particle location in every slice is selected as a vertex, from which vectors are drawn to all neighboring particles within the user-defined maximum cluster radius. Vector lengths are normalized in the component perpendicular to the tilt axis by the cosine of the tilt angle. The set of vectors emerging from each vertex is then compared between the tilted images and the common center reference image (see Figure 3). Matches are accepted within a tolerance defined in the user settings, typically to 200% of the average fiducial size. (The tolerance allows for some displacement in the z plane.) When the number of matching vectors is greater than a threshold number NCluster (which may be defined by the user or automatically) the vertex is considered a candidate for tracking of a given fiducial at a given slice. If these candidates are indeed unique and are found in a sufficient number of slices (in terms of a user-defined "tracking threshold"), the vertex fiducials are registered as locations of a bona fide fiducial for tracking. Note that recognition of the vector pattern is robust to translations, so the strategy of comparison between tilted projections and an untilted reference does not require a pre-alignment of the tilt series.

31Tracking fiducials is the most demanding task in terms of computation time, so the calculations are handled by multi-threading of several CPU cores. Since the success of pairing depends sometimes on the order of the search, the process is not completely deterministic, and thus we may observe a small variability of results for certain ranges of parameters. In particular, collisions may occur where a given particle may be assigned at different tilts to different clusters. Such collisions are detected and removed in advance of the registration of the matches.

Rigid body analysis

32The goal is to align the images by removing the translational shifts Δx n ð Þ , Δy n ð Þ in every slice n, which originate in mechanical jitter or optical distortions. Thus, to find the translational shifts it is necessary to fit the available information on the set of fiducial particles p at slice n, (x p n ð Þ , y p n ð Þ ), with a model. The model considered for rigid body rotation with shifts is where φ denotes the azimuth of the rotation axis projected on the x-y plane in the center framework, and ψ is the out of plane angle. Assuming that the sample (and stage) rotates by a tilt angle θ n around a general fixed axis ω ! , the transformation matrix based on (30) is found

33cos 2 ψ sin 2 φ cos 2 ψ cos φsin φ cos ψ sin ψ sin φ cos 2 ψ cos φ sinφ cos 2 ψ cos 2 φ cos ψ sin ψ cos φ cos ψ sin ψ sin φ cos ψ sin ψ cos φ

34We solve iteratively for the height of fiducial p in the sample, z p c , and for the projected stage translations Δx n ½ , Δy n ½ based on the inverse of equation (1). Obtaining x p c and y p c is trivial if a projection at tilt angle θ = 0 is available. Otherwise, we calculate the locations of each particle in the center frame from a tilt angle θ 0 nearest to zero as follows:

35The lateral shifts are defined zero at tilt angle θ 0 and the value of the fiducial height z p c in equation (3) is initialized to zero in the first iteration. Subsequently, it is later propagated from previous iterations (denoted p.i).

36For convenience, we search for the axis of rotation ω ! with deviation of up to 15°from either the x or y axes as defined in the user settings (larger in plane rotations should be compensated in advance by specifying approximate angle φ in the settings). In the following, we denote angle brackets with subscript n as the average of different slices n (either mean or median depending on the number of samples). The elements of the rotation matrix A are indexed with respect to vector (x,y,z). Accordingly, the height of the fiducial z p c should be extracted from the differences in y or x positions of the fiducial p between the center slice and other slices

37Thus, we generalize the calculation using

38The translational shifts (jitter) are calculated by iterations based on equation (1) as follows:

e7-8 Shahar Seifer and Michael Elbaum

39In equation (5), we take a "med-average" of different fiducials p. Namely, we sort the values by order and calculate the average of 20% of the values located in the center of the ordered list, thus rejecting false fiducial points while at the same time reducing the standard deviation by arithmetic average. The fitting error is calculated as error = 〈 x p n ½ þΔx n ½ Àx sim p, n ½ ð Þ 2 þ y p n ½ þΔy n ½ Ày sim p ½ ð , nÞ 2 〉 n,p 1=2 (6) where "sim" stands for simulated values, and the vector is calculated as

40The process is repeated for different parameters of φ and ψ in a range of AE15°with respect to the assumed orientation of the rotation axis. By minimizing the fitting error, those parameters and the final solution of Δx n ½ , Δy n ½ are determined.

Results and Demonstration

41We have confirmed that the image analysis is able to detect most of the fiducials that could be recognized by eye. Figure 4a shows an example where the detected particles are circled in red, and highlights in green about one fifth of them. Specifically, these tracked fiducials are validated as cluster vertices and will be used to optimize the series alignment. Figure 4b-d shows the assignment of fiducial particles to a single cluster viewed from three angles: À50°, À2°, and þ20°. The specimen is a vitrified cell of Plasmodium falciparum imaged by cryo-scanning transmission electron tomography (CSTET) in bright field mode with sampling 2 nm/pixel in a Titan Krios microscope (Thermo Fisher Scientific) at 300 kV acceleration (31(. The single-tilt series covered a range from À56°and þ56°in steps of 2°. Gold nanoparticles are scattered over the sample to serve as fiducials, but due to the specimen thickness of 1 μm they are just marginally visible by eye at the higher tilts. The user settings (Table 1, Figure 2) are as follows: cluster radius 400 pixels, fiducial size 7.5 pixels AE30%, fiducial location tolerance 200%, maximal number of fiducials 800, tracking threshold of 80%, without second optical iteration (no repeat of the analysis), and with a generous alignment tolerance of 150 pixels. The minimum count of fiducials in a cluster, Ncluster, was varied with each run. Association between a fiducial appearance in the center slice and its appearance in another slice is approved if the number of relevant matching vectors is equal or greater than Ncluster. The tracking of a given fiducial is recorded only if its location as a vertex center is found in a number of tilt slices that exceeds the tracking threshold times the total number of slices (here, e.g., we ignore fiducials that could be found in less than 46 slices out of 57). In addition, we neither count nor report fiducial locations that can be associated with multiple fiducials in the center slice, the process which is called collision blockage. For the purpose of demonstration, a flag called "ignore_collisions" in the code was altered between true and false to test the influence of rejecting fiducials that match with more than one fiducial in the center slice. Moreover, when the user sets Ncluster = Auto, the threshold value Ncluster is determined independently for each fiducial and is determined as the maximum that yields only one association in fiducial location in a number of slices according to the tracking threshold.

42Following the description above, the tilt axis position and orientation was solved iteratively from the locations of tracked fiducials across the tilt series. The aligned series was then reconstructed by our Matlab program using SIRT3D in ASTRA toolbox, activated in the GUI window of ClusterAlign. The 3D slices shown in Figure 5 demonstrate details of the parasite as well as two separate layers of fiducials.

e7-10 Shahar Seifer and Michael Elbaum

43The symmetry of intensity projections (spines) in the YZ plane radiating from each fiducial is a qualitative mark of a successful alignment. Figure 6 compares reconstruction using automated alignment in IMOD versus ClusterAlign. For a fair comparison, both reconstructions were performed using IMOD. The ClusterAlign result is visually superior. Manual refinement may be applied to either workflow, but of course that contradicts the goal of hands-off processing.

44Fiducials located significantly apart in z locations cannot form clusters that sustain their structure during rotation, as viewed in the image plane. Even if we observe several sets of fiducial points "traveling" to different directions during rotation due to differences in z coordinate, the algorithm will associate cluster members for each vertex of similar height while ignoring the nonmembers. Collisions are not likely to occur unless the uniqueness in structure of each cluster is compromised. However, anticipating possible warping and distortions we limit the radius of the clusters when possible. This also serves to accelerate the processing. The rationale is that nearby fiducials (e.g., those on the same side of the sample) are likely to spread at similar height in z. We test this assumption for the dataset of Figure 5 using files generated by ClusterAlign that report on the accepted fiducial locations in the central frame of axes. The plot in Figure 8 In the following, we present quantitative measures to evaluate the software operation. First, we need a numerical measure of the fiducial visibility. A convenient estimate of the signal to noise ratio related to fiducial detection is found by averaging 2D images of many detected fiducials and their surrounding background. Adapting from (32) , we define the contrast to noise ratio (CNR) based on 〈I 2 f 〉, the average template of all potential fiducials within AE30°tilt angles (applicable to the center tilt within 5% accuracy), and the standard deviation (STD) of the raw image as .

45The difference between the maximum and minimum of the average fiducial image represents the difference between object and background. The square over the image intensity is justified by the observed improvement in fiducial detection compared to linear averaging, consistent with their intensities standing out locally over the specimen. For the example at hand we found CNR = 1.0. This is a rather low value, indicating a difficult dataset for conventional fiducial-based tracking methods. A case of strong contrast in a plastic-embedded section (training data for IMOD reconstruction, https://bio3d.colorado. edu/imod/doc/etomoTutorial.html) obtained a CNR = 3.5. Alignment precision depends on the number of tracked fiducials (validated by cluster centers) as well as the fidelity of their localization. As seen in Figure 8a, their number depends inversely on the number of cluster members (NCluster) when collisions, for example, ambiguous assignments in the zero tilt image, are ignored. When collision suppression is enforced, the number of tracked fiducials finds a maximum, as small clusters fare poorly in the collision test. These tendencies repeat in all datasets that we have studied, and imply quite reasonably that the confidence in the discrimination of tracked fiducials is higher when they are supported on a larger cluster count, and that the collision suppression is an effective filter to retain the reliable subset of tracked fiducials. In the example shown the number of tracked fiducial is maximum (45) for NCluster = 25. The maximum in cluster count provides a means to optimize the cluster size automatically in the face of an unknown total number of fiducial particles. We can evaluate the fitting error as the root mean square (RMS) distance in (x,y) between a reported fiducial location and its predicted location according to a fitted rigid body rotation model, for all accepted (tracked) fiducial points. The RMS of the fitting error per slice is stored in a file during execution. Figure 8b shows that the fitting error depends sensitively on the collision blocking but not on the cluster size when colliding assignments are suppressed.

46As an independent analysis tool, we evaluate alignment errors based on projection matching, namely, the evaluation of projection shifts, calculated based on peak locations in cross-correlation between the corrected (aligned) tilt images and the reprojected tilt images from a 3D reconstruction. We calculate reprojections from a general reconstruction, leaving out only slices with fitting error exceeding 15 pixels. In comparison, the calculation of resolution based on the value of cross-correlation between image and reprojection is more delicate and requires leaving out the one tilt angle from each dedicated reconstruction (33) . The Matlab code for alignment error assessment is available under the name clusteralign_test.m and makes use of the Astra toolbox (25,26) for weighted back projection reconstruction and projection.

47(Iterative reconstruction such as SIRT should not be used in this evaluation (11) ). Sub-pixel resolution is achieved using Fast Fourier Transform interpolation code (34) . Figure 9a shows that for raw tilt series data, which includes rough misalignments, the quantification of alignment error using projection matching (circles) is similar to the errors based on fitting fiducial locations to a rigid body model (triangles). Since the reconstruction of the unaligned stack is blurry, the cross-correlation at some points is too low to provide numerical values for comparison. However, considering some inaccuracy in both the fiducial locations and correlation, the evaluation is consistent. Figure 9b presents RMS of error in fit of reported fiducial locations to rigid body model after alignment by various methods. The fiducial locations are reported in fid.txt file, per tilt slice, both by ClusterAlign and IMOD. In the case of IMOD, we observe that the tracking is successful, but some of the reported locations are fictitious, that is, they are based on a model and not actually detected. In contrast, the fiducial locations reported by ClusterAlign are found independently of the rigid body model and appear to have lower residues. In the first iteration of ClusterAlign, which obtained 65 tracked fiducials, except for one error point there is improvement over the IMOD report. In the second optical iteration of ClusterAlign, which obtained six tracked fiducials in this case, all large errors are removed and the RMS fit errors of the fiducial locations are mostly below 1 pixel. While the number 6 may appear alarmingly small, it represents six vertices of clusters containing tens of identified nanoparticles, all of which contribute to determination of the tilt axis. It should be noted that IMOD provides further tools to correct manually the locations errors, but our analysis refers to automated batch mode of a difficult tilt series. The batch mode process in IMOD reports on 2.8 nm (1.4 pixels) weighted mean residual error. In Figure 9c, we show the actual alignment errors evaluated based on projection matching evaluation performed on the aligned files. In ClusterAlign, most of the errors are below 0.5 pixels and on average about half the errors from IMOD. In IMOD, three slices at high tilt angles could not be aligned; where the coarse cross-correlation based on image contrast fails, the fiducial tracking cannot recover. These tilts would normally be excluded from the reconstruction, but precisely these high tilt images contribute to resolution in the axial (z) direction.

48Another CSTET sample tested (HFF-1 cell) shows a good fiducial visibility (CNR = 2.8) and a copious amount of fiducials. The alignment errors based on projection matching evaluation are shown in Figure 10. The alignment settings used maximum fiducial number 2,000 and average particle size 6.5 pixel. After the first optical iteration ClusterAlign found 389 tracked fiducials, and thus the same number of points was requested in etomo using the batch alignment. After a second optical iteration in ClusterAlign, 16 tracked fiducials remained. The median error increased from about 0.2 pixels to 0.5 pixels, but all the significant errors at high tilts were reduced below 1.5 pixels. For comparison, IMOD performance was either comparable or slightly better in most points, but failed significantly at 5 points of high tilt angles. The correlation between coarse and fine alignment is again dominant. We expect that the performance of ClusterAlign at sub-pixel errors should ideally depend on the fitting error divided by the square root of the number of analyzed points per slice, which is in principle the number of tracked fiducials. Thus, the increase in the median error after the second iteration is a consequence of decrease in the number of tracked fiducials. The latter is a consequence of managed cluster rejections aiming to increase the tracking threshold and achieve higher slice coverage.

Discussion and Conclusion

49ClusterAlign is a tool for fiducial-based tomographic reconstruction. It offers automated cluster tracking, alignment, and reconstruction that is tolerant to gaps in tilt views and to skew in the rotation axis. Hence, it is especially suited for analysis of thick samples. The software is freely available and should add to the growing toolchest for tomographic reconstruction. Ongoing improvement in tilt series alignment methods carries several positive implications. Foremost, proper alignment at high tilt angles is crucial for depth resolution. Excluding high tilt contributions from reconstruction is acceptable for workflows involving sub-tomogram averaging, where the missing information is obtained from multiple particles in complementary orientations, but the exclusion will be detrimental in reconstruction of unique structures. Second, avoiding the need for manual refinements is essential in order to keep up with ever more rapid data collection. Reconstruction quality depends on sub-pixel precision, as misalignments are projected to the entire thickness of reconstruction. ClusterAlign is especially useful for tomograms that are difficult to align and reconstruct by other means. In addition, we offer several tools to compare performance with other alignment algorithms. These include import and export of fiducial location files in a format compatible with tomoalign and convertible to IMOD .fid, evaluation of the aligned stack on the basis of projection matching, and reporting locations of fiducials without alignment corrections (by setting alignment tolerance to zero). The software also extracts the 3D position of the fiducials and thus provides a tool for characterization of fiducial spread in the sample. The idea of cluster analysis for fiducial tracking was introduced in TxBr (6,35) and Raptor (1) , where clusters are compared between neighboring tilt view for improving the cross-correlation approach. In TxBr, the 3D locations of the fiducials are estimated based on triangulation of two tilt views, but the accuracy depends on successful alignment by cross-correlation. Later, affine-invariant vector products based on four fiducial points were used to provide a unique fingerprint of any such cluster under rotation. (3) The advantage in this elegant approach is that any four points could join a cluster, irrespective of the location in z. ClusterAlign is using solely fiducial particle locations for alignment. It searches for unique patterns in many points at once and is robust for tracking in the case of thick samples, with large lateral movements and poor visibility of fiducials at high tilt angles. A possible extension is to take into account in the second iteration the z values that are known for tracked fiducials in the first. Based on the differences in z, it would then be possible to predict accurately the dependence of the vector length on tilt angle and thus include clusters members irrespective of their height in z; however, this approach has not been implemented so far due to cost in calculation time. Finally, we can comment that the ClusterAlign approach seems to imitate the human perception of tracking fiducials based on their relations to nearby points.

참고문헌 32건

  1. A novel fully automatic scheme for fiducial marker-based alignment in electron tomography Journal of Structural Biology · Elsevier BV · 2015 10.1016/j.jsb.2015.09.022
  2. Automated batch fiducial-less tilt-series alignment in Appion using Protomo Journal of Structural Biology · Elsevier BV · 2015 10.1016/j.jsb.2015.10.003
  3. Refinement procedure for the image alignment in high-resolution electron tomography Ultramicroscopy · Elsevier BV · 2011 10.1016/j.ultramic.2011.06.001
  4. Aligned hemozoin crystals in curved clusters in malarial red blood cells revealed by nanoprobe X-ray Fe fluorescence and diffraction Proceedings of the National Academy of Sciences · National Academy of Sciences · 2012 10.1073/pnas.1118134109
  5. Alignator: A GPU powered software package for robust fiducial-less alignment of cryo tilt-series Journal of Structural Biology · Elsevier BV · 2010 10.1016/j.jsb.2010.01.014
  6. Tomo3D 2.0 – Exploitation of Advanced Vector eXtensions (AVX) for 3D reconstruction Journal of Structural Biology · Elsevier BV · 2014 10.1016/j.jsb.2014.11.009
  7. TomoJ: tomography software for three-dimensional reconstruction in transmission electron microscopy BMC Bioinformatics · BioMed Central · 2007 10.1186/1471-2105-8-288
  8. Nanoscale 3D cellular imaging by axial scanning transmission electron tomography Nature Methods · Nature Portfolio · 2009 10.1038/nmeth.1367
  9. Analysis of image quality for real‐time target tracking using simultaneous kV‐MV imaging Medical Physics · Wiley · 2008 10.1118/1.3002313
  10. Computer Visualization of Three-Dimensional Image Data Using IMOD Journal of Structural Biology · Elsevier BV · 1996 10.1006/jsbi.1996.0013
  11. Markov random field based automatic image alignment for electron tomography Journal of Structural Biology · Elsevier BV · 2007 10.1016/j.jsb.2007.07.007
  12. A resolution criterion for electron tomography based on cross-validation Journal of Structural Biology · Elsevier BV · 2005 10.1016/j.jsb.2005.04.006
  13. Transform-based backprojection for volume reconstruction of large format electron microscope tilt series Journal of Structural Biology · Elsevier BV · 2006 10.1016/j.jsb.2005.12.012
  14. Imaging and characterizing cells using tomography Archives of Biochemistry and Biophysics · Elsevier BV · 2015 10.1016/j.abb.2015.01.011
  15. Cryo-scanning transmission electron tomography of vitrified cells Nature Methods · Nature Portfolio · 2014 10.1038/nmeth.2842
  16. Performance improvements for iterative electron tomography reconstruction using graphics processing units (GPUs) Journal of Structural Biology · Elsevier BV · 2011 10.1016/j.jsb.2011.07.017
  17. 3D reconstruction of biological structures: automated procedures for alignment and reconstruction of multiple tilt series in electron tomography Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2016 10.1186/s40679-016-0021-2
  18. Automated tilt series alignment and tomographic reconstruction in IMOD Journal of Structural Biology · Elsevier BV · 2016 10.1016/j.jsb.2016.07.011
  19. Fast live-cell conventional fluorophore nanoscopy with ImageJ through super-resolution radial fluctuations Nature Communications · Nature Portfolio · 2016 10.1038/ncomms12471
  20. Guidelines for using Bsoft for high resolution reconstruction and validation of biomolecular structures from electron micrographs Protein Science · Wiley · 2017 10.1002/pro.3293
  21. A fast fiducial marker tracking model for fully automatic alignment in electron tomography Bioinformatics · Oxford University Press · 2017 10.1093/bioinformatics/btx653
  22. Cryo-tomography tilt-series alignment with consideration of the beam-induced sample motion Journal of Structural Biology · Elsevier BV · 2018 10.1016/j.jsb.2018.02.001
  23. Expanding horizons of cryo-tomography to larger volumes Current Opinion in Microbiology · Elsevier BV · 2018 10.1016/j.mib.2018.01.001
  24. emClarity: software for high-resolution cryo-electron tomography and subtomogram averaging Nature Methods · Nature Portfolio · 2018 10.1038/s41592-018-0167-z
  25. The cellular landscape by cryo soft X-ray tomography Biophysical Reviews · Springer International Publishing · 2019 10.1007/s12551-019-00567-6
  26. A complete data processing workflow for cryo-ET and subtomogram averaging Nature Methods · Nature Portfolio · 2019 10.1038/s41592-019-0591-8
  27. A novel constrained reconstruction model towards high-resolution subtomogram averaging Bioinformatics · Oxford University Press · 2019 10.1093/bioinformatics/btz787
  28. The ASTRA Toolbox: A platform for advanced algorithm development in electron tomography Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.05.002
  29. Flexible STEM with Simultaneous Phase and Depth Contrast Microscopy and Microanalysis · Oxford University Press · 2021 10.1017/s1431927621012861
  30. AreTomo: An integrated software package for automated marker-free, motion-corrected cryo-electron tomographic alignment and reconstruction bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2022 10.1101/2022.02.15.480593
  31. AreTomo: An integrated software package for automated marker-free, motion-corrected cryo-electron tomographic alignment and reconstruction Journal of Structural Biology X · Elsevier BV · 2022 10.1016/j.yjsbx.2022.100068
  32. Diffraction contrast in cryo-scanning transmission electron tomography reveals the boundary of hemozoin crystals <i>in situ</i> Faraday Discussions · Royal Society of Chemistry · 2022 10.1039/d2fd00088a