MASSNORM

Overview

MASSNORM is the first step in EM reconstruction after the alignment stage. It calculates the relationship between observed electron counts and the specimen's mass density and corrects for electron dose fluctuations during data collection.

The algorithm is:

  1. Find the reference average value A(i) on each projection (these average values would fall along an exponential curve if there was a constant level of illumination for all projections). There are two approaches to calculating the reference average value: The areas chosen to calculate the reference average value should correspond to each other: the projections need to be aligned. This can be done by supplying the alignment parameters and tilt axis shifts determined by BALIGN or, when these are not available, you can choose corresponding strips along the estimated 3-D tilt axis (the center of this axis can be the center of features as measured by a cross-correlation of different projections; the shifts here should be the same for all projections unlike the shifts of the 3D tilt axis).
  2. Fit an exponential cosine curve to the A(i). The fit can be written to file (see the OplotFile parameter), and the contents of that file can be viewed with 2d_plot. The reference values, A(i), and the fit are also saved in the output parameter file.

Here's an example command file for MASSNORM:

     (time /mama/weiping/prog/massnorm \
      /mama/weiping/test/cent5r.stk \
      -iprmfile=/mama/weiping/test/cent5r.bprm \
      -oprmfile=/mama/weiping/test/cent5r.bprmMn \
      -bckgfit=1 -dimxy=480:480 -trange=-60:60 \
      -shxyz=0:0:0 -iref=-1 -ppmin=100 -toffset=0 \
      -hrange=.7:1 -hpeak=.9 -nhist=400 -oplotfile=none ) \
      > /mama/weiping/emrecon.log

Parameters

IdatFile | NX:NY:NV | IprmFile | OprmFile | bckgFit | dimxy | tRange | shXYZ | iRef | ppMin | tOffset | hRange | hPeak | nHist | OplotFile

Related Priism Topics

Priism | Reconstruction | APPL_PRM | EWBP | TAPIR | Alignment


IdatFile

This is the name of the file containing the raw projection data stack from the CCD (i.e. measured in terms of electron counts; data stacks with the contrast inverted can not be handled).

Return to the list of parameters


NX:NY:NV

The first two values are, respectively, the x and y dimension of the projections. The third value is the number of projections in the data stack.

Return to the list of parameters


IprmFile

This is the name of the input alignment parameter file; the file can be generated with BALIGN.

Return to the list of parameters


OprmFile

This is the name of the output file in which to store the alignment parameters. This file can be used as input to APPL_PRM and includes the information for converting electron counts to a mass density.

To specify the output parameter file from the command line use -oprmfile=filename. none can be used for the file name to signal that no output parameter file should be generated; this is the default.

Return to the list of parameters


bckgFit

Controls how the reference value for each projection is calculated. For the Fit: average option, the reference value is e^(average(log(projection i))). Use this option when there is no clear background in the projections. For the Fit: background option, the reference value is the data value where the peak in the histogram of the background is located. Use this option whenever there is a large area of background on all projections.

On the command line, use -bckgfit=1 to use the estimate from the histogram of the background and use -bckgfit=0 for the other method. If neither is supplied, the default is to use the histogram of the background.

Return to the list of parameters


dimxy

Sets the x and y dimensions for the area used to estimate the reference average values. These dimensions are for a projection with a tilt of zero degrees; the area chosen on a projection with tilt t is ny * cos(t) by nx where nx and ny are the dimensions at a tilt of zero degrees.

On the command line, specify these dimensions with -dimxy=nx:ny. If no dimensions are specified, the dimensions used are the x and y dimensions of the input projections.

Return to the list of parameters


tRange

Sets the range of tilt angles included when fitting the reference average values. The first value is the minimum angle, in degrees, to use; the second is the maximum value.

On the command line specify the range of tilts with -trange=min_angle:max_angle. If the range is not specified, -60 degrees is used for the minimum tilt and 60 degrees is used for the maximum tilt.

Return to the list of parameters


shXYZ

These three values (they are in units of pixels) shift the imaginary 3D tilt axis of the projection data from its default location; this can be used to choose a different area for computing reference values. The default orientation of the 3D tilt axis has it pass through the point whose x and y coordinates are the center of the reference projection (see the iRef parameter) and whose z coordinate is the z coordinate of the center of mass of the reference markers used for alignment.

When using the Fit: background option for the bckgFit parameter, it is recommended to turn the toggle off next to the shift field (this forces shift values of zero to be used) since you want a large area of background to estimate the reference values. When the Fit: average option is used, you should turn the toggle on next to the shift field so the reference values are estimated from the same region that will be reconstructed.

Use -shxyz=x_shift:y_shift:z_shift to set the shifts on the command line. If the shifts are not specified, a value of zero pixels for each shift is assumed.

Return to the list of parameters


iRef

For calculating the effect of the x and y shifts (see the shXYZ input parameter, the center of the projection whose index is given by iRef is used.

The reference projection can be set on the command line with -iref=index. If it is not specified or index is less than zero or greater than or equal to the number of projections in the input file, the projection whose tilt angle is closest to zero is used.

Return to the list of parameters


ppMin

Only pixels with values larger than this parameter are used when computing projection reference values. This is done to avoid possible artifacts in the projection data.

To specify the threshold on the command line use, -ppmin=threshold. The value used for the threshold if none is supplied is 100.

Return to the list of parameters


tOffset

This is an offset in degrees which will be added to the tilt angles output in OprmFile. This correction is only needed when there is a tilt offset for some high-tilt specimen holders, and it's rare to use something other than zero for the offset.

To specify the offset on the command line, use -toffset=offset. When it is not specified on the command line, a value of zero degrees is assumed.

Return to the list of parameters


hRange

These two values set what pixels are assumed to be background. If Imin is the minimum pixel value for pixels with values greater than ppMin and Imax is the maximum value for the same set of pixels, the pixels which are treated as background are those values are greater than or equal to min*(Imax - Imin) + Imin. and less than max*(Imax - Imin) + Imin where min is the first value in the hRange field and max is the second.

The range of pixels values for pixels assumed to be background is specified on the command line with -hrange=min:max. When not supplied, min is taken to be 0.7 and max is 1.0.

Return to the list of parameters


hPeak

To estimate the center of the peak in the histogram of the background (this in only done when the Fit: background option is used for bckgFit), a weighted average about the peak is taken. Bins adjacent to the one with the peak are included until the number of pixels in a bin is less than or equal to the value in this field times the number of points in the bin with the peak.

To specify this parameter on the command line, use -hpeak=fraction. When it is not supplied, a value of 0.9 is used for fraction.

Return to the list of parameters


nHist

This is the number of bins used to calculate the histogram of the background when the Fit: background option is used for bckgFit.

The syntax for specifying this parameter on the command line is -nhist=n. When it is not specified on the command line, 400 bins are used.

Return to the list of parameters


OplotFile

This is the name of the output file to generate with the projection reference values and the corresponding fitted values from the absorption model. You can view line plots of this data by loading the file into 2d_plot. This file is not used by any other part of the EM reconstruction package.

To specify the name of the plot file on the command line, use -oplotfile=filename. If -oplotfile is not supplied or filename is none, then no output plot file is generated.

Return to the list of parameters