4d — Export Tomo Tiltseries

Export scripts · 4d User Manual

← Back to the Export tab · Export, Stats & Notifications

Export Tomo Tiltseries experimental

This script (export/DEVELOPMENT/export_tomo_tiltseries.script, a C-shell script) assembles the drift-corrected images of an electron-tomography session into one tilt-series stack per specimen, ordered by tilt angle, with a .tlt file of the angles and a STAR file of the metadata of every tilt — the input IMOD and other tomography packages expect.

Status. One of the four Development exports inherited from Focus, not shown in 4D-STEM or Fibril picking projects and awaiting porting. Its parameter export_tomo_basedir is not defined in the current parameter files, so the Parameters panel shows nothing to set; it reads the per-image 2dx_image.cfg files of a Focus project; and it needs IMOD (addtostack, alterheader) through the dir_imod setting of the Preferences. It does not run as it stands.

Parameters

ParameterRole
export_tomo_basedirThe directory the stacks are written into, created next to merge/ in the project directory.

Algorithm

  1. Takes the first path component of every image directory (<specimen>/<image>) as the specimen; the images of one specimen are one tilt series.
  2. For each specimen: reads the tilt angle (TLTANG) of every image and sorts the images by it.
  3. Appends each image's movie_aligned.mrc to <specimen>_stack.mrcs with IMOD's addtostack (the first one is copied), writes its tilt angle to <specimen>_stack.tlt, and one row to <specimen>_stack.star: specimen name and number, image number, tilt angle, magnification, defocus U/V/angle, Cs, voltage, and the dose of this frame, the dose before it and the total dose. An image without movie_aligned.mrc is noted in <specimen>_stack_errors.txt and left out of all three files.
  4. Writes the pixel size into the header of the stack with alterheader.
  5. Lists the stack as an important result and the STAR, TLT and error files as results, for every specimen.