Documented functions with links to source¶
Program to determine CTF parameters from a set of micrographs using CTFFIND and CTFTILT (Mindell and Grigorieff JSB, 2003)
-
class
micctfdetermine.
MicCtfDeterminePar
[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_amplitude_contrast
set_astigmatism_restraint
set_ctftilt_option
set_ctftilt_search_range
set_defocus_range
set_defocus_search_step_size
set_electron_voltage
set_resolution_range
set_spherical_aberration
set_spring_db_continue_option
set_tilt_range
-
class
micctfdetermine.
MicCtfDeterminePreparation
(parset=None)[source]¶ Class that holds all functions required for splitting micrographs
__init__ Function to read in the entered parameter dictionary, load micrograph and initialize unique temporary directory
Methods
convert_to_mrc_if_required
-
class
micctfdetermine.
MicCtfDetermineFind
(parset=None)[source]¶ Methods
determine_closest_power_of_two
(tilesize)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
analyze_ctffind_report_file
convert_to_mrc_if_required
enter_ctffind_values_in_database
launch_ctffind
make_ctffind_parameters_named_tuple
make_new_micrograph_entry_with_ctffind_parameters
query_micrograph_name_in_find_database
query_micrograph_name_in_mic_database
raise_error_message_if_values_not_found
run_ctffind_for_first_defocus_estimation
start_program_and_capture_output
update_determined_ctffind_values_for_micrograph
-
start_program_and_capture_output
(diagnostic_power_montage, ctffind_or_ctftilt_exe, script, ctffind_or_ctftilt_report_file)[source]¶
-
determine_closest_power_of_two
(tilesize)[source]¶ >>> from spring.micprgs.micctfdetermine import MicCtfDetermine >>> MicCtfDetermine().determine_closest_power_of_two(100) 128 >>> MicCtfDetermine().determine_closest_power_of_two(78) 64
-
extract_values_from_ctffind3_style_output
(ctffind_lines, report_file)[source]¶ >>> from spring.micprgs.micctfdetermine import MicCtfDetermine >>> output = ['DFMID1\tDFMID2\tANGAST\tCC', '18861.47\t19339.21\t38.34\t0.1167\tFinal Values'] >>> MicCtfDetermine().extract_values_from_ctffind3_style_output(output, 'report.log') (18861.47, 19339.21, 38.34, 0.1167) >>> MicCtfDetermine().extract_values_from_ctffind3_style_output([output[0]], 'report.log') Traceback (most recent call last): ... ValueError: CTFFIND did not finish successfully. Please check report.log logfile for details.
-
extract_values_from_ctffind4_style_output
(ctffind_lines, report_file)[source]¶ >>> from spring.micprgs.micctfdetermine import MicCtfDetermine >>> output = ['Estimated defocus values : 19105.03 , 18591.51 Angstroms', 'Estimated azimuth of astigmatism: -70.73 degrees','Score : .21161', 'Thon rings with good fit up to : 4.5 Angstroms'] >>> MicCtfDetermine().extract_values_from_ctffind4_style_output(output, 'report.log') (19105.03, 18591.51, -70.73, 0.21161, 4.5) >>> MicCtfDetermine().extract_values_from_ctffind4_style_output([output[0]], 'report.log') Traceback (most recent call last): ... ValueError: CTFFIND did not finish successfully. Please check report.log logfile for details.
-
update_determined_ctffind_values_for_micrograph
(current_mic, ctffind_parameters, pixelsize)[source]¶
-
make_new_micrograph_entry_with_ctffind_parameters
(current_mic, micrograph_file, ori_pixelsize, ctf_parameters, ctffind_parameters)[source]¶
-
-
class
micctfdetermine.
MicCtfDetermineTilt
(parset=None)[source]¶ Methods
determine_closest_power_of_two
(tilesize)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind3_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind4_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
analyze_ctffind_report_file
analyze_ctftilt_report_file
convert_to_mrc_if_required
enter_additional_ctftilt_parameters
enter_ctffind_values_in_database
enter_ctftilt_values_in_database
extract_values_from_ctftilt_style_output
launch_ctffind
launch_ctftilt
make_ctffind_parameters_named_tuple
make_ctftilt_parameters_named_tuple
make_new_micrograph_entry_with_ctffind_parameters
query_micrograph_name_in_find_database
query_micrograph_name_in_mic_database
raise_error_message_if_values_not_found
run_ctffind_for_first_defocus_estimation
run_ctftilt_to_refine_defocus_parameters
start_program_and_capture_output
update_determined_ctffind_values_for_micrograph
update_determined_ctftilt_values_for_micrograph
-
class
micctfdetermine.
MicCtfDetermineDiagnosticPlot
(parset=None)[source]¶ Methods
determine_closest_power_of_two
(tilesize)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind3_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind4_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
add_final_values_from_ctffind_or_ctftilt_report_files
add_montage_images
analyze_ctffind_report_file
analyze_ctftilt_report_file
assemble_diagnostic_plot
convert_to_mrc_if_required
enter_additional_ctftilt_parameters
enter_ctffind_values_in_database
enter_ctftilt_values_in_database
extract_values_from_ctftilt_style_output
launch_ctffind
launch_ctftilt
make_ctffind_parameters_named_tuple
make_ctftilt_parameters_named_tuple
make_new_micrograph_entry_with_ctffind_parameters
query_micrograph_name_in_find_database
query_micrograph_name_in_mic_database
raise_error_message_if_values_not_found
run_ctffind_for_first_defocus_estimation
run_ctftilt_to_refine_defocus_parameters
start_program_and_capture_output
update_determined_ctffind_values_for_micrograph
update_determined_ctftilt_values_for_micrograph
-
class
micctfdetermine.
MicCtfDetermine
(parset=None)[source]¶ Methods
determine_closest_power_of_two
(tilesize)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind3_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind4_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
add_final_values_from_ctffind_or_ctftilt_report_files
add_montage_images
analyze_ctffind_report_file
analyze_ctftilt_report_file
assemble_diagnostic_plot
convert_to_mrc_if_required
determine_ctf
enter_additional_ctftilt_parameters
enter_ctffind_and_ctftilt_values_in_database
enter_ctffind_values_in_database
enter_ctftilt_values_in_database
extract_values_from_ctftilt_style_output
filter_previously_determined_micrographs
launch_ctffind
launch_ctftilt
make_ctf_parameter_named_tuple
make_ctffind_parameters_named_tuple
make_ctftilt_parameters_named_tuple
make_empty_ctftilt_parameters
make_new_micrograph_entry_with_ctffind_parameters
prepare_micrograph_for_ctffind
query_micrograph_name_in_find_database
query_micrograph_name_in_mic_database
raise_error_message_if_values_not_found
run_ctffind_and_ctftilt_for_each_micrograph
run_ctffind_and_ctftilt_for_given_micrographs
run_ctffind_for_first_defocus_estimation
run_ctftilt_to_refine_defocus_parameters
setup_database_and_ctfinfo
start_program_and_capture_output
update_determined_ctffind_values_for_micrograph
update_determined_ctftilt_values_for_micrograph
-
run_ctffind_and_ctftilt_for_each_micrograph
(micrograph_files, outfiles, each_micrograph_index, each_micrograph_file)[source]¶
-
-
class
micctfdetermine_mpi.
MicCtfDetermineMpi
(parset=None)[source]¶ Methods
determine_closest_power_of_two
(tilesize)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind3_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
extract_values_from_ctffind4_style_output
(…)>>> from spring.micprgs.micctfdetermine import MicCtfDetermine
>>> from spring.micprgs.micctfdetermine_mpi import MicCtfDetermineMpi
add_final_values_from_ctffind_or_ctftilt_report_files
add_montage_images
analyze_ctffind_report_file
analyze_ctftilt_report_file
assemble_diagnostic_plot
convert_to_mrc_if_required
determine_ctf
end_scan_mpi_programs
enter_additional_ctftilt_parameters
enter_ctffind_and_ctftilt_values_in_database
enter_ctffind_values_in_database
enter_ctftilt_values_in_database
extract_values_from_ctftilt_style_output
filter_previously_determined_micrographs
gather_ctf_and_enter_in_database
insure_that_every_node_has_the_same_number_of_micrographs
launch_ctffind
launch_ctftilt
make_ctf_parameter_named_tuple
make_ctffind_parameters_named_tuple
make_ctftilt_parameters_named_tuple
make_empty_ctftilt_parameters
make_new_micrograph_entry_with_ctffind_parameters
prepare_micrograph_for_ctffind
query_micrograph_name_in_find_database
query_micrograph_name_in_mic_database
raise_error_message_if_values_not_found
run_ctffind_and_ctftilt_for_each_micrograph
run_ctffind_and_ctftilt_for_given_micrographs
run_ctffind_for_first_defocus_estimation
run_ctftilt_to_refine_defocus_parameters
setup_database_and_ctfinfo
start_program_and_capture_output
startup_scan_mpi_programs
update_determined_ctffind_values_for_micrograph
update_determined_ctftilt_values_for_micrograph
-
fill_micrographs_list_with_dummy
(micrograph_files, max_micrograph_count)[source]¶ >>> from spring.micprgs.micctfdetermine_mpi import MicCtfDetermineMpi >>> MicCtfDetermineMpi().fill_micrographs_list_with_dummy(['dim', 'dum'], 4) ['dim', 'dum', 'place_holder', 'place_holder'] >>> MicCtfDetermineMpi().fill_micrographs_list_with_dummy(['dim', 'dum'], 2) ['dim', 'dum']
-