SciLifeLab workshop: high-resolution refinement

In this session we take 19,972 HIV-1 Gag particles to a 3.7 Å map using constrained single-particle tomography (CSPT). Refinement from scratch takes too long for one session, so we start from pre-calculated alignments.

🔎 What is constrained single-particle tomography?

Sub-tomogram averaging (Session 3) aligns 3D sub-volumes. Those volumes are blurred by the missing wedge and by small errors in tilt-series alignment.

CSPT instead works on the particles’ 2D projections in each tilt image, like single-particle cryo-EM, but constrained by the tomography geometry: the projections of one particle in all tilts must agree with a single 3D position and orientation. This lets nextPYP also refine the tilt-series geometry, the deformation of each region of the sample, and the motion within each tilt’s movie frames, which is what brings the resolution to 3.7 Å.

../_images/cspt.webp

Constrained single-particle tomography (CSPT)

Reconstruction and particle filtering (5 min)

The rotations and translations for this session are precomputed. We import a shared set of particle coordinates instead of picking again, both to demonstrate coordinate import and so that everyone refines the same particles. The alignment file in the next step carries the precomputed rotations and translations for those coordinates.

Step 1: Import particles
  • Click on Tomograms (output of the Pre-processing block from Session 2) and select Particle picking

  • Set Detection method to import and Particle radius (A) to 50

  • Set Import particle coordinates (*.spk) to /fastrs/bartesaghi/nextpyp/workshop/10164/particles and select Choose Folder

  • Click Run, then check that the particles sit on the virion surfaces (measured runtime: 1 min)

Step 2: Import alignments and calculate the reconstruction
  • Click on Particles (output of the Particle picking block) and select Calculate reconstruction

  • On the Sample tab, set Molecular weight (kDa) to 300, Particle radius (A) to 150 and Particle symmetry to C6

  • On the Particle extraction tab, set Box size (pixels) to 128 and Image binning to 2

  • On the Alignments tab, set Import from to nextPYP (.bz2)* and set Input parameter file (*.bz2) to /fastrs/bartesaghi/nextpyp/workshop/10164/particles/tomo-coarse-refinement-fg2v2MJLSY4Ui908_r01_02.bz2

  • On the Reconstruction tab, check Apply dose weighting

  • On the Resources tab, set Split, Threads to 128

  • Click Run (measured runtime: 4 min)

Parameter

Value

Why

For your own data

Symmetry critical

C6

Immature Gag forms hexamers; symmetry averaging increases the signal six-fold.

Use your molecule’s symmetry; C1 if unknown.

Particle radius (A) critical

150

Defines the spherical mask; must contain the whole particle.

Slightly larger than your particle’s radius.

Box size / Image binning forgiving

128 / 2

Binning makes early rounds fast; the box must hold the particle with some margin.

Bin while resolution is low; go to binning 1 for the final rounds.

Apply dose weighting forgiving

on

Later tilts have received more electron dose and carry less high-resolution signal; weighting accounts for this. Later blocks in this session inherit the setting.

Turn it on here and leave it on.

Split, Threads forgiving

128

Threads used to reconstruct each tilt-series.

Use as many as your system allows for this step.

Step 3: Particle filtering
  • Click on Particles (output of the Calculate reconstruction block) and select Particle filtering

  • On the Particle filtering tab:

    • Set Score threshold to 3.5 and Min distance between particles (unbinned pixels/voxels) to 54

    • Set Input parameter file (*.bz2) to the *.bz2 file from the parent block

    • Check Permanently remove particles

  • Click Run (measured runtime: 1 min). When it finishes, the block shows the number of particles left after filtering under its thumbnail.

Parameter

Value

Why

For your own data

Score threshold critical

3.5

Removes particles that agree poorly with the reference (keeps about 5,000).

Look at the score histogram and set the threshold at the dip between good and bad particles.

Min distance between particles forgiving

54

Removes duplicates that converged onto the same position.

About the particle diameter in unbinned pixels.

Session 4 checkpoint 1

You should now have about 5,000 filtered particles.

