← Back to the Datasets tab · RELION 2D Classification
RELION 3D Reconstruction core workflow
This script (dataset/tasks/40_Relion3DReconstruction.script, a Bash
script) makes an initial 3D model ab initio with RELION, from
the particles of the best classes of the last
RELION 2D classification. As in the
RELION GUI, the model is refined in C1 with the gradient-driven VDAM algorithm
and then aligned to the symmetry axes and symmetrised. The result,
initial_model.mrc, opens in the File Preview's
volume viewer.
The step at work, the Run button red while RELION runs: symmetry O,
the five best classes chosen automatically, 100 VDAM mini-batches. The File
Preview shows selected_classes.txt — of the twenty 2D classes, the
five with the best resolution among those holding at least 5 % of the
particles are marked yes; the Output reports their 2118 particles, the
mask diameter of 150 Å taken from the particle diameter of 125 Å, the full
RELION command, and the mini-batches as they complete.
What it needs
- RELION (5 or later, for VDAM), found as for the 2D step: through
dir_relionof the Preferences or on thePATH. - A 2D classification in
<dataset_dir>/Class2D_RealTime/with at least one completed iteration. The script takes the newest run directory and, in it, the last iteration RELION completed. A classification still running, or stopped early, is used as far as it got, with a warning. - Enough particles: fewer than 1000 in the chosen classes are accepted, with a warning that an ab initio model needs a few thousand to be reliable.
Parameters
| Parameter | Role |
|---|---|
dataset_dir | The dataset directory under merge/; the runs go into InitialModel/ below it. |
relion3d_symmetry | The point-group symmetry of the particle, chosen from a list in RELION notation: C1 (none) to C12, D2 to D12, T, O (e.g. apoferritin), and I1 to I5 for icosahedral particles (the number selects the orientation convention of the axes; I2 is RELION's plain I). The model is made in C1 and symmetrised afterwards. |
relion3d_classes | auto chooses the classes by the next two parameters; otherwise a list of class numbers, e.g. 1,4,7, counted as the panels of the tiled class averages, row by row from the top left. |
relion3d_best_classes | With auto: how many classes are used — those with the best estimated resolution. |
relion3d_min_fraction | With auto: a class must hold at least this fraction of the particles (0.05 = 5 %) to be considered. Small classes often collect junk with a deceptively good resolution. |
relion3d_iter | Mini-batches of the VDAM refinement (--iter), 200 by default. |
relion3d_tau2_fudge | Regularisation parameter T (--tau2_fudge), 4 by default for initial models. |
relion_ptcl_diameter | Mask diameter in Å, as in the 2D step: negative takes 1.2 × spa_diameter, else 0.95 × the smallest particle box; it must fit into the box. |
relion_ctf, relion_pool, relion_preread, relion_use_scratch_dir, relion_gpu, relion_gpu_numbers, relion_free_gpu_memory | As in the 2D step. Pre-reading takes precedence over the scratch directory. |
relion_nthreads | Threads (--j). VDAM does not run under MPI, so there is no MPI setting here. |
relion3d_extra | Further options passed to relion_refine as typed. |
Algorithm
- Symmetry check. The symmetry is read in capitals; anything RELION does not know stops the script.
- Run directory. Run n of a series (1 for a single run) writes into
<dataset_dir>/InitialModel/run_00n/; run 1 moves an existingInitialModel/toInitialModel.old. Nothing is moved before the 2D classes have been found and the class choice has been checked. - The 2D classes. From the
model.starof the last completed iteration of the newest 2D run, the table of classes with their particle fraction and estimated resolution is read. Withauto, the classes holding at leastrelion3d_min_fractionof the particles are sorted by resolution (best first, larger class first on a tie) and the firstrelion3d_best_classesare taken; if none is large enough the script stops and says so. A given list is checked against the number of classes. The table, with a used column, goes toselected_classes.txtand into the log. - Their particles. The
data.starof the same iteration is filtered to the rows of the chosen classes (by their_rlnClassNumber) intoparticles_selected.star; the number of particles is reported. Both files are listed as results at once. - Mask diameter as described above, against the smallest box of the optics groups.
- Ab initio refinement.
relion_refine --grad --denovo_3dref --K 1 --sym C1with--flatten_solvent --zero_mask --dont_combine_weights_via_disc --pad 1 --oversampling 1 --healpix_order 1 --offset_range 6 --offset_step 2 --auto_sampling, the iterations, T, mask, pool and threads from the parameters — the settings of the RELION GUI's 3D initial model job. The command is printed; RELION's output goes torun_output.txt. VDAM writes its model every ten mini-batches, and the progress bar follows these. - Symmetry.
relion_align_symmetry --sym <symmetry> --apply_sym --select_largest_classaligns the final C1 model to the symmetry axes and imposes the symmetry, givinginitial_model.mrc. With C1 this is a plain copy of the model.
Results
File (in run_00n/) | What it is |
|---|---|
selected_classes.txt | Every 2D class with its particle fraction, estimated resolution, and whether it was used. |
particles_selected.star | The particles of the chosen classes. |
run_itNNN_class001.mrc | The C1 model after the last mini-batch. |
initial_model.mrc | The symmetrised initial model. Marked important: select it to see it as a surface in the volume viewer. |
run_output.txt, align_symmetry_output.txt | RELION's own output of the two programs. |