This is an old revision of the document!
CTF Estimation: Automated estimation of CTF parameters with error assessment.
Usage in command line
sxcter.py input_image_path output_directory --selection_list=selection_list --wn=CTF_WINDOW_SIZE --apix=PIXEL_SIZE --Cs=CS --voltage=VOLTAGE --ac=AMP_CONTRAST --f_start=FREA_START --f_stop=FREQ_STOP --kboot=KBOOT --overlap_x=OVERLAP_X --overlap_y=OVERLAP_Y --edge_x=EDGE_X --edge_y=EDGE_Y --set_ctf_header --check_consistency --stack_mode --debug_mode
sxcter exists in for both MPI and non-MPI versions. Running the MPI version does not require –MPI flag.
The program can be executed in several different modes:
All Micrographs Mode - Process all micrographs in a directory: Specify a list of input micrographs using a wild card (*), called here input micrographs path pattern. Use the wild card to indicate the place of variable part of the file names (e.g. serial number, time stamp, and etc). Running from the command line requires enclosing the string by single quotes (') or double quotes (“). sxgui.py will automatically adds single quotes to the string. BDB files can not be selected as input micrographs. Then, specify output directory where all outputs should be saved. In this mode, all micrographs matching the path pattern will be processed.
mpirun -np 16 sxcter.py './mic*.hdf' outdir_cter --wn=512 --apix=2.29 --Cs=2.0 --voltage=300 --ac=10.0
Selected Micrographs Mode - Process all micrographs in a selection list file: In addition to input micrographs path pattern and output directry arguments, specify a name of micrograph selection list text file using –selection_list option (e.g. output of sxgui_unblur.py or sxgui_cter.py). The file extension must be ”.txt“. In this mode, only micrographs in the selection list which matches the file name part of the pattern (ignoring the directory paths) will be processed. If a micrograph name in the selection list does not exists in the directory specified by the micrograph path pattern, processing of the micrograph will be skipped.
mpirun -np 16 sxcter.py './mic*.hdf' outdir_cter --selection_list=mic_list.txt --wn=512 --apix=2.29 --Cs=2.0 --voltage=300 --ac=10.0
Single Micrograph Mode - Process a single micrograph: In addition to input micrographs path pattern and output directry arguments, specify a single micrograph name using –selection_list option. In this mode, only the specified single micrograph will be processed. If this micrograph name does not matches the file name part of the pattern (ignoring the directory paths), the process will exit without processing it. If this micrograph name matches the file name part of the pattern but does not exists in the directory which specified by the micrograph path pattern, again the process will exit without processing it. Use single processor for this mode.
sxcter.py './mic*.hdf' outdir_cter --selection_list=mic0.hdf --wn=512 --apix=2.29 --Cs=2.0 --voltage=300 --ac=10.0
Stack Mode - Process a particle stack (Not supported by SPHIRE GUI): Use –stack_mode option, then specify the path of particle stack file (without wild card “*”) and output directory as arguments. This mode ignores –selection_list, –wn –overlap_x, –overlap_y, –edge_x, and –edge_y options. Use single processor for this mode. Not supported by SPHIRE GUI (sxgui.py).
sxcter.py bdb:stack outdir_cter --apix=2.29 --Cs=2.0 --voltage=300 --ac=10.0 --stack_mode
After successful execution, sxcter will create in the output_directory:
partres.txt
.pwrot/*_rotinf.txt
.micthumb/*_thumb.hdf
.
The CTF parameter file, partres.txt
, contains 22 columns with the following information:
Column | Parameter | ||
1 | Image defocus [um] | ||
2 | Microscope spherical aberration [mm] | ||
3 | Microscope voltage [kV] | ||
4 | Pixel size [A] | ||
5 | B-factor [A2] | ||
6 | Amplitude contrast [%] | ||
7 | Astigmatism amplitude [um] | ||
8 | Astigmatism angle [degrees] | ||
9 | Standard deviation of defocus [um] | ||
10 | Standard deviation of amplitude contrast [%] | ||
11 | Standard deviation of astigmatism amplitude [um] | ||
12 | Standard deviation of astigmatism angle [degrees] | ||
13 | Coefficient of variation of defocus | ||
14 | Coefficient of variation of astigmatism amplitude | ||
15 | Frequency at which the signal drops by 50% due to estimated error of defocus alone [1/A] | ||
16 | Frequency at which the signal drops by 50% due to estimated error of defocus and astigmatism [1/A] | ||
17 | Frequency at which the CTF oscillation can no longer be modelled correctly due the pixel size of the image [1/A] | ||
18 | NOT IMPLEMENTED YET! Maximum frequency limit (visual-impression-based)[A] | ||
19 | NOT IMPLEMENTED YET! Reserved spot for other means of maximum frequency limit or error criterion. Possibly originated from external program | ||
20 | Constant amplitude contrast [%], which is provided by user as a input of CTER and does not include estimated Volta phase shift | ||
21 | Volta phase shift [degrees] | ||
22 | Micrograph name |
The rotationally averaged power spectra (rotinf.txt files) will be written to the pwrot directory. These files contain 6 columns with the following information
Column | Parameter | ||
1 | Line number | ||
2 | Spatial frequency [1/A] | ||
3 | Experimental rotational average without considering astigmatism | ||
4 | Fitted rotational average without considering astigmatism | ||
5 | Experimental rotational average including astigmatism | ||
6 | Fitted rotational average including astigmatism |
The format of partres.txt is changed. The old format below is also supported for now but will be removed in near future. In the new format above,
REMOVED:
ADDED:
The old format of the CTF parameter file, partres.txt
, contains 19 columns with the following information:«BR»«BR»
Column | Parameter | ||
1 | Image defocus [um] | ||
2 | Microscope spherical aberration [mm] | ||
3 | Microscope voltage [kV] | ||
4 | Pixel size [A] | ||
5 | B-factor [A2] | ||
6 | Amplitude contrast [%] | ||
7 | Astigmatism amplitude [um] | ||
8 | Astigmatism angle [degrees] | ||
9 | Standard deviation of defocus [um] | ||
10 | Standard deviation of amplitude contrast [%] | ||
11 | Standard deviation of astigmatism amplitude [um] | ||
12 | Standard deviation of astigmatism angle [degrees] | ||
13 | Coefficient of variation of defocus [um] | ||
14 | Coefficient of variation of astigmatism amplitude [um] | ||
15 | Mean difference between the experimental rotational averages calculated with and without considering astigmatism. The subtraction is only performed at frequencies where the CTF model has a local minimum or maximum. | ||
16 | Frequency at which the signal drops by 50% due to estimated error of defocus alone [1/A] | ||
17 | Frequency at which the signal drops by 50% due to estimated error of defocus and astigmatism [1/A] | ||
18 | Frequency at which the CTF oscillation can no longer be modelled correctly due the pixel size of the image [1/A] | ||
19 | Micrograph name |
Pawel A. Penczek and Toshio Moriya
80S ribosome determined using 35,198 projection images collected with a 300 kV Tecnai Polara (FEI) equipped with the K2 Summit DED camera. Resolution of the large subunit is 3.84 Å (using FSC with 0.5 cut-off criterion). 80SK2.mrc.gz ('Warning
': file size is 21MB.)
Category 1:: APPLICATIONS
sparx/bin/sxcter.py
Beta:: Under evaluation and testing. Please let us know if there are any bugs.
There are no known bugs so far.