Frame File Options Dialog

This dialog has two sections.  The upper section, which appears only for K2 cameras, presents choices about the files produced when the SerialEM plugin to DigitalMicrograph saves subframes for a Dose Fractionation exposure.  The lower section, which appears for K2, Falcon, and Direct Electron cameras, allows you to control the name of these files.  For K2 and Falcon, you can also put subsets of the files into different folders automatically.  These are global settings that apply to all camera parameter sets in which frames are saved.


K2 Camera Options

File type

The choices here are files in MRC format, TIFF files with LZW compression, and TIFF files with ZIP compression.  Both compressions are loss-less and can be read by programs in IMOD that read TIFF files.  LZW is more effective, and much faster, than ZIP compression for unnormalized images.  ZIP compresses normalized images more, but may still be considerably slower. As of SerialEM 3.6.0, compression is parallelized and should be much faster than previously, so ZIP compression may now take a reasonable amount of time. If you are saving normalized or linear mode images, you should assess both the compression factor and the acquisition time with the typical images for a project when deciding which form to use on a routine basis.  The best way to assess acquisition time is to turn on Debug Mode in the Camera menu.  With this on, the SerialEM log will show the total elapsed time for acquiring each image.  Also, when frame-saving is complete, the Results window in DM will show a line reporting the time required to process and save all of the frames.  Compression occurs as part of saving, so the saving time is the one that will change with these different options.

Use extension .mrcs

When MRC output format is selected, this optin can be used to make the names of the frame stacks end in '.mrcs' instead of '.mrc'.  Some other software requires the '.mrcs' extension to process frame stacks.

Save one frame per file

Select this option to have each saved subframe written as a separate file instead of having all subframes for an acquisition written to one image stack.

Save unnormalized frames even if Gain Normalized is selected

Select this option to have frames saved without gain normalization even when you have selected gain-normalized processing in the camera setup dialog.  With this set, you can leave the processing for Record images as gain-normalized as you turn the saving of frames on and off.  You will always get normalized images in SerialEM, and the frames will always be unprocessed.

Save normalized data as 16-bit with 100 times scaling of sum

Select this option to have gain-normalized Dose Fractionation frames taken in counting or super-resolution mode saved with 100 times the scaling that is usually applied to a summed image returned to SerialEM.  This extra scaling will eliminate the very small loss in camera efficiency (estimated to be only 0.05%) that occurs when the mean counts are very low.  For counting mode, be aware that counts above about ~16 electrons will be truncated with this extra scaling, for typical K2 camera linear gains.  Such counts are almost certainly hot pixels unless the mean of the image is over 2-3 electrons/pixel, but this extra scaling has no benefit at that exposure level anyway.  For super-resolution mode, there is no truncation, but be aware that the files will be twice the size since the larger counts are stored in 2-byte integers instead of bytes.  This option was added before simulations revealed that the efficiency loss from the regular conversion of scaled normalized values to integers was so small (see 'Signal loss from saving normalized frames as integers' in Direct Electron Detectors, Especially the Gatan K2).

Pack unnormalized data as 4-bit (Super-Res) or 4/8-bit (Counting)

This option determines whether Dose Fractionation frames taken without software gain normalization on the K2 camera are saved in the form in which they are received by the plugin to DigitalMicrograph (16-bit integer for counting mode and byte for super-resolution mode) or in a packed form.  When this option is selected and not the one described next, counting mode images are truncated into bytes (maximum 255), and super-resolution mode images are stored with pairs of 4-bit integers (maximum 15) in each byte.  (The left pixel in a pair is in the low 4 bits and the right pixel is in the high 4 bits of a packed byte.) The data will be raw counts, rather than the scaled values that are saved otherwise (see Direct Electron Detectors, Especially the Gatan K2.)  Raw super-resolution images are intrinsically only 4-bit, so there will be no truncation when saving them as 4-bit.  Packed 4-bit data can be unpacked with the 'unpack' command to the 'clip' program in IMOD (version 4.6.26 or higher); also, in IMOD 4.8.41 or higher, all programs can read these 4-bit data directly.  Note that when writing compressed TIFF files, the packing of data is mostly redundant to the compression and may save little additional space, but it should be faster with packed 4-bit data because fewer bytes need to be compressed.

Pack unnormalized Counting mode data as 4-bit, not 8-bit

