Determining filament widths
The variation in the width of a filament with a long pitch may aid in establishing the cross-overs more accurately. To improve the contrast, the filament image can be smoothed with a moving average function, and by averaging the helical repeats. The requirements are that the filament lies parallel to the y axis and in the center of the image.
Cropped example of a cryoEM image of a filament.
The filament image can be preprocessed to set the image parameters, invert the contrast and smooth along the y axis:
The filament with at each y position is then calculated using a moving average window and limits on the expected width of the filament:
Periodically averaged filament to determine the widths along the helical axis.
Plot of filament widths along the helical axis.