Relion¶
nextPYP wraps Relion’s ab-initio, classification, and 3D refinement tools as first-class blocks
for both single-particle and tomography projects.
Use them when you want Relion’s InitialModel / Class3D / Refine3D-style stages (and, for SPA,
CtfRefine and Bayesian polishing) inside a nextPYP project.
Relion CTF refinement and Relion Bayesian polishing are still marked preview in the UI. The other Relion blocks on this page are in the regular catalog. Parameters follow Relion’s usual naming where possible, and GPU resources are used when appropriate.
Exact block labels (copy these in other docs):
Relion 3D initial reference
Relion 3D classification
Relion refinement
Relion CTF refinement (SPA only)
Relion Bayesian polishing (SPA only)
Relion helical reconstruction (SPA only; after 2D classes)
3D Class Selection (after Relion 3D classification, SPA and tomography)
When to use¶
You already have particles in
nextPYP(picking, 2D class selection, or a native reconstruction that Relion is allowed to consume).You want Relion ab-initio, classification, and/or high-resolution refinement without leaving the web UI.
For tomography, you plan to continue into Warp/M M-core refinement after Relion refinement outputs are ready.
Typical paths¶
A common sequence (see also the integrated EMPIAR-10491 workflow shipped with nextPYP) is:
Tomography (from Raw Data) → Pre-processing → Particle picking
Calculate reconstruction or 3D refinement
Relion 3D initial reference
Relion refinement (optionally Relion 3D classification on the Relion particles path)
Optionally M-core refinement (Warp/M and M-core)
A common sequence after picking is:
2D Classification → Class Selection
Relion 3D initial reference and/or Relion helical reconstruction
Relion refinement (and optionally Relion 3D classification)
Relion CTF refinement → Relion Bayesian polishing
Native Particle refinement, Particle filtering, and Movie refinement cannot feed Relion or 2D Classification. Stay on the Relion / Class2D path, or stay on the native refinement path.
Relion 3D initial reference¶
Ab-initio / InitialModel-style Relion stage
Click
Particleson a compatible upstream block and choose Relion 3D initial referenceSet particle geometry (
Particle radius (A),Symmetry, and related fields) to match your sampleReview Relion general, orientation, and computation tabs (iteration count,
K, healpix/offset search, thread pool, and so on)Configure Resources for your cluster (Relion Refine3D-style jobs often need an odd MPI process count for gold-standard half-sets)
Click Run
Open the Relion 3D initial reference block to inspect maps and logs
On Relion 3D initial reference and Relion refinement, the reconstruction view includes 3D Orientation Distribution. Rod color runs from blue (fewer particles) to red (more). Hide axes / Show axes toggles the reference frame (X red, Y green, Z blue), and Hide colorbar / Show colorbar toggles the scale. You can download the .bild file for ChimeraX.
Relion 3D classification plots Resolution, Particles per class, Assignment confidence, and Angular accuracy across iterations instead of that distribution.
Relion 3D classification¶
Class3D-style Relion stage (SPA and tomography)
Click
Particleson a compatible Relion or native reconstruction block and choose Relion 3D classificationSet
Kand related Relion classification optionsClick Run
Review class maps and occupancies on View
Tomography Relion 3D classification follows the same upstream rules as Relion refinement (native Calculate reconstruction / 3D refinement, or another Relion particles block). It cannot feed M-core refinement.
Relion refinement¶
Refine3D-style Relion stage (including multi-class and helical options)
Click
Particleson Relion 3D initial reference (or another compatible Relion particles output) and choose Relion refinementConfirm radius, symmetry, class count (
K), and helical settings if you are processing filamentsAdjust Relion search and computation settings as needed for your resolution target
Click Run
Open the Relion refinement block to review half-maps, metadata, and logs
Tip
Relion refinement outputs are the intended upstream for M-core refinement. Relion 3D initial reference and Relion 3D classification cannot connect directly to M-core.
Relion CTF refinement and Bayesian polishing (SPA)¶
These SPA preview blocks run only after Relion Refine3D-style products:
Relion CTF refinement — Relion CtfRefine
Relion Bayesian polishing — Relion Bayesian polishing
You can chain them after Relion refinement, and from one into the other (or back). They do not accept native nextPYP refinement particles.
Relion helical reconstruction (SPA)¶
Relion helical reconstruction is available only after 2D Classification or Class Selection. Use it when you want Relion’s helical InitialModel2D-style reconstruction from selected 2D classes. The helical tutorial walks the full path: amyloid picking, helical extraction, two 2D classifications, this initial model, Class3D, Refine3D, Bayesian polishing, and CTF refinement.
Class Selection¶
The block label is Class Selection in both single-particle and tomography projects (the Graph distinguishes them by context).
Single-particle. After 2D Classification, add Class Selection to include or exclude 2D classes interactively. Tiles show class and particle counts; you can invert the selection, restore the automatic selection, and use Select only this class on a class tile. Optional bi-hierarchical clustering plots appear when the upstream job produced them. Selected classes can feed another 2D Classification, Relion 3D blocks, or Relion helical reconstruction. You cannot nest Class Selection after Class Selection.
Tomography. After the legacy combined Sub-tomogram averaging (legacy) block, Class Selection subsets classes (including Select only this class) before reconstruction. The current four STA blocks do class include/exclude on STA classification itself — you do not add a separate Class Selection step there. See Sub-tomogram averaging.
3D class selection and re-extraction¶
3D Class Selection sits after Relion 3D classification.
Pick an iteration, then include or exclude classes. The block keeps the full particle rows (poses, offsets, class number, subset, optics) from that iteration’s run_it*_data.star and writes them to relion/Select3D/particles.star.
Run the block before a downstream Relion refinement, another Relion 3D classification, or a re-extraction. Saving a new selection marks the block stale until it is run again.
Particle Extraction (SPA) and Particle Stack Extraction (tomography) can also follow Relion refinement, Relion 3D classification, 3D Class Selection, and, for SPA, Relion CTF refinement.
Re-extraction recenters coordinates on the refined origin by default (Recenter on refined offsets). SPA can add an extra Recenter X (pixels), Recenter Y (pixels), and Recenter Z (pixels) shift. Poses are kept, so the next refinement can start from them.
On tomography Relion refinement and Relion 3D classification, Shift map Z (particle pixels) moves the reconstructed density along Z, and Keep solvent mask fixed? leaves the mask where it was. Prior width on tilt angle (degrees) and Prior width on psi angle (degrees) (on Auto-sampling for refinement, and on Sampling for classification) follow membrane normals from filaments, spheres, or manifolds. A negative value turns the prior off. Keep angular priors fixed? keeps the starting prior centers.
A SPA extraction can then feed 2D Classification or Relion 3D initial reference, classification, or refinement.
Connection rules¶
From |
To |
Allowed? |
|---|---|---|
Native Calculate reconstruction / 3D refinement |
Tomography Relion refinement / Relion 3D classification |
Yes |
Relion 3D initial reference / Relion refinement / Relion 3D classification |
Tomography Relion refinement / Relion 3D classification |
Yes |
Relion refinement |
M-core refinement (tomo) or SPA Relion CTF refinement / Relion Bayesian polishing |
Yes |
Relion 3D initial reference or Relion 3D classification |
M-core refinement |
No |
Native SPA Particle refinement / Particle filtering / Movie refinement |
2D Classification, Class Selection, or Relion |
No |
Sub-tomogram averaging (legacy) |
Relion |
No |
Relion 3D classification |
3D Class Selection |
Yes |
3D Class Selection |
Relion refinement, Relion 3D classification, or re-extraction |
Yes |
Relion refinement / Relion 3D classification / 3D Class Selection / SPA Relion CTF refinement |
Particle Extraction or Particle Stack Extraction |
Yes |
2D Classification / Class Selection / Relion 3D blocks / Relion helical reconstruction / M-core refinement |
Map operations |
Yes |
Map operations¶
Map operations runs one relion_image_handler call on a map, an .mrcs stack, or a STAR file.
It can follow 2D Classification, Class Selection, Relion helical reconstruction, Relion 3D initial reference, classification, or refinement, and tomography M-core refinement.
On the Map operations tab, Input file defaults to auto, which uses the latest map from the upstream block. Class number picks which class that name refers to.
Leave an operation at its identity default (for example Multiply by constant at 1) and it is not passed to Relion.
The operations include multiply, divide, add, and subtract, either by a constant or by another image, plus Threshold above / Threshold below, Fourier filter, B-factor, Low-pass (A), High-pass (A), and Laplacian of Gaussian. Other fields cover flips, shifts, symmetry, and Write float16.
Reference maps and masks elsewhere on a Relion form open Choose a map or Choose a mask.
The dialog has File system, Upload, and EMDB.
On EMDB, search by Author and Description, or type a code such as EMD-12345 and click Look up.
Choose a destination folder and click Download. The form stores the .mrc path that download writes. A mask download uses a mask deposited with that entry.
Importing Relion projects¶
To bring an existing Relion 4/5 project into nextPYP, use Single Particle (from Star) or Tomography (from Star) as described in Import/export functionality.
Tips¶
Prefer walking the blocks one at a time the first time you try Relion inside
nextPYP, so logs and resource settings stay easy to interpret.Keep symmetry, particle diameter, and pixel size consistent across native pre-processing, Relion, and M-core stages.
ResourcestakesThreadsas the total core count andNodesas SLURM--nodes; MPI ranks are derived asfloor((Threads / Nodes) / Computation J), forced odd and at least 3 for gold-standard refinement.On a single node Open MPI forks the ranks itself. Across several nodes each rank is started as a SLURM task by
srun --mpi=pmi2, which requires a container whose Open MPI was built with SLURM’s PMI2 client; a job that asks for more than one node without it fails with a message saying so. SLURM reserves one task per node holding that node’s whole core count, and the ranks are then created as a job step inside that reservation.For a full SPA-style walkthrough of the rest of the UI, see the single-particle tutorial; for tomography pre-processing, see Sub-tomogram averaging (HIV-1 Gag).