Sub-tomogram averaging

Traditional alignment-through-classification is a strong de novo strategy: classify and average sub-volumes, align class averages, then align particles to the combined reference, as in Bartesaghi et al., 2008. High-SNR references from this path can seed later high-resolution refinement on 2D projections.

In nextPYP this path is four STA (sub-tomogram averaging) blocks, one per mode. Each block runs one step and writes its own 3DAVG folder; the next block stages those files automatically.

Requirements

  • A Particle picking block (or compatible particles) with picks you trust

  • Sub-volumes exported for 3DAVG (see Step 0)

The four STA blocks

Add them in this order. The Graph only allows the connections below.

  1. STA centering — global average and iterative centering (mode 0). Average all sub-volumes; optionally center with translation-only alignment (optionally against a radially symmetrized average).

  2. STA classification — 3D classification (mode 1). Cluster sub-volumes from the latest alignments and form class averages. Include or exclude classes and pick the reference class on this block (no separate Class Selection step).

  3. STA refinement — class-average alignment (mode 2). Align the included class averages to the reference class, then average the keepers into a new reference.

  4. STA alignment — sub-volume alignment to that reference (mode 3). Align each sub-tomogram (global SO(3) or restricted in-plane search around a normal).

After STA alignment, add another STA classification to start the next iteration (classification → refinement → alignment → classification …). The iteration number is set from the parent block; you do not type it.

Calculate reconstruction can follow STA centering or STA classification. Ab-initio and reference-based reconstruction can follow centering only.

Note

Existing projects may still have a single Sub-tomogram averaging (legacy) block that switches modes with Refinement mode. New projects should use the four STA blocks. After that combined legacy block, Class Selection remains available to subset classes (including Select only this class) before reconstruction. The current STA path does class include/exclude on STA classification itself.

Masks and filters for alignment and classification

  • Masking: radii in x, y, z and apodization width (binned pixels)

  • Filtering: low- and high-pass cutoffs and decays as fractions of Nyquist (for example 0.05,0.01)

Step 0. Preparation

  1. In Particle picking, open Particle extraction, set Sub-volume export format to 3davg, and choose Sub-tomogram size (voxels) and Sub-tomogram binning

  2. Click Run

Note

A 64-voxel box with binning chosen so the box is ~2.5× particle diameter is a good starting point. Larger boxes increase cost quickly.

Step 1. STA centering

  1. Click Particles and choose STA centering

  2. Under Alignments from sub-volume averaging (*.txt), open the upstream frealign folder and select *_original_volumes.txt

  3. Optionally enable Rotational symmetry, set centering iterations, and adjust masks/filters

  4. Click Run

  5. Review the global average and the Filtered reference tab

Step 2. STA classification

  1. Click Particles on STA centering and choose STA classification

  2. Set Classes and adjust masks/filters if needed

  3. Click Run

  4. On the Classification tab, include or exclude classes and click the reference class (the first included class is used if you do not pick one)

Class tiles show occupancy and, when the log has it, a 3-fold symmetry score (first classification) or Distance to reference (later iterations).

You can send included classes to STA refinement or to Calculate reconstruction.

Step 3. STA refinement

  1. Click Particles on STA classification and choose STA refinement

  2. The included classes and reference come from the classification block. Adjust masks/filters if needed

  3. Click Run

  4. Review the refined class averages

Note

Steps 1–3 benefit from threads — set Launch, Threads under Resources. Each thread becomes one MPI rank. To go beyond a single machine, raise Launch, Nodes: Threads is then the total core count across those nodes, and the ranks are started as a SLURM job step with srun --mpi=pmi2.

Step 4. STA alignment

  1. Click Particles on STA refinement and choose STA alignment

  2. Set rotational/translational search plus masks/filters

  3. Click Run

Note

This is the heaviest step; spread it across a SLURM cluster when you can.

You can also enable options such as aligning classes to an external reference or centering via center of mass when those controls appear on the form.

Step 5. Next iteration

  1. Click Particles on STA alignment and choose STA classification

  2. Run classification, then add (or re-run) STA refinement and STA alignment as in steps 2–4

Each run writes a protocol snapshot of the settings used under 3DAVG/protocol/ (iteration_NNN_mode_M.toml) and the XML that MPI_Classification consumes (iteration_NNN_mode_M.exe.xml).

Example schedule:

  • Iteration 1: centering → classification → refinement → alignment

  • Iteration 2+: classification → refinement → alignment

Running the first few iterations as separate blocks usually produces better maps than fully automating every switch.