4d — RELION 3D Reconstruction

Datasets scripts · 4d User Manual

← 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 Datasets tab while the RELION 3D reconstruction runs

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

Parameters

ParameterRole
dataset_dirThe dataset directory under merge/; the runs go into InitialModel/ below it.
relion3d_symmetryThe 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_classesauto 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_classesWith auto: how many classes are used — those with the best estimated resolution.
relion3d_min_fractionWith 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_iterMini-batches of the VDAM refinement (--iter), 200 by default.
relion3d_tau2_fudgeRegularisation parameter T (--tau2_fudge), 4 by default for initial models.
relion_ptcl_diameterMask 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_memoryAs in the 2D step. Pre-reading takes precedence over the scratch directory.
relion_nthreadsThreads (--j). VDAM does not run under MPI, so there is no MPI setting here.
relion3d_extraFurther options passed to relion_refine as typed.

Algorithm

  1. Symmetry check. The symmetry is read in capitals; anything RELION does not know stops the script.
  2. Run directory. Run n of a series (1 for a single run) writes into <dataset_dir>/InitialModel/run_00n/; run 1 moves an existing InitialModel/ to InitialModel.old. Nothing is moved before the 2D classes have been found and the class choice has been checked.
  3. The 2D classes. From the model.star of the last completed iteration of the newest 2D run, the table of classes with their particle fraction and estimated resolution is read. With auto, the classes holding at least relion3d_min_fraction of the particles are sorted by resolution (best first, larger class first on a tie) and the first relion3d_best_classes are 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 to selected_classes.txt and into the log.
  4. Their particles. The data.star of the same iteration is filtered to the rows of the chosen classes (by their _rlnClassNumber) into particles_selected.star; the number of particles is reported. Both files are listed as results at once.
  5. Mask diameter as described above, against the smallest box of the optics groups.
  6. Ab initio refinement. relion_refine --grad --denovo_3dref --K 1 --sym C1 with --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 to run_output.txt. VDAM writes its model every ten mini-batches, and the progress bar follows these.
  7. Symmetry. relion_align_symmetry --sym <symmetry> --apply_sym --select_largest_class aligns the final C1 model to the symmetry axes and imposes the symmetry, giving initial_model.mrc. With C1 this is a plain copy of the model.

Results

File (in run_00n/)What it is
selected_classes.txtEvery 2D class with its particle fraction, estimated resolution, and whether it was used.
particles_selected.starThe particles of the chosen classes.
run_itNNN_class001.mrcThe C1 model after the last mini-batch.
initial_model.mrcThe symmetrised initial model. Marked important: select it to see it as a surface in the volume viewer.
run_output.txt, align_symmetry_output.txtRELION's own output of the two programs.
Run the step again after the 2D classification has gone on for a while — it always takes the newest run and its last iteration — or give it a class list once you know which averages show the particle from different directions.