Documented functions with links to source¶
Program to examine micrograph quality by computing a localized power spectrum using EMAN2’s e2scaneval.py and an averaged power spectrum from overlapping tiles using SPARX’ sx_welch_pw2.py
-
class
micexam.
MicrographExamPar
[source]¶ Class to initiate default dictionary with input parameters including help and range values and status dictionary
Methods
define_parameters_and_their_properties
define_program_states
set_complete_tile_array_option
-
class
micexam.
MicrographExamEval
(parset=None)[source]¶ Class that holds functions for examining micrograph quality
__init__ Function to read in the entered parameter dictionary and load micrograph
Usage: MicrographExam(pardict)
Input: pardict = OrderedDict of program parameters
Methods
e2scaneval
(tilesize, fullarropt, pixelsize)Function to use EMAN2’s e2scaneval.py
adjust_columns_and_rows_depending_on_array_option
bin_micrograph
insert_tiles_onto_micrograph
prepare_parameters_for_tiling
-
bin_micrograph
(each_micrograph_file, binoption, binfactor, ori_pixelsize, tile_size_A=None, tempdir=None)[source]¶
-
class
micexam.
MicrographExamExtract
(parset=None)[source]¶ Methods
compute_power_spectra
(mic, pixelsize, …)Function to compute rotational power spectrum
e2scaneval
(tilesize, fullarropt, pixelsize)Function to use EMAN2’s e2scaneval.py
enhance_ps
(powerspec, tilesize)Function that enhances power spectrum by compensating against decay of amplitudes
reduce_twod2oned
(rotpowspec)Function to reduce 2D rotational power spectrum to 1D image
adjust_columns_and_rows_depending_on_array_option
bin_micrograph
insert_tiles_onto_micrograph
prepare_parameters_for_tiling
-
enhance_ps
(powerspec, tilesize)[source]¶ Function that enhances power spectrum by compensating against decay of amplitudes
Usage: output = enhance_ps(powerspec)
Input: 2D powerspec
Output: 2D powerspec compensated for decay of amplitudes
-
class
micexam.
MicrographExam
(parset=None)[source]¶ Methods
compute_power_spectra
(mic, pixelsize, …)Function to compute rotational power spectrum
e2scaneval
(tilesize, fullarropt, pixelsize)Function to use EMAN2’s e2scaneval.py
enhance_ps
(powerspec, tilesize)Function that enhances power spectrum by compensating against decay of amplitudes
reduce_twod2oned
(rotpowspec)Function to reduce 2D rotational power spectrum to 1D image
visualize_power
(evalpng, pw2sum, …)Function to visualize power analysis of micrograph
add_entire_micrograph_with_power_tile_overlay
add_one_dimensional_power_spectra
add_rotational_avg_of_above
add_sum_of_overlapping_powerspectra
adjust_columns_and_rows_depending_on_array_option
bin_micrograph
exam_scans
examine_scans_computing_total_and_local_powerspectra
insert_tiles_onto_micrograph
prepare_parameters_for_tiling
-
visualize_power
(evalpng, pw2sum, pw2sumrotavg, pw2oned, pw2lineenh, pixelsize, infile, outfile)[source]¶ Function to visualize power analysis of micrograph
Usage: fig = visualize_power(evalpng, pw2sum, pw2sumrotavg, pw2oned, pw2lineenh)
Input: evalpng = micrograph montage from e2scaneval.py, pw2sum = computed sum of overlapping powerspectra, pw2sumrotavg = rotational average of sum, pw2oned = 1D profile of rotational average, pw2lineenh = enhanced 1D profile comensated against amplitude decay
-
class
micexam_mpi.
MicrographExamMpi
(parset=None)[source]¶ Methods
compute_power_spectra
(mic, pixelsize, …)Function to compute rotational power spectrum
e2scaneval
(tilesize, fullarropt, pixelsize)Function to use EMAN2’s e2scaneval.py
enhance_ps
(powerspec, tilesize)Function that enhances power spectrum by compensating against decay of amplitudes
reduce_twod2oned
(rotpowspec)Function to reduce 2D rotational power spectrum to 1D image
visualize_power
(evalpng, pw2sum, …)Function to visualize power analysis of micrograph
add_entire_micrograph_with_power_tile_overlay
add_one_dimensional_power_spectra
add_rotational_avg_of_above
add_sum_of_overlapping_powerspectra
adjust_columns_and_rows_depending_on_array_option
bin_micrograph
end_scan_mpi_programs
exam_scans
examine_scans_computing_total_and_local_powerspectra
insert_tiles_onto_micrograph
prepare_parameters_for_tiling
startup_scan_mpi_programs