If filtering failed or you fell behind, you have two options:

  • Import the checkpoint with its results. Click Import Blocks, choose Archive, and import /fastrs/bartesaghi/nextpyp/workshop/checkpoints/stockholm2026_s4_checkpoint1_filtered_particles.nextpyp.tbz. The blocks are added to your project together with their results, so you can catch up.

  • Recreate this session from your pre-processing block. Click Tomograms on the Pre-processing block from Session 2, open the Workflows tab, and choose Stockholm 2026 S4 - HIV-1 high-resolution CSPT. It imports the particles and runs the rest of this session, through post-processing, not only the filtering step. Then run the new blocks.

High-resolution refinement (38 min)

Step 4: Region-based and tilt-geometry refinement
  • Click on Particles (output of the Particle filtering block) and select 3D refinement

  • On the Particle extraction tab, set Box size (pixels) to 256 and Image binning to 1

  • On the Particle scoring function tab, set Last tilt for refinement to 8 and Max resolution (A) to 4:3.5. Set Masking strategy to from file and Shape mask (*.mrc) to /fastrs/bartesaghi/nextpyp/workshop/10164/EMPIAR-10164_shape_mask.mrc

  • On the Refinement tab, set Input parameter file (*.bz2) to the *_clean.bz2 file from the parent block (the workshop run produces *_r01_01_clean.bz2), set Last iteration to 3, check Refine tilt-geometry and Refine particle alignments, and set Number of regions to 8,8,2

  • Click Run (measured runtime: 18 min)

../_images/regionbased.webp

Region-based refinement

Parameter

Value

Why

For your own data

Last tilt for refinement critical

8

Only the lowest-dose tilts (collected first) are used for alignment; they carry the most high-resolution signal.

Fewer tilts for high resolution; more if your particles are small and need more signal.

Max resolution (A) critical

4:3.5

Resolution limit per iteration; raising it gradually avoids fitting noise.

Start slightly beyond your current resolution.

Number of regions forgiving

8,8,2

Splits each tomogram into regions refined separately, to correct local deformation of the sample.

Use fewer regions when there are few particles per tomogram.

Step 5: Movie frame refinement

Each tilt is a short movie. The schematic shows a small tilt-series on the left, and on the right the same tilts split into their frames. Movie-frame refinement aligns those frames.

Toy tilt-series with several frames in each tilt

Each tilt (left) is recorded as several movie frames (right).

  • Click on Particles (output of the 3D refinement block) and select Movie refinement

  • On the Particle scoring function tab, set Last tilt for refinement to 4 and Max resolution (A) to 3.5

  • On the Frame refinement tab, set Input parameter file (*.bz2) to the *_r01_03.bz2 file from the parent block, Spatial sigma to 400 and Time sigma to 16

  • Click Run (measured runtime: 18 min)

Step 6: Post-processing
  • Click on Frames (output of the Movie refinement block) and select Post-processing

  • On the Post-processing tab:

    • Set First half map (*_half1.mrc) to the *_half1.mrc file

    • Set Masking method to from file and Mask file (*.mrc) to /fastrs/bartesaghi/nextpyp/workshop/10164/EMPIAR-10164_shape_mask.mrc

    • Set B-factor method to adhoc and Adhoc value (A^2) to -25

  • Click Run and look at the FSC curve and the final map (measured runtime: 2 min)

  • The workshop run reports a final masked resolution of 3.7 Å.

Session 4 checkpoint 2

If refinement or post-processing failed, or you fell behind, click Import Blocks, choose Archive, and import /fastrs/bartesaghi/nextpyp/workshop/checkpoints/stockholm2026_s4_checkpoint2_high_resolution.nextpyp.tbz to catch up with the finished Session 4 blocks and results. This archive, like the other checkpoint files, can also be imported into another nextPYP instance.

To rebuild the pipeline instead, click Tomograms on the Pre-processing block, open the Workflows tab, and choose Stockholm 2026 S4 - HIV-1 high-resolution CSPT. It imports the particles and runs the rest of this session. Then run the new blocks.

