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 Å.
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 pickingSet
Detection methodto import andParticle radius (A)to 50Set
Import particle coordinates (*.spk)to/fastrs/bartesaghi/nextpyp/workshop/10164/particlesand select Choose FolderClick 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 reconstructionOn the Sample tab, set
Molecular weight (kDa)to 300,Particle radius (A)to 150 andParticle symmetryto C6On the Particle extraction tab, set
Box size (pixels)to 128 andImage binningto 2On the Alignments tab, set
Import fromto nextPYP (.bz2)* and setInput parameter file (*.bz2)to/fastrs/bartesaghi/nextpyp/workshop/10164/particles/tomo-coarse-refinement-fg2v2MJLSY4Ui908_r01_02.bz2On the Reconstruction tab, check
Apply dose weightingOn the Resources tab, set
Split, Threadsto 128Click Run (measured runtime: 4 min)
Parameter |
Value |
Why |
For your own data |
|---|---|---|---|
|
C6 |
Immature Gag forms hexamers; symmetry averaging increases the signal six-fold. |
Use your molecule’s symmetry; C1 if unknown. |
|
150 |
Defines the spherical mask; must contain the whole particle. |
Slightly larger than your particle’s radius. |
|
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. |
|
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. |
|
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 filteringOn the Particle filtering tab:
Set
Score thresholdto 3.5 andMin distance between particles (unbinned pixels/voxels)to 54Set
Input parameter file (*.bz2)to the*.bz2file from the parent blockCheck
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 |
|---|---|---|---|
|
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. |
|
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
Tomogramson 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 refinementOn the Particle extraction tab, set
Box size (pixels)to 256 andImage binningto 1On the Particle scoring function tab, set
Last tilt for refinementto 8 andMax resolution (A)to 4:3.5. SetMasking strategyto from file andShape mask (*.mrc)to/fastrs/bartesaghi/nextpyp/workshop/10164/EMPIAR-10164_shape_mask.mrcOn the Refinement tab, set
Input parameter file (*.bz2)to the*_clean.bz2file from the parent block (the workshop run produces*_r01_01_clean.bz2), setLast iterationto 3, checkRefine tilt-geometryandRefine particle alignments, and setNumber of regionsto 8,8,2Click Run (measured runtime: 18 min)
Region-based refinement¶
Parameter |
Value |
Why |
For your own data |
|---|---|---|---|
|
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. |
|
4:3.5 |
Resolution limit per iteration; raising it gradually avoids fitting noise. |
Start slightly beyond your current resolution. |
|
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.
Each tilt (left) is recorded as several movie frames (right).¶
Click on
Particles(output of the 3D refinement block) and select Movie refinementOn the Particle scoring function tab, set
Last tilt for refinementto 4 andMax resolution (A)to 3.5On the Frame refinement tab, set
Input parameter file (*.bz2)to the*_r01_03.bz2file from the parent block,Spatial sigmato 400 andTime sigmato 16Click Run (measured runtime: 18 min)
Step 6: Post-processing
Click on
Frames(output of the Movie refinement block) and select Post-processingOn the Post-processing tab:
Set
First half map (*_half1.mrc)to the*_half1.mrcfileSet
Masking methodto from file andMask file (*.mrc)to/fastrs/bartesaghi/nextpyp/workshop/10164/EMPIAR-10164_shape_mask.mrcSet
B-factor methodto adhoc andAdhoc 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 saysTS_43.Click the green
.recbadge just above the tomogram. The file is about 128 MiB.Open the Calculate reconstruction block and go to the Metadata tab. Type
TS_43and click Search. Click the.starbadge 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.recand run these commands in the ChimeraX shell:volume permuteAxes #1 xzy volume flip #2 axis z close #1-2Model #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
.starfile.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
rlnLogLikeliContributionfrom the attribute menu.On the left, under Add new surface, select the
*_crop.mrcmodel from Use Model and click Attach Model.
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
.starformat 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 softAdjust 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
.starcoordinates.
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.