This option allows counting mode data taken without gain normalization to be further truncated at 15 and packed into 4-bit integers, instead of into bytes.  This option is enabled and relevant only when the first packing option is selected.  If the mean of a frame is only a few electrons per pixel, then counts above 15 are probably spurious and can be safely truncated.  Otherwise, this option is not appropriate, so be sure that the mean of your frames is low enough before using it for data collection.

Use non-standard mode 101 for 4-bit MRC files

With this option on, MRC files with 4-bit data will be marked as mode 101 instead of mode 0, and the X dimension will be the number of pixels in X instead of half of that.  This is a new, non-standard mode supported by some software from UCSF and by IMOD as of version 4.8.41.  Be sure that you will be using software that can read these files before saving data in this mode.

Save frames without rotation/flip to standard orientation

This options controls whether the plugin saves frames in the raw orientation as read from the camera rather than rotating and flipping them, if necessary, into the standard orientation at which images are viewed in SerialEM.  Image flipping alone does not take significant time, but rotation does: 0.05 seconds for counting mode frames and 0.2 seconds for super-resolution frames.  If you do not care about preserving orientation in the saved frames, you can select this option to reduce frame processing time.  However, handedness will be changed if a flipping operation is being skipped.  This option is enabled only if the current camera has a nonzero RotationAndFlip property.

If you are saving non-gain-normalized frames from GMS 2.3.1 or higher, the defect list written stored with the frames will be adjusted for the change in orientation.  These defect lists always have a RotationFlip entry showing the orientation to which they apply, and the title in the image file shows the operation applied to the frames after 'r/f', which will be 0 with this option on.


Options for Controlling Folder and File Names

By default, frames from one exposure are stacked into a file that is named with the date and time and placed in the directory specified when the Set Folder button is pressed in the Camera Setup dialog.  This section of the dialog allows you to control the names given to these files by selecting one or more components for the names.  In addition, for the K2 and Falcon cameras, you can select several of these components to use for naming of folders that are created under the specified main directory to hold subsets of the files.  For the K2, if you select to save one frame per file in the first section of this dialog, then all the statements here about the name of the "file" refer to the name of the directory created to hold the single-frame images.

Two common uses of these capabilities would be:

  1. Tilt series acquisition: Select the file name of the current file as a component of the folder name, and frames for each series will be stored in a separate folder.
  2. Image acquisition for single-particle reconstruction: Select the label of the Navigator item as a component of the file name, and you will be able to link the frames with a specific location in your map.  If you are storing summed images from SerialEM and have the Navigator open a new file periodically (e.g., for each grid square), you could also select the file name as a folder component and have frames stored in a separate folder for each summed image file.

Base name

The base name can be any text that you want (as long as it contains characters that are legal in filenames).  It can be used in the name of a folder if you check the box in the left ('Folder') column, and/or in the name of the files if you check the box in the right ('File') column.  If the text box is empty, nothing is added.

File name of current open file (minus extension)

The root name of the current open file in SerialEM (i.e., name without extension) can be used in the name of a folder and/or in the name of the files, depending on which box you check.  If there is no open file, nothing is added.

Label of Navigator item

If the Navigator is open, the label of the current item or of the item being acquired can be included in the name of the folder and/or the name of the files, depending on which box you check.  If the Navigator is not open, nothing is added.  If Only when Acquiring at Points is checked, the label will be added only when the Acquire at Points procedure is running.

Sequential number

If this box is checked, a number will be added to the file name, starting with the number set in the text box and incremented for each successive file saved to the same location.  Use the spin button on the right to set whether the numbers should have 3, 4, or 5 digits.  Numbers will have leading zeros so that all numbers have at least the selected number of digits.  The number will be reset to the starting number when the folder name changes or when the parts of the filename (if any) in front of the number change.  It will also be reset if you change the starting number to be higher than the last used number. The last used number and other information are saved in the settings file, so if you exit from SerialEM and restart with the same settings file, it will be able to resume saving with the next number in sequence. The hour-minute-second component of the name is optional if a sequential number is included.  However, it is possible to generate duplicate names when using sequential numbers, so it is recommended that the time component be retained. 

Tilt angle

If this box is checked, the tilt angle will be added to the file name.

Month and day

If this box is checked, the date will be added to the file name.  This box and the next are not shown for Direct Electron cameras because the filename before the suffix being controlled here already has a date and a unique number.

Hour, minute, second

If this box is checked, a final time stamp will be added to the file name.  Unchecking this box will turn on the sequential number selection.