Getting your results out

Visualize particles in the tomogram with ChimeraX and ArtiaX

ArtiaX must already be installed; if it is not in the ChimeraX toolbar, install it from Tools → More Tools (search for ArtiaX) before you start.

  • Download the files

    • Open the Pre-processing block from Session 2, the one connected to particle picking.

    • Go to View → Tilt Series → Tomogram. Click the search icon, search for TS_43, and check that the label above the display says TS_43.

    • Click the green .rec badge just above the tomogram. The file is about 128 MiB.

    • Open the Calculate reconstruction block and go to the Metadata tab. Type TS_43 and click Search. Click the .star badge to download the particle alignments.

    • On the Reconstruction tab of the same block, open Select an MRC file to download and choose Cropped Map.

  • Display in ChimeraX

    • Close any models already open (File → Close), so the tomogram is model #1.

    • Open TS_43.rec and run these commands in the ChimeraX shell:

      volume permuteAxes #1 xzy
      volume flip #2 axis z
      close #1-2
      

      Model #3 is the permuted, z-flipped tomogram.

    • Open the cropped map now, after the tomogram, so its model number stays the same in the later steps.

    • Go to the ArtiaX tab and click Launch.

    • In the Tomograms section on the left, select model #3 (permuted z flip) from the Add Model dropdown and click Add!

    • In the Volume Viewer tab, change the display from tilted slab to plane. A plane is much more responsive.

    • On the left, under Particles List, choose Open List … and open the .star file.

    • On the right, open the Select/Manipulate tab. Set Origin, under Pixelsize Factors, to 1.35.

    • Open the Visualization tab. Marker Radius is on this tab: drag it to about 40, and drag Axes Size until the particles and their orientations are easy to see. Under Color Settings, choose Colormap, then rlnLogLikeliContribution from the attribute menu.

    • On the left, under Add new surface, select the *_crop.mrc model from Use Model and click Attach Model.

ArtiaX visualization of HIV-1 Gag

Tomogram of immature HIV-1 virions (EMPIAR-10164) with the Gag map placed back on the particles.

Export to other software
  • Particle alignments are available in .star format from the Metadata tab, so you can continue in RELION, Warp/M or other packages.

  • Projects from other software (e.g., RELION) can also be imported into nextPYP. See Import/export functionality.

Visualize the final map

Fit the map to coordinates in ChimeraX
  • Download the pre-aligned coordinates (5l93_aligned_helix.pdb, from PDB 5L93)

  • In the Post-processing block, open the Reconstruction tab, then Select an MRC file to download, and choose Full-Size Map

  • Open the map and the coordinates in ChimeraX

  • Run these commands:

    volume zone #2 nearAtoms #1,3 range 2.3
    show atoms
    hide cartoon
    transparency 50
    lighting soft
    
  • Adjust the map threshold

  • Spin the view:

    turn y .5 1440
    

Applying this to your own data

  • Start from a good initial model and alignments, e.g., from sub-tomogram averaging (Session 3).

  • Filter particles using the score distribution rather than a fixed number.

  • Raise the resolution limit gradually, and refine geometry (tilts, regions, frames) only once the map is good enough to drive it.

  • Symmetry and masks must match your molecule.

  • ArtiaX pixel size and origin are different numbers. The pre-processing header shows the unbinned pixel size. The downloaded tomogram is binned, so Pixel Size is unbinned size × binning. Origin stays at the unbinned size, because that is the unit of the .star coordinates.

Day summary

What we covered today
  • On-the-fly processing of single-particle and tomography data

  • Raw data import, pre-processing and tomogram reconstruction

  • Filtering tilt-series

  • Particle picking: geometry-based, size-based, manual, and MiLoPYP-2

  • Denoising (IsoNet2) and segmentation (MemBrain-Seg)

  • Sub-tomogram averaging

  • Constrained single-particle tomography to 3.7 Å

  • Visualizing results in ChimeraX/ArtiaX and exporting to other software

Next: after the workshop.