the container of molecules. The class for all libcootapi functions. More...
#include <molecules-container.hh>
Classes | |
| class | auto_read_mtz_info_t |
| class for the information about columns extracted from auto-reading the given mtz file More... | |
| class | fit_ligand_info_t |
| class | ltj_stats_t |
| class | r_factor_stats |
Public Member Functions | |
| molecules_container_t (bool verbose=true) | |
| the one and only constructor | |
Generic Utils | |
| std::string | get_molecule_name (int imol) const |
| void | set_molecule_name (int imol, const std::string &new_name) |
| void | display_molecule_names_table () const |
| Debugging function: display the table of molecule and names. | |
| bool | is_valid_model_molecule (int imol) const |
| bool | is_valid_map_molecule (int imol_map) const |
| bool | is_a_difference_map (int imol_map) const |
| int | new_molecule (const std::string &name) |
| int | close_molecule (int imol) |
| void | end_delete_closed_molecules () |
| void | pop_back () |
| Delete the most recent/last molecule in the molecule vector. | |
| void | clear () |
| Delete all molecules. | |
| std::vector< double > | get_eigenvalues (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) |
| coot::simple_mesh_t | test_origin_cube () const |
| void | fill_rotamer_probability_tables () |
| Fill the rotamer probability tables (currently not ARG and LYS) | |
| void | accept_rotamer_probability_tables_compressed_data (const std::string &data_stream) |
Backup and Saving | |
| bool | contains_unsaved_models () const |
| void | save_unsaved_model_changes () |
| Save the unsaved model - this function has not yet been written! | |
Geometry and Dictionaries | |
| void | geometry_init_standard () |
| Read the standard list of residues. | |
| std::vector< std::string > | non_standard_residue_types_in_model (int imol) const |
| std::string | get_rdkit_mol_pickle_base64 (const std::string &residue_name, int imol_enc) |
Coordinates Modelling | |
| int | auto_fit_rotamer (int imol, const std::string &chain_id, int res_no, const std::string &ins_code, const std::string &alt_conf, int imol_map) |
| coot::molecule_t::rotamer_change_info_t | change_to_next_rotamer (int imol, const std::string &residue_cid, const std::string &alt_conf) |
| coot::molecule_t::rotamer_change_info_t | change_to_previous_rotamer (int imol, const std::string &residue_cid, const std::string &alt_conf) |
| coot::molecule_t::rotamer_change_info_t | change_to_first_rotamer (int imol, const std::string &residue_cid, const std::string &alt_conf) |
| int | set_residue_to_rotamer_number (int imol, const std::string &residue_cid, const std::string &alt_conf, int rotamer_number) |
| std::pair< int, unsigned int > | delete_using_cid (int imol, const std::string &cid, const std::string &scope) |
| std::pair< int, unsigned int > | delete_atom (int imol, const std::string &chain_id, int res_no, const std::string &ins_code, const std::string &atom_name, const std::string &alt_conf) |
| std::pair< int, unsigned int > | delete_atom_using_cid (int imol, const std::string &cid) |
| std::pair< int, unsigned int > | delete_residue (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) |
| std::pair< int, unsigned int > | delete_residue_using_cid (int imol, const std::string &cid) |
| std::pair< int, unsigned int > | delete_residue_atoms_with_alt_conf (int imol, const std::string &chain_id, int res_no, const std::string &ins_code, const std::string &alt_conf) |
| std::pair< int, unsigned int > | delete_residue_atoms_using_cid (int imol, const std::string &cid) |
| std::pair< int, unsigned int > | delete_side_chain (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) |
| std::pair< int, unsigned int > | delete_side_chain_using_cid (int imol, const std::string &cid) |
| std::pair< int, unsigned int > | delete_chain_using_cid (int imol, const std::string &cid) |
| std::pair< int, unsigned int > | delete_literal_using_cid (int imol, const std::string &cid) |
| bool | delete_all_carbohydrate (int imol) |
| int | change_alt_locs (int imol, const std::string &cid, const std::string &change_mode) |
| std::pair< int, std::string > | add_terminal_residue_directly (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) |
| int | add_terminal_residue_directly_using_cid (int imol, const std::string &cid) |
| int | add_terminal_residue_directly_using_bucca_ml_growing_using_cid (int imol, const std::string &cid) |
| int | add_terminal_residue_directly_using_bucca_ml_growing (int imol, const coot::residue_spec_t &spec) |
| void | set_add_waters_water_to_protein_distance_lim_min (float d) |
| void | set_add_waters_water_to_protein_distance_lim_max (float d) |
| void | set_add_waters_variance_limit (float d) |
| void | set_add_waters_sigma_cutoff (float d) |
| int | add_waters (int imol_model, int imol_map) |
| int | flood (int imol_model, int imol_map, float n_rmsd) |
| int | add_hydrogen_atoms (int imol_model) |
| int | delete_hydrogen_atoms (int imol_model) |
| int | add_alternative_conformation (int imol_model, const std::string &cid) |
| int | fill_partial_residue (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) |
| int | fill_partial_residue_using_cid (int imol, const std::string &cid) |
| int | fill_partial_residues (int imol) |
| void | add_named_glyco_tree (int imol_model, int imol_map, const std::string &glycosylation_name, const std::string &asn_chain_id, int asn_res_no) |
| int | flip_peptide_using_cid (int imol, const std::string &atom_cid, const std::string &alt_conf) |
| void | eigen_flip_ligand (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) |
| void | eigen_flip_ligand_using_cid (int imol, const std::string &residue_cid) |
| int | mutate (int imol, const std::string &cid, const std::string &new_residue_type) |
| int | side_chain_180 (int imol, const std::string &atom_cid) |
| std::string | jed_flip (int imol, const std::string &atom_cid, bool invert_selection) |
| int | move_molecule_to_new_centre (int imol, float x, float y, float z) |
| void | multiply_residue_temperature_factors (int imol, const std::string &cid, float factor) |
| coot::Cartesian | get_molecule_centre (int imol) const |
| double | get_radius_of_gyration (int imol) const |
| int | copy_molecule (int imol) |
| int | copy_fragment_using_cid (int imol, const std::string &multi_cid) |
| int | copy_fragment_for_refinement_using_cid (int imol, const std::string &multi_cid) |
| int | copy_fragment_using_residue_range (int imol, const std::string &chain_id, int res_no_start, int res_no_end) |
| int | apply_transformation_to_atom_selection (int imol, const std::string &atoms_selection_cid, int n_atoms, float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22, float c0, float c1, float c2, float t0, float t1, float t2) |
| int | new_positions_for_residue_atoms (int imol, const std::string &residue_cid, std::vector< coot::api::moved_atom_t > &moved_atoms) |
| int | new_positions_for_atoms_in_residues (int imol, const std::vector< coot::api::moved_residue_t > &moved_residues) |
| std::pair< int, std::vector< merge_molecule_results_info_t > > | merge_molecules (int imol, const std::string &list_of_other_molecules) |
| int | cis_trans_convert (int imol, const std::string &atom_cid) |
| void | replace_residue (int imol, const std::string &residue_cid, const std::string &new_residue_type, int imol_enc) |
| int | replace_fragment (int imol_base, int imol_reference, const std::string &atom_selection) |
| int | rigid_body_fit (int imol, const std::string &multi_cid, int imol_map) |
| int | rotate_around_bond (int imol, const std::string &residue_cid, const std::string &atom_name_1, const std::string &atom_name_2, const std::string &atom_name_3, const std::string &atom_name_4, double torsion_angle) |
| std::pair< int, std::string > | change_chain_id (int imol, const std::string &from_chain_id, const std::string &to_chain_id, bool use_resno_range, int start_resno, int end_resno) |
| int | split_residue_using_map (int imol, const std::string &residue_cid, int imol_diff_map) |
| void | associate_sequence (int imol, const std::string &name_or_chain_id, const std::string &sequence) |
| void | assign_sequence (int imol_model, int imol_map) |
| std::vector< std::pair< std::string, std::string > > | get_sequence_info (int imol) const |
| coot::chain_mutation_info_container_t | get_mutation_info (int imol) const |
Coordinates Refinement | |
| int | refine_residues_using_atom_cid (int imol, const std::string &cid, const std::string &mode, int n_cycles) |
| int | refine_residues (int imol, const std::string &chain_id, int res_no, const std::string &ins_code, const std::string &alt_conf, const std::string &mode, int n_cycles) |
| int | refine_residue_range (int imol, const std::string &chain_id, int res_no_start, int res_no_end, int n_cycles) |
| std::pair< int, coot::instanced_mesh_t > | minimize_energy (int imol, const std::string &atom_selection_cid, int n_cycles, bool do_rama_plot_restraints, float rama_plot_weight, bool do_torsion_restraints, float torsion_weight, bool refinement_is_quiet) |
| float | minimize (int imol, const std::string &atom_selection_cid, int n_cycles, bool do_rama_plot_restraints, float rama_plot_weight, bool do_torsion_restraints, float torsion_weight, bool refinement_is_quiet) |
| void | fix_atom_selection_during_refinement (int imol, const std::string &atom_selection_cid) |
| void | add_target_position_restraint (int imol, const std::string &atom_cid, float pos_x, float pos_y, float pos_z) |
| void | clear_target_position_restraint (int imol, const std::string &atom_cid) |
| void | turn_off_when_close_target_position_restraint (int imol) |
| void | set_logging_level (const std::string &level) |
| void | set_logging_file (const std::string &file_name) |
| void | set_use_rama_plot_restraints (bool state) |
| bool | get_use_rama_plot_restraints () const |
| void | set_rama_plot_restraints_weight (float f) |
| float | get_rama_plot_restraints_weight () const |
| void | set_use_torsion_restraints (bool state) |
| bool | get_use_torsion_restraints () const |
| void | set_torsion_restraints_weight (float f) |
| float | get_torsion_restraints_weight () const |
| void | init_refinement_of_molecule_as_fragment_based_on_reference (int imol_frag, int imol_ref, int imol_map) |
| std::pair< int, coot::instanced_mesh_t > | refine (int imol, int n_cycles) |
| coot::instanced_mesh_t | add_target_position_restraint_and_refine (int imol, const std::string &atom_cid, float pos_x, float pos_y, float pos_z, int n_cycles) |
| void | clear_target_position_restraints (int imol) |
| void | clear_refinement (int imol) |
| void | set_refinement_is_verbose (bool state) |
| void | set_refinement_geman_mcclure_alpha (float a) |
| float | get_geman_mcclure_alpha () const |
| int | generate_self_restraints (int imol, float local_dist_max) |
| void | generate_chain_self_restraints (int imol, float local_dist_max, const std::string &chain_id) |
| void | generate_local_self_restraints (int imol, float local_dist_max, const std::string &residue_cids) |
| void | add_parallel_plane_restraint (int imol, const std::string &residue_cid_1, const std::string &residue_cid_2) |
| coot::instanced_mesh_t | get_extra_restraints_mesh (int imol, int mode) |
| int | read_extra_restraints (int imol, const std::string &file_name) |
| void | clear_extra_restraints (int imol) |
| int | servalcat_refine_xray (int imol, int imol_map, const std::string &output_prefix) |
| int | servalcat_refine_xray_with_keywords (int imol, int imol_map, const std::string &output_prefix, const nanobind::dict &key_value_pairs) |
Coordinates Validation | |
| coot::simple_mesh_t | get_rotamer_dodecs (int imol) |
| coot::instanced_mesh_t | get_rotamer_dodecs_instanced (int imol) |
| coot::simple_mesh_t | get_ramachandran_validation_markup_mesh (int imol) const |
| std::vector< coot::phi_psi_prob_t > | ramachandran_validation (int imol) const |
| coot::instanced_mesh_t | contact_dots_for_ligand (int imol, const std::string &cid, unsigned int smoothness_factor) const |
| coot::instanced_mesh_t | all_molecule_contact_dots (int imol, unsigned int smoothness_factor) const |
| coot::simple::molecule_t | get_simple_molecule (int imol, const std::string &residue_cid, bool draw_hydrogen_atoms_flag) |
| generic_3d_lines_bonds_box_t | make_exportable_environment_bond_box (int imol, coot::residue_spec_t &spec, float max_dist) |
| std::vector< moorhen::h_bond > | get_h_bonds (int imol, const std::string &cid_str, bool mcdonald_and_thornton_mode) const |
| coot::simple_mesh_t | get_mesh_for_ligand_validation_vs_dictionary (int imol, const std::string &ligand_cid) |
| std::vector< coot::geometry_distortion_info_container_t > | get_ligand_validation_vs_dictionary (int imol, const std::string &ligand_cid, bool include_non_bonded_contacts) |
| std::vector< coot::geometry_distortion_info_container_t > | get_validation_vs_dictionary_for_selection (int imol, const std::string &selection_cid, bool include_non_bonded_contacts) |
| std::pair< int, double > | get_ligand_distortion (int imol, const std::string &ligand_cid, bool include_non_bonded_contacts) |
| bool | match_ligand_torsions (int imol_ligand, int imol_ref, const std::string &chain_id_ref, int resno_ref) |
| bool | match_ligand_position (int imol_ligand, int imol_ref, const std::string &chain_id_ref, int resno_ref) |
| bool | match_ligand_torsions_and_position (int imol_ligand, int imol_ref, const std::string &chain_id_ref, int resno_ref) |
| bool | match_ligand_torsions_and_position_using_cid (int imol_ligand, int imol_ref, const std::string &cid) |
| coot::atom_overlaps_dots_container_t | get_overlap_dots (int imol) |
| coot::atom_overlaps_dots_container_t | get_overlap_dots_for_ligand (int imol, const std::string &cid_ligand) |
| std::vector< coot::plain_atom_overlap_t > | get_atom_overlaps (int imol) |
| Get Atom Overlaps. | |
| float | get_atom_overlap_score (int imol) |
| std::vector< coot::plain_atom_overlap_t > | get_overlaps_for_ligand (int imol, const std::string &cid_ligand) |
| Gat Atom Overlaps for a ligand or residue. | |
| std::vector< positioned_atom_spec_t > | get_atom_differences (int imol1, int imol2) |
| std::string | get_pucker_analysis_info (int imol) const |
Coordinates and Map Validation | |
| coot::validation_information_t | density_fit_analysis (int imol_model, int imol_map) const |
| double | get_sum_density_for_atoms_in_residue (int imol, const std::string &cid, const std::vector< std::string > &atom_names, int imol_map) |
| int | get_number_of_atoms_in_residue (int imol, const std::string &residue_cid) const |
| coot::validation_information_t | density_correlation_analysis (int imol_model, int imol_map) const |
| coot::validation_information_t | rotamer_analysis (int imol_model) const |
| coot::validation_information_t | ramachandran_analysis (int imol_model) const |
| coot::validation_information_t | ramachandran_analysis_for_chain (int imol_model, const std::string &chain_id) const |
| coot::validation_information_t | peptide_omega_analysis (int imol_model) const |
| float | get_median_temperature_factor (int imol) const |
| float | get_temperature_factor_of_atom (int imol, const std::string &atom_cid) const |
| std::vector< coot::molecule_t::interesting_place_t > | get_interesting_places (int imol, const std::string &mode) const |
| std::vector< coot::molecule_t::interesting_place_t > | difference_map_peaks (int imol_map, int imol_protein, float n_rmsd) const |
| std::vector< coot::molecule_t::interesting_place_t > | pepflips_using_difference_map (int imol_coords, int imol_difference_map, float n_sigma) const |
| std::vector< coot::molecule_t::interesting_place_t > | unmodelled_blobs (int imol_model, int imol_map, float rmsd_cut_off) const |
| std::vector< coot::atom_spec_t > | find_water_baddies (int imol_model, int imol_map, float b_factor_lim, float outlier_sigma_level, float min_dist, float max_dist, bool ignore_part_occ_contact_flag, bool ignore_zero_occ_flag) |
| coot::instanced_mesh_t | get_HOLE (int imol, float start_pos_x, float start_pos_y, float start_pos_z, float end_pos_x, float end_pos_y, float end_pos_z) const |
| std::pair< std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t >, std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t > > | get_mmrrcc (int imol, const std::string &chain_id, unsigned int n_residue_per_residue_range, int imol_map) const |
| std::pair< std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t >, std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t > > | mmrrcc (int imol, const std::string &chain_id, int imol_map) const |
| std::pair< std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t >, std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t > > | mmrrcc_internal (const atom_selection_container_t &asc, const std::string &chain_id, unsigned int n_residue_per_residue_range, const clipper::Xmap< float > &xmap) const |
| std::vector< std::pair< double, double > > | fourier_shell_correlation (int imol_map_1, int imol_map_2) const |
| int | make_power_scaled_map (int imol_ref, int imol_map_for_scaling) |
| coot::validation_information_t | get_q_score (int imol_model, int imol_map) const |
| coot::validation_information_t | get_q_score_for_cid (int imol_model, const std::string &cid, int imol_map) const |
| std::pair< float, float > | get_mean_and_variance_of_density_for_non_water_atoms (int imol_coords, int imol_map) const |
| float | get_spherical_variance (int imol_map, int imol_model, const std::string &atom_cid, float mean_density_other_atoms) const |
Rail Points! | |
| int | calculate_new_rail_points () |
| int | rail_points_total () const |
Updating Maps | |
| void | associate_data_mtz_file_with_map (int imol, const std::string &data_mtz_file_name, const std::string &f_col, const std::string &sigf_col, const std::string &free_r_col) |
| int | connect_updating_maps (int imol_model, int imol_with_data_info_attached, int imol_map_2fofc, int imol_map_fofc) |
| void | sfcalc_genmap (int imol_model, int imol_map_with_data_attached, int imol_updating_difference_map) |
| coot::util::sfcalc_genmap_stats_t | sfcalc_genmaps_using_bulk_solvent (int imol_model, int imol_2fofc_map, int imol_updating_difference_map, int imol_map_with_data_attached) |
| bool | shift_field_b_factor_refinement (int imol, int imol_with_data_attached) |
| float | get_density_at_position (int imol_map, float x, float y, float z) const |
| std::vector< std::pair< clipper::Coord_orth, float > > | get_diff_diff_map_peaks (int imol_diff_map, float screen_centre_x, float screen_centre_y, float screen_centre_z) const |
| std::string | get_data_set_file_name (int imol) const |
Go to Blob | |
| std::pair< bool, clipper::Coord_orth > | go_to_blob (float x1, float y1, float z1, float x2, float y2, float z2, float contour_level) |
Ligand Functions | |
| std::vector< int > | fit_ligand_right_here (int imol_protein, int imol_map, int imol_ligand, float x, float y, float z, float n_rmsd, bool use_conformers, unsigned int n_conformers) |
| std::vector< fit_ligand_info_t > | fit_ligand (int imol_protein, int imol_map, int imol_ligand, float n_rmsd, bool use_conformers, unsigned int n_conformers) |
| std::vector< fit_ligand_info_t > | fit_ligand_multi_ligand (int imol_protein, int imol_map, const std::string &multi_ligand_molecule_number_list, float n_rmsd, bool use_conformers, unsigned int n_conformers) |
| float | fit_to_map_by_random_jiggle (int imol, const coot::residue_spec_t &res_spec, int n_trials, float translation_scale_factor) |
| float | fit_to_map_by_random_jiggle_using_cid (int imol, const std::string &cid, int n_trials, float translation_scale_factor) |
| float | fit_to_map_by_random_jiggle_with_blur_using_cid (int imol, int imol_map, const std::string &cid, float b_factor, int n_trials, float translation_scale_factor) |
| int | add_compound (int imol, const std::string &tlc, int imol_dict, int imol_map, float x, float y, float z) |
| std::string | get_svg_for_residue_type (int imol, const std::string &comp_id, bool use_rdkit_svg, const std::string &background_type) |
| std::string | get_svg_for_2d_ligand_environment_view (int imol, const std::string &residue_cid, bool add_key) |
| std::vector< coot::residue_spec_t > | get_non_standard_residues_in_molecule (int imol) const |
| bool | try_read_dictionaries_for_new_residue_types (int imol) |
| std::vector< int > | get_dictionary_conformers (const std::string &comp_id, int imol_enc, bool remove_internal_clash_conformers) |
| texture_as_floats_t | get_map_section_texture (int imol, int section_id, int axis, float data_value_for_bottom, float data_value_for_top) const |
| int | get_number_of_map_sections (int imol_map, int axis_id) const |
Other Features | |
| coot::simple_mesh_t | make_mesh_from_gltf_file (const std::string &file_name) |
| coot::simple_mesh_t | get_octahemisphere (unsigned int n_divisions) const |
| unsigned int | get_max_number_of_simple_mesh_vertices () const |
| void | set_max_number_of_simple_mesh_vertices (unsigned int n) |
| std::string | pae_png (const std::string &pae_file_name) const |
Functions for Blender Interface | |
| void | make_mesh_for_map_contours_for_blender (int imol, float x, float y, float z, float level, float radius) |
| Function for Blender interface. | |
| void | make_mesh_for_bonds_for_blender (int imol, const std::string &mode, bool against_a_dark_background, float bond_width, float atom_radius_to_bond_width_ratio, int smoothness_factor) |
| Function for Blender interface. | |
| void | make_mesh_for_molecular_representation_for_blender (int imol, const std::string &cid, const std::string &colour_scheme, const std::string &style, int secondary_structure_usage_flag) |
| void | make_mesh_for_gaussian_surface_for_blender (int imol, float sigma, float contour_level, float box_radius, float grid_scale, float b_factor) |
| Function for Blender interface. | |
| void | make_mesh_for_goodsell_style_for_blender (int imol, float colour_wheel_rotation_step, float saturation, float goodselliness) |
| blender | |
| std::vector< float > | get_colour_table_for_blender (int imol) |
| Function for Blender interface. | |
| std::vector< float > | get_vertices_for_blender (int imol) |
| Function for Blender interface. | |
| std::vector< int > | get_triangles_for_blender (int imol) |
| Function for Blender interface. | |
| void | test_function (const std::string &s) |
Public Attributes | |
| int | imol_refinement_map |
| int | imol_difference_map |
| bool | use_gemmi |
Basic Utilities | |
| bool | make_backups_flag |
| the backup-enable state (raw public if needed/preferred) | |
| std::string | package_version () const |
| void | set_use_gemmi (bool state) |
| bool | get_use_gemmi () |
| Get the state of using GEMMI for coordinates parsing. | |
| void | set_make_backups (bool state) |
| bool | get_make_backups () const |
| std::string | file_name_to_string (const std::string &file_name) const |
| unsigned int | get_number_of_molecules () const |
| void | create_empty_molecules (unsigned int n_empty) |
| void | set_imol_refinement_map (int i) |
| void | set_map_weight (float w) |
| float | get_map_weight () const |
| void | scale_map (int imol_map, float scale_factor) |
| coot::atom_spec_t | atom_cid_to_atom_spec (int imol, const std::string &cid) const |
| coot::residue_spec_t | residue_cid_to_residue_spec (int imol, const std::string &cid) const |
| void | set_show_timings (bool s) |
| moorhen::header_info_t | get_header_info (int imol) const |
| int | get_imol_enc_any () const |
Coordinates Utils | |
| std::vector< coot::lsq_range_match_info_t > | lsq_matchers |
| int | read_coordinates (const std::string &file_name) |
| int | read_pdb (const std::string &file_name) |
| int | read_small_molecule_cif (const std::string &file_name) |
| void | print_secondary_structure_info (int imol) const |
| void | replace_molecule_by_model_from_file (int imol, const std::string &pdb_file_name) |
| std::vector< int > | split_multi_model_molecule (int imol) |
| int | make_ensemble (const std::string &model_molecules_list) |
| std::string | molecule_to_PDB_string (int imol) const |
| std::string | molecule_to_mmCIF_string (int imol) const |
| std::pair< int, std::string > | get_active_atom (float x, float y, float z, const std::string &displayed_model_molecules_list) const |
| int | import_cif_dictionary (const std::string &cif_file_name, int imol_enc) |
| std::string | get_cif_file_name (const std::string &comp_id, int imol_enc) const |
| std::string | get_cif_restraints_as_string (const std::string &comp_id, int imol_enc) const |
| bool | copy_dictionary (const std::string &monomer_name, int imol_current, int imol_new) |
| int | get_monomer (const std::string &monomer_name) |
| int | get_monomer_from_dictionary (const std::string &comp_id, int imol, bool idealised_flag) |
| int | get_monomer_and_position_at (const std::string &comp_id, int imol, float x, float y, float z) |
| std::map< std::string, std::string > | dictionary_atom_name_map (const std::string &comp_id_1, int imol_1, const std::string &comp_id_2, int imol_2) |
| std::vector< std::string > | get_types_in_molecule (int imol) const |
| get types | |
| std::vector< std::string > | get_groups_for_monomers (const std::vector< std::string > &residue_names) const |
| std::string | get_group_for_monomer (const std::string &residue_name) const |
| std::string | get_hb_type (const std::string &compound_id, int imol_enc, const std::string &atom_name) const |
| std::vector< std::pair< std::string, std::string > > | get_gphl_chem_comp_info (const std::string &compound_id, int imol_enc) |
| std::vector< std::pair< std::string, std::string > > | get_acedrg_atom_types (const std::string &compound_id, int imol_enc) const |
| coot::acedrg_types_for_residue_t | get_acedrg_atom_types_for_ligand (int imol, const std::string &residue_cid) const |
| void | set_occupancy (int imol, const std::string &cid, float occ_new) |
| std::string | get_molecule_selection_as_json (int imol, const std::string &cid) const |
| void | write_png (const std::string &compound_id, int imol, const std::string &file_name) const |
| int | write_coordinates (int imol, const std::string &file_name) const |
| void | set_draw_missing_residue_loops (bool state) |
| coot::simple_mesh_t | get_bonds_mesh (int imol, const std::string &mode, bool against_a_dark_background, float bond_width, float atom_radius_to_bond_width_ratio, int smoothness_factor) |
| coot::instanced_mesh_t | get_bonds_mesh_instanced (int imol, const std::string &mode, bool against_a_dark_background, float bond_width, float atom_radius_to_bond_width_ratio, bool show_atoms_as_aniso_flag, bool show_aniso_atoms_as_ortep_flag, bool draw_hydrogen_atoms_flag, int smoothness_factor) |
| coot::instanced_mesh_t | get_bonds_mesh_for_selection_instanced (int imol, const std::string &atom_selection_cid, const std::string &mode, bool against_a_dark_background, float bond_width, float atom_radius_to_bond_width_ratio, bool show_atoms_as_aniso_flag, bool show_aniso_atoms_as_ortep_flag, bool draw_hydrogen_atoms_flag, int smoothness_factor) |
| coot::instanced_mesh_t | get_goodsell_style_mesh_instanced (int imol, float colour_wheel_rotation_step, float saturation, float goodselliness) |
| void | export_map_molecule_as_gltf (int imol, float pos_x, float pos_y, float pos_z, float radius, float contour_level, const std::string &file_name) |
| void | export_model_molecule_as_gltf (int imol, const std::string &selection_cid, const std::string &mode, bool against_a_dark_background, float bonds_width, float atom_radius_to_bond_width_ratio, int smoothness_factor, bool draw_hydrogen_atoms_flag, bool draw_missing_residue_loops, const std::string &file_name) |
| void | export_molecular_representation_as_gltf (int imol, const std::string &atom_selection_cid, const std::string &colour_scheme, const std::string &style, int secondary_structure_usage_flag, const std::string &file_name) |
| void | export_chemical_features_as_gltf (int imol, const std::string &cid, const std::string &file_name) const |
| void | set_gltf_pbr_roughness_factor (int imol, float roughness_factor) |
| void | set_gltf_pbr_metalicity_factor (int imol, float metalicity) |
| std::vector< glm::vec4 > | get_colour_table (int imol, bool against_a_dark_background) const |
| void | set_colour_wheel_rotation_base (int imol, float r) |
| void | set_base_colour_for_bonds (int imol, float r, float g, float b) |
| void | add_to_non_drawn_bonds (int imol, const std::string &atom_selection_cid) |
| void | clear_non_drawn_bonds (int imol) |
| void | print_non_drawn_bonds (int imol) const |
| void | set_user_defined_bond_colours (int imol, const std::map< unsigned int, std::array< float, 4 > > &colour_map) |
| User-defined colour-index to colour. | |
| void | set_user_defined_atom_colour_by_selection (int imol, const std::vector< std::pair< std::string, unsigned int > > &indexed_residues_cids, bool colour_applies_to_non_carbon_atoms_also) |
| void | add_colour_rule (int imol, const std::string &selection_cid, const std::string &colour) |
| Add a colour rule for M2T representations. | |
| void | add_colour_rules_multi (int imol, const std::string &selections_and_colours_combo_string) |
| void | delete_colour_rules (int imol) |
| std::vector< std::pair< std::string, std::string > > | get_colour_rules (int imol) const |
| void | print_colour_rules (int imol) const |
| void | set_use_bespoke_carbon_atom_colour (int imol, bool state) |
| void | set_bespoke_carbon_atom_colour (int imol, const coot::colour_t &col) |
| void | M2T_updateFloatParameter (int imol, const std::string ¶m_name, float value) |
| Update float parameter for MoleculesToTriangles molecular mesh. | |
| void | M2T_updateIntParameter (int imol, const std::string ¶m_name, int value) |
| Update int parameter for MoleculesToTriangles molecular mesh. | |
| coot::simple_mesh_t | get_molecular_representation_mesh (int imol, const std::string &cid, const std::string &colour_scheme, const std::string &style, int secondary_structure_usage_flag) |
| coot::simple_mesh_t | get_gaussian_surface (int imol, float sigma, float contour_level, float box_radius, float grid_scale, float b_factor) const |
| coot::simple_mesh_t | get_chemical_features_mesh (int imol, const std::string &cid) const |
| mmdb::Atom * | get_atom_using_cid (int imol, const std::string &cid) const |
| mmdb::Residue * | get_residue_using_cid (int imol, const std::string &cid) const |
| bool | residue_is_nucleic_acid (int imol, const std::string &cid) const |
| std::vector< double > | get_residue_CA_position (int imol, const std::string &cid) const |
| std::vector< double > | get_residue_average_position (int imol, const std::string &cid) const |
| std::vector< double > | get_residue_sidechain_average_position (int imol, const std::string &cid) const |
| unsigned int | get_number_of_atoms (int imol) const |
| float | get_molecule_diameter (int imol) const |
| int | get_number_of_hydrogen_atoms (int imol) const |
| std::vector< std::string > | get_chains_in_model (int imol) const |
| std::vector< std::vector< std::string > > | get_ncs_related_chains (int imol) const |
| std::vector< std::pair< coot::residue_spec_t, std::string > > | get_single_letter_codes_for_chain (int imol, const std::string &chain_id) const |
| std::vector< std::string > | get_residue_names_with_no_dictionary (int imol) const |
| std::string | get_residue_name (int imol, const std::string &chain_id, int res_no, const std::string &ins_code) const |
| std::string | get_residue_type (int imol, const std::string &cid) const |
| std::string | get_SMILES_for_residue_type (const std::string &residue_name, int imol_enc) const |
| std::vector< coot::residue_spec_t > | residues_with_missing_atoms (int imol) |
| std::vector< coot::residue_range_t > | get_missing_residue_ranges (int imol) const |
| std::vector< coot::residue_spec_t > | get_residues_near_residue (int imol, const std::string &residue_cid, float dist) const |
| std::vector< coot::atom_distance_t > | get_distances_between_atoms_of_residues (int imol, const std::string &cid_res_1, const std::string &cid_res_2, float dist_max) const |
| superpose_results_t | SSM_superpose (int imol_ref, const std::string &chain_id_ref, int imol_mov, const std::string &chain_id_mov) |
| void | add_lsq_superpose_match (const std::string &chain_id_ref, int res_no_ref_start, int res_no_ref_end, const std::string &chain_id_mov, int res_no_mov_start, int res_no_mov_end, int match_type) |
| void | add_lsq_superpose_atom_match (const std::string &chain_id_ref, int res_no_ref, const std::string &atom_name_ref, const std::string &chain_id_mov, int res_no_mov, const std::string &atom_name_mov) |
| void | clear_lsq_matches () |
| Clear any existing lsq matchers. | |
| bool | lsq_superpose (int imol_ref, int imol_mov) |
| int | transform_map_using_lsq_matrix (int imol_map, lsq_results_t lsq_matrix, float x, float y, float z, float radius) |
| lsq_results_t | get_lsq_matrix (int imol_ref, int imol_mov, bool summary_to_screen) const |
| coot::symmetry_info_t | get_symmetry (int imol, float symmetry_search_radius, float centre_x, float centre_y, float centre_z) const |
| ::api::cell_t | get_cell (int imol) const |
| coot::util::map_molecule_centre_info_t | get_map_molecule_centre (int imol) const |
| int | undo (int imol) |
| int | redo (int imol) |
| std::pair< int, double > | get_torsion (int imol, const std::string &cid, const std::vector< std::string > &atom_names) |
| void | set_temperature_factors_using_cid (int imol, const std::string &cid, float temp_fact) |
Map Utils | |
| user_defined_colour_table_t | colour_map_by_other_map_user_defined_table |
| float | get_map_sampling_rate () |
| void | set_map_sampling_rate (float msr) |
| int | read_mtz (const std::string &file_name, const std::string &f, const std::string &phi, const std::string &weight, bool use_weight, bool is_a_difference_map) |
| int | replace_map_by_mtz_from_file (int imol, const std::string &file_name, const std::string &f, const std::string &phi, const std::string &weight, bool use_weight) |
| std::vector< auto_read_mtz_info_t > | auto_read_mtz (const std::string &file_name) |
| int | read_ccp4_map (const std::string &file_name, bool is_a_difference_map) |
| int | write_map (int imol, const std::string &file_name) const |
| float | get_map_mean (int imol) const |
| float | get_map_rmsd_approx (int imol_map) const |
| coot::molecule_t::histogram_info_t | get_map_histogram (int imol, unsigned int n_bins, float zoom_factor) const |
| float | get_suggested_initial_contour_level (int imol) const |
| bool | is_EM_map (int imol) const |
| int | sharpen_blur_map (int imol_map, float b_factor, bool in_place_flag) |
| int | sharpen_blur_map_with_resample (int imol_map, float b_factor, float resample_factor, bool in_place_flag) |
| int | mask_map_by_atom_selection (int imol_coords, int imol_map, const std::string &cid, float atom_radius, bool invert_flag) |
| std::vector< int > | partition_map_by_chain (int imol_map, int imol_model) |
| int | make_mask (int imol_map_ref, int imol_model, const std::string &atom_selection_cid, float radius) |
| int | flip_hand (int imol_map) |
| std::vector< int > | make_masked_maps_split_by_chain (int imol, int imol_map) |
| int | dedust_map (int imol) |
| void | set_map_colour (int imol, float r, float g, float b) |
| void | set_map_is_contoured_with_thread_pool (bool state) |
| coot::simple_mesh_t | get_map_contours_mesh (int imol, double position_x, double position_y, double position_z, float radius, float contour_level) |
| coot::simple_mesh_t | get_map_contours_mesh_using_other_map_for_colours (int imol_ref, int imol_map_for_colouring, double position_x, double position_y, double position_z, float radius, float contour_level, float other_map_for_colouring_min_value, float other_map_for_colouring_max_value, bool invert_colour_ramp) |
| void | set_map_colour_saturation (int imol, float s) |
| void | set_colour_map_for_map_coloured_by_other_map (std::vector< std::pair< double, std::vector< double > > > colour_table) |
| coot::molecule_t::histogram_info_t | get_map_vertices_histogram (int imol, int imol_map_for_sampling, double position_x, double position_y, double position_z, float radius, float contour_level, unsigned int n_bins) |
| coot::util::sfcalc_genmap_stats_t | get_latest_sfcalc_stats () const |
| r_factor_stats | get_r_factor_stats () |
| std::string | r_factor_stats_as_string (const r_factor_stats &rfs) const |
| int | average_map (const std::string &imol_maps, std::vector< float > &scales) |
| bool | regen_map (int imol_map, const std::string &imol_maps, const std::vector< float > &scales) |
Testing functions | |
| ltj_stats_t | long_term_job_stats |
| long term job | |
| bool | interrupt_long_term_job |
| void | testing_start_long_term_job (unsigned int n_seconds) |
| void | testing_stop_long_term_job () |
| ltj_stats_t | testing_interrogate_long_term_job () |
| double | get_contouring_time () const |
| void | set_max_number_of_threads (unsigned int n_threads) |
| void | set_max_number_of_threads_in_thread_pool (unsigned int n_threads) |
| double | test_the_threading (int n_threads) |
| double | test_launching_threads (unsigned int n_threads_per_batch, unsigned int n_batches) const |
| double | test_thread_pool_threads (unsigned int n_threads) |
| int | mmcif_tests (bool last_test_only) |
the container of molecules. The class for all libcootapi functions.
| void molecules_container_t::accept_rotamer_probability_tables_compressed_data | ( | const std::string & | data_stream | ) |
Access to a compressed file that contains the rotamer probabilities
libcootapi will fill the rotamer probabilities tables from this compressed data stream (placeholder only)
| int molecules_container_t::add_alternative_conformation | ( | int | imol_model, |
| const std::string & | cid ) |
Add an alternative conformation for the specified residue
| imol_model | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 in chain A) |
| void molecules_container_t::add_colour_rules_multi | ( | int | imol, |
| const std::string & | selections_and_colours_combo_string ) |
Add multiple colour rules
| selections_and_colours_combo_string | e.g. "//A/1^#cc0000|//A/2^#cb0002|//A/3^#c00007", where "|" is the separator for each rule and "^" is the separator for the selection string and the colour string |
| int molecules_container_t::add_compound | ( | int | imol, |
| const std::string & | tlc, | ||
| int | imol_dict, | ||
| int | imol_map, | ||
| float | x, | ||
| float | y, | ||
| float | z ) |
This function is for adding compounds/molecules like buffer agents and precipitants or anions and cations. e.g. those ligands that can be positioned without need for internal torsion angle manipulation.
| imol | is the model molecule index |
| tlc | is the 3-letter-code/compound-id |
| imol_dict | is the molecule to which the ligand is attached (if any). Typically this will be IMOL_ENC_ANY (-999999). |
| imol_map | is the map molecule index |
| x | is the x position |
| y | is the y position |
| z | is the z position |
| int molecules_container_t::add_hydrogen_atoms | ( | int | imol_model | ) |
Add hydrogen atoms
| imol_model | is the model molecule index |
| void molecules_container_t::add_lsq_superpose_atom_match | ( | const std::string & | chain_id_ref, |
| int | res_no_ref, | ||
| const std::string & | atom_name_ref, | ||
| const std::string & | chain_id_mov, | ||
| int | res_no_mov, | ||
| const std::string & | atom_name_mov ) |
Superpose using LSQ for a scpecific atom - setup the matches
| chain_id_ref | the chain ID for the reference chain |
| res_no_ref | the residue number in the reference chain |
| atom_name_ref | the name of the reference atom |
| chain_id_mov | the chain ID for the moving chain |
| res_no_mov | the residue number in the moving chain |
| atom_name_mov | the name of the moving atom |
| void molecules_container_t::add_lsq_superpose_match | ( | const std::string & | chain_id_ref, |
| int | res_no_ref_start, | ||
| int | res_no_ref_end, | ||
| const std::string & | chain_id_mov, | ||
| int | res_no_mov_start, | ||
| int | res_no_mov_end, | ||
| int | match_type ) |
Superpose using LSQ - setup the matches
| chain_id_ref | the chain ID for the reference chain |
| res_no_ref_start | the starting residue number in the reference chain |
| res_no_ref_end | the ending residue number in the reference chain |
| chain_id_mov | the chain ID for the moving chain |
| res_no_mov_start | the starting residue number in the moving chain |
| res_no_mov_end | the ending residue number in the moving chain |
| match_type | 0: all, 1: main, 2: CAs, 3: N, CA, C, 4: N, CA, CB, C |
| void molecules_container_t::add_named_glyco_tree | ( | int | imol_model, |
| int | imol_map, | ||
| const std::string & | glycosylation_name, | ||
| const std::string & | asn_chain_id, | ||
| int | asn_res_no ) |
Add N-linked glycosylation
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
| glycosylation_name | is the type of glycosylation, one of: "NAG-NAG-BMA" or "high-mannose" or "hybrid" or "mammalian-biantennary" or "plant-biantennary" |
| asn_chain_id | is the chain-id of the ASN to which the carbohydrate is to be added |
| asn_res_no | is the residue number of the ASN to which the carbohydrate is to be added |
| void molecules_container_t::add_parallel_plane_restraint | ( | int | imol, |
| const std::string & | residue_cid_1, | ||
| const std::string & | residue_cid_2 ) |
Generate parallel plane restraints (for RNA and DNA)
| imol | is the model molecule index |
| residue_cid_1 | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| residue_cid_2 | is the selection CID e.g "//A/17" (residue 17 of chain A) |
| void molecules_container_t::add_target_position_restraint | ( | int | imol, |
| const std::string & | atom_cid, | ||
| float | pos_x, | ||
| float | pos_y, | ||
| float | pos_z ) |
Add or update restraint (if it has a pull restraint already)
| imol | is the model molecule index |
| atom_cid | is the selection CID e.g "//A/15/OH" (atom OH of residue 15 of chain A) |
| pos_x | is the x coordinate of the target position of the specified atom |
| pos_y | is the y coordinate of the target position of the specified atom |
| pos_z | is the z coordinate of the target position of the specified atom |
| coot::instanced_mesh_t molecules_container_t::add_target_position_restraint_and_refine | ( | int | imol, |
| const std::string & | atom_cid, | ||
| float | pos_x, | ||
| float | pos_y, | ||
| float | pos_z, | ||
| int | n_cycles ) |
Create a new position for the given atom and create a new bonds mesh based on that
This is currently "heavyweight" as the bonds mesh is calculated from scratch (it is not (yet) merely a distortion of an internally-stored mesh).
| imol | is the model molecule index |
| atom_cid | is the selection CID e.g "//A/15/OH" (atom OH of residue 15 of chain A) |
| pos_x | is the x coordinate of the target position of the specified atom |
| pos_y | is the y coordinate of the target position of the specified atom |
| pos_z | is the z coordinate of the target position of the specified atom |
| n_cycles | specifies the number of refinement cyles to run after the target position of the atom has been applied. If n_cycles is -1 then, no cycles are done and the mesh is bonds merely calculated. |
instanced_mesh_t | std::pair< int, std::string > molecules_container_t::add_terminal_residue_directly | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) |
Add a residue onto the end of the chain by fitting to density
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| int molecules_container_t::add_terminal_residue_directly_using_bucca_ml_growing | ( | int | imol, |
| const coot::residue_spec_t & | spec ) |
Add a residue onto the end of the chain by fitting to density using Buccaneer building
| imol | is the model molecule index |
| spec | is the residue specifier, residue_spec_t("A", 10, "") |
| int molecules_container_t::add_terminal_residue_directly_using_bucca_ml_growing_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Add a residue onto the end of the chain by fitting to density using Buccaneer building and cid
This function has been removed - is is now a noop.
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15/OH" (atom OH in residue 15) |
| int molecules_container_t::add_terminal_residue_directly_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Add a residue onto the end of the chain by fitting to density using cid
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15/OH" (atom OH in residue 15) |
| void molecules_container_t::add_to_non_drawn_bonds | ( | int | imol, |
| const std::string & | atom_selection_cid ) |
Add an atom selection cid for atoms and bonds not to be drawn
| imol | is the model molecule index |
| atom_selection_cid | e.g "//A/15" (all the atoms in residue 15 of chain A) |
| int molecules_container_t::add_waters | ( | int | imol_model, |
| int | imol_map ) |
Add waters
| imol | is the model molecule index |
| imol_map | is the map molecule index |
| coot::instanced_mesh_t molecules_container_t::all_molecule_contact_dots | ( | int | imol, |
| unsigned int | smoothness_factor ) const |
Contact dots for the whole molecule/model
| imol | is the model molecule index |
| smoothness_factor | is 1, 2 or 3 (3 is the most smooth). Recently added (20230202) |
| int molecules_container_t::apply_transformation_to_atom_selection | ( | int | imol, |
| const std::string & | atoms_selection_cid, | ||
| int | n_atoms, | ||
| float | m00, | ||
| float | m01, | ||
| float | m02, | ||
| float | m10, | ||
| float | m11, | ||
| float | m12, | ||
| float | m20, | ||
| float | m21, | ||
| float | m22, | ||
| float | c0, | ||
| float | c1, | ||
| float | c2, | ||
| float | t0, | ||
| float | t1, | ||
| float | t2 ) |
Apply transformation to atom selection in the given molecule
| void molecules_container_t::assign_sequence | ( | int | imol_model, |
| int | imol_map ) |
Assign a sequence to a molecule
Often one might copy out a fragment from a more complete molecule (and then copy it back after the sequence has been added). This runs backrub_rotamer() on the newly assigned residues
| imol | is the model molecule index |
| imol_map | is the map molecule index |
| void molecules_container_t::associate_data_mtz_file_with_map | ( | int | imol, |
| const std::string & | data_mtz_file_name, | ||
| const std::string & | f_col, | ||
| const std::string & | sigf_col, | ||
| const std::string & | free_r_col ) |
Associate a data mtz file with a molecule
This function is called before calling "connect_updating_maps()"
| imol | is the map molecule index |
| data_mtz_file_name | is the name of the mtz file |
| f_col | is the F column, e.g. "FOBS" |
| sigf_col | e.g. "SIGFOBS" |
| free_r_col | e.g. "RFREE" |
| void molecules_container_t::associate_sequence | ( | int | imol, |
| const std::string & | name_or_chain_id, | ||
| const std::string & | sequence ) |
Associate a sequence with a molecule
| imol | is the model molecule index |
| name_or_chain_id | e.g. "A" |
| sequence | is the model sequence |
| coot::atom_spec_t molecules_container_t::atom_cid_to_atom_spec | ( | int | imol, |
| const std::string & | cid ) const |
Convert atom cid string to a coot atom specifier
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15/OH" (atom OH in residue 15 of chain A) |
spec.empty() is true on failure. | int molecules_container_t::auto_fit_rotamer | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code, | ||
| const std::string & | alt_conf, | ||
| int | imol_map ) |
Auto-fit rotamer
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| imol_map | is the map molecule index |
| std::vector< auto_read_mtz_info_t > molecules_container_t::auto_read_mtz | ( | const std::string & | file_name | ) |
Auto read the given mtz file
| file_name | is the name of the MTZ file |
| int molecules_container_t::average_map | ( | const std::string & | imol_maps, |
| std::vector< float > & | scales ) |
Get the average map
This function does no normalization of the scales, presuming that they are pre-normalized.
| imol_maps | is a colon-separated list of map indices e.g. "2:3:4" |
| scales | is the list of weights corresponding to the list of maps. The number of scales factors should match the number of maps |
| int molecules_container_t::calculate_new_rail_points | ( | ) |
Calling this adds to the rail_points history. Make this pairs when we add model scoring
| int molecules_container_t::change_alt_locs | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | change_mode ) |
Change alternate conformation
Note that this function only deals with (swaps) alt confs "A" and "B" - any alt-conf other than that is ignored.
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 in chain A) |
| change_mode | is either "residue", "main-chain", "side-chain" or a comma-separated atom-name pairs (e.g "N,CA") - you can (of course) specify just one atom, e.g.: "N". |
| std::pair< int, std::string > molecules_container_t::change_chain_id | ( | int | imol, |
| const std::string & | from_chain_id, | ||
| const std::string & | to_chain_id, | ||
| bool | use_resno_range, | ||
| int | start_resno, | ||
| int | end_resno ) |
Change the chain ID
| imol | is the model molecule index |
| from_chain_id | e.g. "A" |
| to_chain_id | e.g. "C" |
| use_resno_range | use residue number range, typically True |
| start_resno | the starting residue number of the range |
| end_resno | the ending residue number of the range |
| coot::molecule_t::rotamer_change_info_t molecules_container_t::change_to_first_rotamer | ( | int | imol, |
| const std::string & | residue_cid, | ||
| const std::string & | alt_conf ) |
Change to the first (0th) rotamer
| imol | is the model molecule index |
| residue_cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| coot::molecule_t::rotamer_change_info_t molecules_container_t::change_to_next_rotamer | ( | int | imol, |
| const std::string & | residue_cid, | ||
| const std::string & | alt_conf ) |
Change to the next rotamer (rotamer cycling is implicit if needed)
| imol | is the model molecule index |
| residue_cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| coot::molecule_t::rotamer_change_info_t molecules_container_t::change_to_previous_rotamer | ( | int | imol, |
| const std::string & | residue_cid, | ||
| const std::string & | alt_conf ) |
Change to the previous rotamer (rotamer cycling is implicit if needed)
| imol | is the model molecule index |
| residue_cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| int molecules_container_t::cis_trans_convert | ( | int | imol, |
| const std::string & | atom_cid ) |
Convert a cis peptide to a trans or vice versa
| imol | is the model molecule index |
| atom_cid | is the atom selection CID e.g "//A/15/OH" (atom OH residue 15 of chain A) |
| void molecules_container_t::clear_extra_restraints | ( | int | imol | ) |
Clear the extra restraints
| imol | is the model molecule index |
| void molecules_container_t::clear_non_drawn_bonds | ( | int | imol | ) |
Clear the set of non-drawn atoms (so that they can be displayed again)
| imol | is the model molecule index |
| void molecules_container_t::clear_refinement | ( | int | imol | ) |
Call this after molecule refinement has finished (say when the molecule molecule is accepted into the original molecule)
| imol | is the model molecule index |
| void molecules_container_t::clear_target_position_restraint | ( | int | imol, |
| const std::string & | atom_cid ) |
Clear target_position restraint
| imol | is the model molecule index |
| atom_cid | is the selection CID e.g "//A/15/OH" (atom OH of residue 15 of chain A) |
| void molecules_container_t::clear_target_position_restraints | ( | int | imol | ) |
Clear any and all drag-atom target position restraints
| imol | is the model molecule index |
| int molecules_container_t::close_molecule | ( | int | imol | ) |
Close the molecule (and delete dynamically allocated memory)
| imol | is the model molecule index |
| int molecules_container_t::connect_updating_maps | ( | int | imol_model, |
| int | imol_with_data_info_attached, | ||
| int | imol_map_2fofc, | ||
| int | imol_map_fofc ) |
Connect updating maps
Reset the rail_points (calls "reset_the_rail_points()"), updates the maps (using internal/clipper SFC). Update your contour lines meshes after calling this function.
| imol_model | is the model molecule index |
| imol_with_data_info_attached | is the map index with the data have been attached by the previous function (associate_data_mtz_file_with_map) |
| imol_map_2fofc | is the map molecule index of the 2FO-FC map |
| imol_map_fofc | is the map molecule index of the FO-FC map |
| coot::instanced_mesh_t molecules_container_t::contact_dots_for_ligand | ( | int | imol, |
| const std::string & | cid, | ||
| unsigned int | smoothness_factor ) const |
Contact dots for ligand
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| smoothness_factor | is 1, 2 or 3 (3 is the most smooth). Recently added (20230202) |
| bool molecules_container_t::contains_unsaved_models | ( | ) | const |
Check if there are unsaved changes for this model
e.g. as yet not written to disk
| bool molecules_container_t::copy_dictionary | ( | const std::string & | monomer_name, |
| int | imol_current, | ||
| int | imol_new ) |
Copy the dictionary that is specific for imol_current so that it can be used with a new molecule
| monomer_name | is the 3 letter code of the monomer in the dictionary, e.g. "ALA" for alanine |
| imol_current | is the model molecule index with the dictionary to be copied from |
| imol_new | is the model molecule index the dictionary will be copied into |
| int molecules_container_t::copy_fragment_for_refinement_using_cid | ( | int | imol, |
| const std::string & | multi_cid ) |
Copy a fragment given the multi_cid selection string for refinement
Use this in preference to copy_fragment_using_cid when copying a molecule fragment to make a molten zone for refinement. That is because this version quietly also copies the residues near the residues of the selection, so that those residues can be used for links and non-bonded contact restraints.
| imol | is the model molecule index |
| multi_cids | is a "||"-separated list of residues CIDs, e.g. "//A/12-52||//A/14-15||//B/56-66" |
| int molecules_container_t::copy_fragment_using_cid | ( | int | imol, |
| const std::string & | multi_cid ) |
Copy a fragment given the multi_cid selection string
| imol | is the model molecule index |
| multi_cids | is a "||"-separated list of residues CIDs, e.g. "//A/12-52||//A/14-15||/B/56-66" |
| int molecules_container_t::copy_fragment_using_residue_range | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no_start, | ||
| int | res_no_end ) |
Copy a residue-range fragment
| imol | is the model molecule index |
| chain_id | e.g. "A" |
| res_no_start | the starting residue number |
| res_no_ref_end | the ending residue number |
| int molecules_container_t::copy_molecule | ( | int | imol | ) |
Copy the molecule
| imol | the specified molecule |
| void molecules_container_t::create_empty_molecules | ( | unsigned int | n_empty | ) |
Add a number of empty molecules to the internal vector/list of molecules
Note this is not like STL reserve as it will increase the molecule index of the next added molecule by n_empty.
| n_empty | the number of empty molecules to create |
| int molecules_container_t::dedust_map | ( | int | imol | ) |
dedust map
| imol_map | the map molecule index |
| bool molecules_container_t::delete_all_carbohydrate | ( | int | imol | ) |
delete all carbohydrate
| imol | is the model molecule index |
| std::pair< int, unsigned int > molecules_container_t::delete_atom | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code, | ||
| const std::string & | atom_name, | ||
| const std::string & | alt_conf ) |
Delete atom
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| atom_name | is the name of the atom, e.g. "OH" |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| std::pair< int, unsigned int > molecules_container_t::delete_atom_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Delete atom using cid
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15/OH" (atom OH in residue 15 of chain A) |
| std::pair< int, unsigned int > molecules_container_t::delete_chain_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Delete chain using chain cid
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A" (chain A), "//*" (all chains) |
| void molecules_container_t::delete_colour_rules | ( | int | imol | ) |
Delete the colour rules for the given molecule
| imol | is the model molecule index |
| int molecules_container_t::delete_hydrogen_atoms | ( | int | imol_model | ) |
Delete hydrogen atoms
| imol_model | is the model molecule index |
| std::pair< int, unsigned int > molecules_container_t::delete_literal_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Delete the atoms specified in the cid selection
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15/OH" (atom OH in residue 15) |
| std::pair< int, unsigned int > molecules_container_t::delete_residue | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) |
Delete residue
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| std::pair< int, unsigned int > molecules_container_t::delete_residue_atoms_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Delete residue atoms using cid
This is the same as delete_atom_using_cid. It will be deleted in the future
| std::pair< int, unsigned int > molecules_container_t::delete_residue_atoms_with_alt_conf | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code, | ||
| const std::string & | alt_conf ) |
Delete residue atoms using alt_conf
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| std::pair< int, unsigned int > molecules_container_t::delete_residue_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Delete residue using cid
| imol | is the model molecule index |
| cid | is the residue selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| std::pair< int, unsigned int > molecules_container_t::delete_side_chain | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) |
Delete side chain
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| std::pair< int, unsigned int > molecules_container_t::delete_side_chain_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Delete side chain using cid
| imol | is the model molecule index |
| cid | is the residue selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| std::pair< int, unsigned int > molecules_container_t::delete_using_cid | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | scope ) |
Delete item
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| scope | is one of the strings: ["ATOM", "WATER", "RESIDUE"," CHAIN"," MOLECULE", "LITERAL"] |
| coot::validation_information_t molecules_container_t::density_correlation_analysis | ( | int | imol_model, |
| int | imol_map ) const |
Get the density correlation validation information
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
validation_information_t | coot::validation_information_t molecules_container_t::density_fit_analysis | ( | int | imol_model, |
| int | imol_map ) const |
Density fit validation information.
This function returns the sum of the densiy of the atoms in the residue
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
validation_information_t | std::map< std::string, std::string > molecules_container_t::dictionary_atom_name_map | ( | const std::string & | comp_id_1, |
| int | imol_1, | ||
| const std::string & | comp_id_2, | ||
| int | imol_2 ) |
Match atom between 2 dictionaries
| comp_id_1 | is the 3-letter code for the residue/ligand in the first model, e.g. "ALA" for alanine |
| imol_1 | is the model molecule index of the first model |
| comp_id_2 | is the 3-letter code for the residue/ligand in the second model, e.g. "ALA" for alanine |
| imol_2 | is the model molecule index of the second model |
| std::vector< coot::molecule_t::interesting_place_t > molecules_container_t::difference_map_peaks | ( | int | imol_map, |
| int | imol_protein, | ||
| float | n_rmsd ) const |
Get difference map peaks
| imol_map | is the map molecule index |
| imol_protein | is the model molecule index |
| n_rmsd | number of sd, e.g. 4.8 |
validation_information_t | void molecules_container_t::eigen_flip_ligand | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) |
Eigen-flip the specified ligand
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| void molecules_container_t::eigen_flip_ligand_using_cid | ( | int | imol, |
| const std::string & | residue_cid ) |
Eigen-flip ligand using cid
| imol | is the model molecule index |
| residue_cid | is the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| void molecules_container_t::end_delete_closed_molecules | ( | ) |
Delete the most recent/last closed molecule in the molecule vector, until the first non-closed molecule is found (working from the end)
| void molecules_container_t::export_chemical_features_as_gltf | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | file_name ) const |
export chemical features for the specified residue
| void molecules_container_t::export_map_molecule_as_gltf | ( | int | imol, |
| float | pos_x, | ||
| float | pos_y, | ||
| float | pos_z, | ||
| float | radius, | ||
| float | contour_level, | ||
| const std::string & | file_name ) |
Export map molecule as glTF file
glTF files can be imported into Blender or other 3D graphics applications
| imol | is the model molecule index |
| x | x of the center of the screen |
| y | y of the center of the screen |
| z | z of the center of the screen |
| radius | e.g. 12.0 for X-ray map and 100.0 for Cryo-EM map |
| contour_level | e.g. 1.5 sd for X-ray, 5.0 sd for cryo-EM |
| file_name | extension should be .glb |
| void molecules_container_t::export_model_molecule_as_gltf | ( | int | imol, |
| const std::string & | selection_cid, | ||
| const std::string & | mode, | ||
| bool | against_a_dark_background, | ||
| float | bonds_width, | ||
| float | atom_radius_to_bond_width_ratio, | ||
| int | smoothness_factor, | ||
| bool | draw_hydrogen_atoms_flag, | ||
| bool | draw_missing_residue_loops, | ||
| const std::string & | file_name ) |
Export model molecule as glTF file
glTF files can be imported into Blender or other 3D graphics applications
Same parameters as the get_bonds_mesh function. draw_hydrogen_atoms_flag and draw_missing_residue_loops are typically False. This API will change - we want to specify surfaces and ribbons too.
| void molecules_container_t::export_molecular_representation_as_gltf | ( | int | imol, |
| const std::string & | atom_selection_cid, | ||
| const std::string & | colour_scheme, | ||
| const std::string & | style, | ||
| int | secondary_structure_usage_flag, | ||
| const std::string & | file_name ) |
Export molecular representation as glTF file
glTF files can be imported into Blender
| imol | is the model molecule index |
| atom_selection_cid | : e.g "//A/15" (all the atoms in residue 15 of chain A) |
| colour_scheme | is one of "colorRampChainsScheme", "colorBySecondaryScheme", "Chain" |
| style | "Ribbon" or "MolecularSurface" |
| secondary_structure_usage_flag | 0 (USE_HEADER), 1 (DONT_USE) or 2 (CALC_SECONDARY_STRUCTURE) |
| file_name | of the glTF (the file will be compressed, so choose ".glb" as the extension) |
| std::string molecules_container_t::file_name_to_string | ( | const std::string & | file_name | ) | const |
File name to string
| file_name | is the name of the given file |
| int molecules_container_t::fill_partial_residue | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) |
Fill the specified residue
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| int molecules_container_t::fill_partial_residue_using_cid | ( | int | imol, |
| const std::string & | cid ) |
Fill the specified residue using cid
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 in chain A) |
| int molecules_container_t::fill_partial_residues | ( | int | imol | ) |
Fill all the the partially-filled residues in the molecule
| imol | is the model molecule index |
| std::vector< coot::atom_spec_t > molecules_container_t::find_water_baddies | ( | int | imol_model, |
| int | imol_map, | ||
| float | b_factor_lim, | ||
| float | outlier_sigma_level, | ||
| float | min_dist, | ||
| float | max_dist, | ||
| bool | ignore_part_occ_contact_flag, | ||
| bool | ignore_zero_occ_flag ) |
Check waters, using implicit logical OR
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
| b_factor_lim | typical value is 60.0 |
| outlier_sigma_level | typical value is 0.8 |
| min_dist | typical value is 2.3 |
| max_dist | typical value is 3.5 |
| ignore_part_occ_contact_flag | typical value is False |
| ignore_zero_occ_flag | typical value is False |
| std::vector< fit_ligand_info_t > molecules_container_t::fit_ligand | ( | int | imol_protein, |
| int | imol_map, | ||
| int | imol_ligand, | ||
| float | n_rmsd, | ||
| bool | use_conformers, | ||
| unsigned int | n_conformers ) |
Fit ligand
| imol_protein | is the model molecule index |
| imol_map | is the map molecule index |
| imol_ligand | is the ligand molecule index |
| n_rmsd | the number of sd used as a cut-off for the map level when finding clusters, e.g. 1.2 |
| use_conformers | is True for flexible ligands |
| n_conformers | set the number of conformers |
| std::vector< fit_ligand_info_t > molecules_container_t::fit_ligand_multi_ligand | ( | int | imol_protein, |
| int | imol_map, | ||
| const std::string & | multi_ligand_molecule_number_list, | ||
| float | n_rmsd, | ||
| bool | use_conformers, | ||
| unsigned int | n_conformers ) |
Fit multiple ligands (place-holder)
| imol_protein | is the model molecule index |
| imol_map | is the map molecule index |
| multi_ligand_molecule_number_list | is a colon-separated list of molecules, e.g. "2:3:4" |
| n_rmsd | is number of sd, e.g. 4.8 |
| use_conformers | is True for flexible ligands |
| n_conformers | set the number of conformers |
| std::vector< int > molecules_container_t::fit_ligand_right_here | ( | int | imol_protein, |
| int | imol_map, | ||
| int | imol_ligand, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | n_rmsd, | ||
| bool | use_conformers, | ||
| unsigned int | n_conformers ) |
Fit the ligand at specified position. You can expect this to take about 20 seconds. For trivial (i.e non-flexible) ligands you should instead use the jiggle-fit algorithm, which takes a fraction of a second. (That is the algorithm used for "Add Other Solvent Molecules" in Coot.)
| imol_protein | is the model molecule index |
| imol_map | is the map molecule index |
| imol_ligand | is the ligand molecule index |
| x | is the x position of the blob |
| y | is the y position of the blob |
| z | is the z position of the blob |
| n_rmsd | number of sd, e.g. 4.8 |
| use_conformers | is True for flexible ligands |
| n_conformers | set the number of conformers |
| float molecules_container_t::fit_to_map_by_random_jiggle | ( | int | imol, |
| const coot::residue_spec_t & | res_spec, | ||
| int | n_trials, | ||
| float | translation_scale_factor ) |
Jiggle-Fit Ligand
| imol | is the model molecule index |
| res_spec | is the residue specifier, e.g. residue_spec_t("A", 10, "") |
| n_trials | is the number of trials, if n_trials is 0, then a sensible default value will be used. |
| translation_scale_factor | if is negative then a sensible default value will be used. |
| float molecules_container_t::fit_to_map_by_random_jiggle_using_cid | ( | int | imol, |
| const std::string & | cid, | ||
| int | n_trials, | ||
| float | translation_scale_factor ) |
Jiggle-Fit Ligand using cid
| imol | is the model molecule index |
| cid | is the selection CID, e.g "//A/15" (ligand 15 of chain A) |
| n_trials | is the number of trials, if n_trials is 0, then a sensible default value will be used. |
| translation_scale_factor | if is negative then a sensible default value will be used. |
| float molecules_container_t::fit_to_map_by_random_jiggle_with_blur_using_cid | ( | int | imol, |
| int | imol_map, | ||
| const std::string & | cid, | ||
| float | b_factor, | ||
| int | n_trials, | ||
| float | translation_scale_factor ) |
Jiggle-Fit an atom selection, typically a whole molecule or a chain
| imol | is the model molecule index |
| cid | is the selection CID, e.g. "//A" (chain A) |
| b_factor | e.g. 100.0 |
| n_trials | is the number of trials, if n_trials is 0, then a sensible default value will be used. |
| translation_scale_factor | if is negative then a sensible default value will be used. |
| void molecules_container_t::fix_atom_selection_during_refinement | ( | int | imol, |
| const std::string & | atom_selection_cid ) |
Fix atoms during refinement
Does nothing at the moment
| imol | is the model molecule index |
| atom_selection_cid | is the selection CID e.g "//A/15/OH" (atom OH of residue 15 of chain A) |
| int molecules_container_t::flip_hand | ( | int | imol_map | ) |
Generate a new map which is the hand-flipped version of the input map
| imol_map | is the map molecule index |
| int molecules_container_t::flip_peptide_using_cid | ( | int | imol, |
| const std::string & | atom_cid, | ||
| const std::string & | alt_conf ) |
Flip peptide using cid
| imol | is the model molecule index |
| atom_cid | is the atom selection CID e.g "//A/15/OH" (atom OH in residue 15 of chain A) |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| int molecules_container_t::flood | ( | int | imol_model, |
| int | imol_map, | ||
| float | n_rmsd ) |
Flood with dummy atoms
| imol | is the model molecule index |
| imol_map | is the map molecule index |
| n_rmsd | e.g., 4.0 |
| std::vector< std::pair< double, double > > molecules_container_t::fourier_shell_correlation | ( | int | imol_map_1, |
| int | imol_map_2 ) const |
Fourier Shell Correlation (FSC) between maps
| imol_map_1 | is the first map molecule index |
| imol_map_2 | is the second map molecule index |
| void molecules_container_t::generate_chain_self_restraints | ( | int | imol, |
| float | local_dist_max, | ||
| const std::string & | chain_id ) |
Generate GM self restraints for the given chain
| imol | is the model molecule index |
| local_dist_max | is the maximum distance, e.g. 4.6 |
| chain_id | e.g. "A" for chain A |
| void molecules_container_t::generate_local_self_restraints | ( | int | imol, |
| float | local_dist_max, | ||
| const std::string & | residue_cids ) |
Generate GM self restraints for the given residues
| imol | is the model molecule index |
| local_dist_max | is the maximum distance, e.g. 4.6 |
| residue_cids | is a "||"-separated list of residues, e.g. "//A/12||//A/14||//B/56" |
| int molecules_container_t::generate_self_restraints | ( | int | imol, |
| float | local_dist_max ) |
Generate GM self restraints for the whole molecule
| imol | is the model molecule index |
| local_dist_max | is the maximum distance, e.g. 4.6 |
| std::vector< std::pair< std::string, std::string > > molecules_container_t::get_acedrg_atom_types | ( | const std::string & | compound_id, |
| int | imol_enc ) const |
Get a list of atom names and their associated AceDRG atom types
| compound_id | is the 3-letter code for the residue/ligand in the first model, e.g. "TYR" for tyrosine |
| imol_enc | is the molecule index for the residue type/compound_id |
| coot::acedrg_types_for_residue_t molecules_container_t::get_acedrg_atom_types_for_ligand | ( | int | imol, |
| const std::string & | residue_cid ) const |
Get AceDRG atom types for ligand bonds
| imol | is the model molecule index |
| residue_cid | is the atom selection CID e.g "//A/15" (residue 15 of chain A) |
coot::acedrg_types_for_residue_t - which contains a vector/list of bond descriptions. | std::pair< int, std::string > molecules_container_t::get_active_atom | ( | float | x, |
| float | y, | ||
| float | z, | ||
| const std::string & | displayed_model_molecules_list ) const |
Get the active atom given the screen centre
| x | is x position of the centre of the screen |
| y | is y position of the centre of the screen |
| z | is z position of the centre of the screen |
| displayed_model_molecules_list | is a colon-separated list of molecules, (e.g. "2:3:4") |
| std::vector< positioned_atom_spec_t > molecules_container_t::get_atom_differences | ( | int | imol1, |
| int | imol2 ) |
Get the atom differences between two molecules typically after refinement
| imol1 | is the first model molecule index |
| imol2 | is the second model molecule index |
positioned_atom_spec_t | float molecules_container_t::get_atom_overlap_score | ( | int | imol | ) |
Get the atom overlap score
| imol | the model molecule index |
| std::vector< coot::plain_atom_overlap_t > molecules_container_t::get_atom_overlaps | ( | int | imol | ) |
Get Atom Overlaps.
This function used to be called get_overlaps()
| imol | is the model molecule index |
| mmdb::Atom * molecules_container_t::get_atom_using_cid | ( | int | imol, |
| const std::string & | cid ) const |
get an (mmdb-style) atom
If more than one atom is selected by the selection cid, then the first atom is returned.
Don't use this in emscript.
| imol | is the model molecule index |
| cid | is the coordinate-id for the atom. |
| coot::simple_mesh_t molecules_container_t::get_bonds_mesh | ( | int | imol, |
| const std::string & | mode, | ||
| bool | against_a_dark_background, | ||
| float | bond_width, | ||
| float | atom_radius_to_bond_width_ratio, | ||
| int | smoothness_factor ) |
Get the bonds mesh
| mode | is "COLOUR-BY-CHAIN-AND-DICTIONARY", "CA+LIGANDS" or "VDW-BALLS" |
| against_a_dark_background | allows the bond colours to be relevant for the background. When the background is dark, the colours should (as a rule) be bright and pastelly. When the background is light/white, the colour are darker and more saturated. |
| smoothness_factor | controls the number of triangles used to make the bond cylinders and spheres for the atoms - it rises in powers of 4. 1 is the smallest smoothness_factor, 2 looks nice and 3 is best. |
| bond_width | is the bond width in Angstroms. 0.12 is a reasonable default value. |
| atom_radius_to_bond_width_ratio | allows the representation of "ball and stick". To do so use a value between 1.5 and 3.0. The ratio for "liquorice" representation is 1.0. |
simple_mesh_t | coot::instanced_mesh_t molecules_container_t::get_bonds_mesh_for_selection_instanced | ( | int | imol, |
| const std::string & | atom_selection_cid, | ||
| const std::string & | mode, | ||
| bool | against_a_dark_background, | ||
| float | bond_width, | ||
| float | atom_radius_to_bond_width_ratio, | ||
| bool | show_atoms_as_aniso_flag, | ||
| bool | show_aniso_atoms_as_ortep_flag, | ||
| bool | draw_hydrogen_atoms_flag, | ||
| int | smoothness_factor ) |
As get_bonds_mesh_instanced above, but only return the bonds for the atom selection. Typically one would call this with a wider bond width than one would use for standards atoms (all molecule)
| atom_selection_cid | e.g. "//A/15" (all the atoms in residue 15 of chain A) |
instanced_mesh_t | coot::instanced_mesh_t molecules_container_t::get_bonds_mesh_instanced | ( | int | imol, |
| const std::string & | mode, | ||
| bool | against_a_dark_background, | ||
| float | bond_width, | ||
| float | atom_radius_to_bond_width_ratio, | ||
| bool | show_atoms_as_aniso_flag, | ||
| bool | show_aniso_atoms_as_ortep_flag, | ||
| bool | draw_hydrogen_atoms_flag, | ||
| int | smoothness_factor ) |
Get the instanced bonds mesh.
| mode | is "COLOUR-BY-CHAIN-AND-DICTIONARY" - more modes to follow |
| against_a_dark_background | allows the bond colours to be relevant for the background. When the background is dark, the colours should (as a rule) be bright and pastelly. When the background is light/white, the colour are darker and more saturated. |
| bond_width | is the bond width in Angstroms. 0.12 is a reasonable default value. |
| atom_radius_to_bond_width_ratio | allows the representation of "ball and stick". To do so use a value between 1.5 and 3.0. The ratio for "liquorice" representation is 1.0. |
| show_atoms_as_aniso_flag | if true, if possible, show the atoms with thermal ellipsoids. |
| show_aniso_atoms_as_ortep_flag | if true, show any anisotropic atoms with ortep style. |
| draw_hydrogen_atoms_flag | if true, bonds to hydrogen atoms should be added. |
| smoothness_factor | controls the number of triangles used to make the bond cylinders and spheres for the atoms - it rises in powers of 4. 1 is the smallest smoothness_factor, 2 looks nice and 3 is best. Instancing may mean that smoothness factor 3 should be used by default. |
instanced_mesh_t | ::api::cell_t molecules_container_t::get_cell | ( | int | imol | ) | const |
Get the cell
Check that is_set is true before use.
| imol | is the model molecule index |
cell_t | std::vector< std::string > molecules_container_t::get_chains_in_model | ( | int | imol | ) | const |
Get the chain IDs in the given molecule
| imol | is the model molecule index |
| coot::simple_mesh_t molecules_container_t::get_chemical_features_mesh | ( | int | imol, |
| const std::string & | cid ) const |
Get chemical features for the specified residue
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
simple_mesh_t | std::string molecules_container_t::get_cif_file_name | ( | const std::string & | comp_id, |
| int | imol_enc ) const |
Get the cif file name
| comp_id | is the 3-letter code for the residue/ligand, e.g. "ALA" for alanine |
| imol_enc | is the molecule index for the residue type/compound_id |
| std::string molecules_container_t::get_cif_restraints_as_string | ( | const std::string & | comp_id, |
| int | imol_enc ) const |
Get the cif restraints as a string
| comp_id | is the 3-letter code for the residue/ligand, e.g. "ALA" for alanine |
| imol_enc | is the molecule index for the residue type/compound_id |
| std::vector< std::pair< std::string, std::string > > molecules_container_t::get_colour_rules | ( | int | imol | ) | const |
Get the colour rules
| imol | is the model molecule index |
| std::vector< glm::vec4 > molecules_container_t::get_colour_table | ( | int | imol, |
| bool | against_a_dark_background ) const |
Get colour table (for testing)
| imol | is the model molecule index |
| against_a_dark_background | allows the bond colours to be relevant for the background. |
|
inline |
Testing function
get the time for contouring in milliseconds
| std::string molecules_container_t::get_data_set_file_name | ( | int | imol | ) | const |
Get the stored data set file name
| imol | is the model molecule index |
| float molecules_container_t::get_density_at_position | ( | int | imol_map, |
| float | x, | ||
| float | y, | ||
| float | z ) const |
Get density at position
| imol_map | is the map molecule index |
| x | is the x coordinate of the target position |
| y | is the y coordinate of the target position |
| z | is the z coordinate of the target position |
| std::vector< int > molecules_container_t::get_dictionary_conformers | ( | const std::string & | comp_id, |
| int | imol_enc, | ||
| bool | remove_internal_clash_conformers ) |
Get the conformers that can be generated by variation around rotatable bonds as described in the dictionary.
Torsions that are marked as "const" are excluded from the variation, as are pyranose ring torsions and torsions that rotate hydrogen atoms
| comp_id | is the 3-letter code for the residue/ligand, e.g. "ALA" for alanine |
| imol_enc | is the molecule index for the residue type/compound_id |
| remove_internal_clash_conformers | is the flag for removing internal clash |
| std::vector< std::pair< clipper::Coord_orth, float > > molecules_container_t::get_diff_diff_map_peaks | ( | int | imol_diff_map, |
| float | screen_centre_x, | ||
| float | screen_centre_y, | ||
| float | screen_centre_z ) const |
| imol_diff_map | is the map molecule index of the difference map |
| screen_centre_x | is the position x of the center of the screen |
| screen_centre_y | is the position y of the center of the screen |
| screen_centre_z | is the position z of the center of the screen |
| std::vector< coot::atom_distance_t > molecules_container_t::get_distances_between_atoms_of_residues | ( | int | imol, |
| const std::string & | cid_res_1, | ||
| const std::string & | cid_res_2, | ||
| float | dist_max ) const |
Get atom distances
| imol | is the model molecule index |
| cid_res_1 | is the first atom selection CID e.g "//A/15/OH" (atom OH in residue 15 of chain A) |
| cid_res_2 | is the second atom selection CID e.g "//A/17/NH" (atom NH in residue 17 of chain A) |
| dist | is the distance in Angstrom |
| std::vector< double > molecules_container_t::get_eigenvalues | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) |
Get the eigenvalues of the specified residue
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| coot::instanced_mesh_t molecules_container_t::get_extra_restraints_mesh | ( | int | imol, |
| int | mode ) |
Get the mesh for extra restraints
| imol | is the model molecule index |
| mode | is currently unused |
| coot::simple_mesh_t molecules_container_t::get_gaussian_surface | ( | int | imol, |
| float | sigma, | ||
| float | contour_level, | ||
| float | box_radius, | ||
| float | grid_scale, | ||
| float | b_factor ) const |
Get a Gaussian surface representation
| imol | is the model molecule index |
| sigma | default 4.4 |
| contour_level | default 4.0 |
| box_radius | default 5.0 |
| grid_scale | default 0.7 |
| b_factor | default 100.0 (use 0.0 for no FFT-B-factor smoothing) |
simple_mesh_t composed of a number of Gaussian surfaces (one for each chain)
|
inline |
Get the refinement Geman-McClure alpha
| coot::instanced_mesh_t molecules_container_t::get_goodsell_style_mesh_instanced | ( | int | imol, |
| float | colour_wheel_rotation_step, | ||
| float | saturation, | ||
| float | goodselliness ) |
Get the Goodsell style mesh
| colour_wheel_rotation_step' | the amount, in degrees, that the colour wheel advances between different chains. 97 degrees is a reasonable starting value |
| saturation' | a number between 0 and 1, where 0 is grey and 1 is "lego-like" colour scheme. 0.5 is a nice middle value |
| goodselliness | is the degree to which the C-atoms are desaturated, 0.3 is a reasonable value |
instanced_mesh_t | std::vector< std::pair< std::string, std::string > > molecules_container_t::get_gphl_chem_comp_info | ( | const std::string & | compound_id, |
| int | imol_enc ) |
Get the GPhL extra restraint information (from the input cif file)
| compound_id | is the 3-letter code for the residue/ligand in the first model, e.g. "TYR" for tyrosine |
| imol_enc | is the molecule index for the residue type/compound_id |
| std::string molecules_container_t::get_group_for_monomer | ( | const std::string & | residue_name | ) | const |
Get the group for a particular monomer
e.g. "NON POLYMER", "PEPTIDE", etc
| residue_name | is the is the 3-letter code for the residue, e.g. "ALA" for alanine |
| std::vector< std::string > molecules_container_t::get_groups_for_monomers | ( | const std::vector< std::string > & | residue_names | ) | const |
Get the groups for a vector/list of monomers
e.g. "NON POLYMER", "PEPTIDE", etc
| residue_names | is a list of residue names, e.g. ["ALA", "TRP"] |
| std::vector< moorhen::h_bond > molecules_container_t::get_h_bonds | ( | int | imol, |
| const std::string & | cid_str, | ||
| bool | mcdonald_and_thornton_mode ) const |
Get hydrogen bonds
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| mcdonald_and_thornton_mode | turns on the McDonald & Thornton algorithm - using explicit hydrogen atoms |
| std::string molecules_container_t::get_hb_type | ( | const std::string & | compound_id, |
| int | imol_enc, | ||
| const std::string & | atom_name ) const |
Get the hydrogen bond type of a particular atom in a given residue type
| compound_id | is the 3-letter code for the residue/ligand in the first model, e.g. "TYR" for tyrosine |
| imol_enc | is the molecule index for the residue type/compound_id |
| atom_name | is the name of the atom, e.g. "OH" |
| moorhen::header_info_t molecules_container_t::get_header_info | ( | int | imol | ) | const |
Get header info
(the header info is sparce at the moment)
| imol | is the model molecule index |
| coot::instanced_mesh_t molecules_container_t::get_HOLE | ( | int | imol, |
| float | start_pos_x, | ||
| float | start_pos_y, | ||
| float | start_pos_z, | ||
| float | end_pos_x, | ||
| float | end_pos_y, | ||
| float | end_pos_z ) const |
Get HOLE
HOLE is a program for the analysis of the pore dimesions of ion channels. See Smart et al., 1996.
| int molecules_container_t::get_imol_enc_any | ( | ) | const |
Get imol_enc_any (enc: encoded)
imol_enc_any refers to the molecule number for dictionary that can be used with any molecule
imol_enc_any | std::vector< coot::molecule_t::interesting_place_t > molecules_container_t::get_interesting_places | ( | int | imol, |
| const std::string & | mode ) const |
Get interesting places
This function does not work yet
validation_information_t
|
inline |
Get the latest sfcalc stats
| std::pair< int, double > molecules_container_t::get_ligand_distortion | ( | int | imol, |
| const std::string & | ligand_cid, | ||
| bool | include_non_bonded_contacts ) |
Get ligand distortion
a more simple interface to the above
| imol | is the model molecule index |
| selection_cid | is the selection CID e.g "//A/15-23" |
| include_non_bonded_contacts | is the flag to include non bonded contacts |
| std::vector< coot::geometry_distortion_info_container_t > molecules_container_t::get_ligand_validation_vs_dictionary | ( | int | imol, |
| const std::string & | ligand_cid, | ||
| bool | include_non_bonded_contacts ) |
Ligand validation
| imol | is the model molecule index |
| ligand_cid | is the ligand selection CID e.g "//A/15" (ligand 15 of chain A) |
| include_non_bonded_contacts | is the flag to include non bonded contacts |
| lsq_results_t molecules_container_t::get_lsq_matrix | ( | int | imol_ref, |
| int | imol_mov, | ||
| bool | summary_to_screen ) const |
Get LSQ matrix
don't apply it to the coordinates
| imol_ref | the reference model molecule index |
| imol_mov | the moving model molecule index |
| summary_to_screen | if True, write a summary of the statistics to the output |
|
inline |
Get the state of the backups
| coot::simple_mesh_t molecules_container_t::get_map_contours_mesh | ( | int | imol, |
| double | position_x, | ||
| double | position_y, | ||
| double | position_z, | ||
| float | radius, | ||
| float | contour_level ) |
Get the mesh for the map contours
This function is not const because the internal state of a coot_molecule_t is changed.
| imol | is the model molecule index |
| position_x | is the x coordinate of the target position |
| position_y | is the y coordinate of the target position |
| position_z | is the z coordinate of the target position |
| radius | is the radius of the map, e.g. 12.0 for X-ray map and 100.0 for Cryo-EM map |
| contour_level | e.g. 1.5 sd for X-ray, 5.0 sd for cryo-EM |
simple_mesh_t for the map contours of the specified map | coot::simple_mesh_t molecules_container_t::get_map_contours_mesh_using_other_map_for_colours | ( | int | imol_ref, |
| int | imol_map_for_colouring, | ||
| double | position_x, | ||
| double | position_y, | ||
| double | position_z, | ||
| float | radius, | ||
| float | contour_level, | ||
| float | other_map_for_colouring_min_value, | ||
| float | other_map_for_colouring_max_value, | ||
| bool | invert_colour_ramp ) |
Get the mesh for the map contours using another map for colouring
| imol_ref | is the reference map index |
| imol_map_for_coloring | is the target map index |
| position_x | is the x coordinate of the target position |
| position_y | is the y coordinate of the target position |
| position_z | is the z coordinate of the target position |
| radius | is the radius of the map, e.g. 12.0 for X-ray map and 100.0 for Cryo-EM map |
| contour_level | e.g. 1.5 sd for X-ray, 5.0 sd for cryo-EM |
| other_map_for_colouring_min_value | e.g. -1.0 in the case of correlation map |
| other_map_for_colouring_max_value | e.g. 1.0 in the case of correlation map |
| invert_colour_ramp | e.g. red to blue rather than blue to red |
simple_mesh_t for the map contours of the specified map | coot::molecule_t::histogram_info_t molecules_container_t::get_map_histogram | ( | int | imol, |
| unsigned int | n_bins, | ||
| float | zoom_factor ) const |
Get map histogram
| imol | is the map molecule index |
| n_bins | is the number of bins - 200 is a reasonable default. |
| zoom_factor | (reduces the range by the given factor) centred around the median (typically 1.0 but usefully can vary until ~20.0). |
| float molecules_container_t::get_map_mean | ( | int | imol | ) | const |
Get map mean
| imol | is the map molecule index |
| coot::util::map_molecule_centre_info_t molecules_container_t::get_map_molecule_centre | ( | int | imol | ) | const |
Get the middle of the "molecule blob" in cryo-EM reconstruction maps
| imol | is the map molecule index |
| float molecules_container_t::get_map_rmsd_approx | ( | int | imol_map | ) | const |
Get map rmsd approx
the function is approximate because the epsilon factor is not taken into account
| imol_map | is the map molecule index |
|
inline |
Get map sampling rate
| texture_as_floats_t molecules_container_t::get_map_section_texture | ( | int | imol, |
| int | section_id, | ||
| int | axis, | ||
| float | data_value_for_bottom, | ||
| float | data_value_for_top ) const |
| imol | is the map molecule index |
| section_id | e.g. 2 |
| axis | e.g. 0 for X-axis, 1 for Y-axis, 2 for Z-axis |
The new arguments, data_value_for_bottom, data_value_for_top should be pre-calculated (don't calculate them for every call to this function).
| coot::molecule_t::histogram_info_t molecules_container_t::get_map_vertices_histogram | ( | int | imol, |
| int | imol_map_for_sampling, | ||
| double | position_x, | ||
| double | position_y, | ||
| double | position_z, | ||
| float | radius, | ||
| float | contour_level, | ||
| unsigned int | n_bins ) |
Get map vertices histogram
Note not const because get_map_contours_mesh() is not const
| imol | is the map molecule index |
| n_bins | is the number of bins - 40 is a reasonable default. |
|
inline |
Get the map weight
| std::pair< float, float > molecules_container_t::get_mean_and_variance_of_density_for_non_water_atoms | ( | int | imol_coords, |
| int | imol_map ) const |
get mean and variance of map at non-waters
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
| float molecules_container_t::get_median_temperature_factor | ( | int | imol | ) | const |
Get the median temperature factor for the model
| imol | is the model molecule index |
| coot::simple_mesh_t molecules_container_t::get_mesh_for_ligand_validation_vs_dictionary | ( | int | imol, |
| const std::string & | ligand_cid ) |
Get the mesh for ligand validation vs dictionary, coloured by badness
Greater then 3 standard deviations is fully red. Less than 0.5 standard deviations is fully green
| imol | is the model molecule index |
| ligand_cid | is the ligand selection CID e.g "//A/15" (ligand 15 of chain A) |
| std::vector< coot::residue_range_t > molecules_container_t::get_missing_residue_ranges | ( | int | imol | ) | const |
Get missing residue ranges
| imol | is the model molecule index |
| std::pair< std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t >, std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t > > molecules_container_t::get_mmrrcc | ( | int | imol, |
| const std::string & | chain_id, | ||
| unsigned int | n_residue_per_residue_range, | ||
| int | imol_map ) const |
Calculate the MMRRCC for the residues in the chain
Multi Masked Residue Range Corellation Coefficient
| imol | is the model molecule index |
| chain_id | is the model chain_id |
| n_residue_per_residue_range | is the number of residues in the residue range. 11 is a reasonable number for a smooth plot |
| imol_map | is the map molecule index |
| coot::simple_mesh_t molecules_container_t::get_molecular_representation_mesh | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | colour_scheme, | ||
| const std::string & | style, | ||
| int | secondary_structure_usage_flag ) |
Get ribbon and molecular surface representation
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| colour_scheme | should be one of "colorRampChainsScheme", "colorBySecondaryScheme", "Chain" |
| style | "Ribbon" or "MolecularSurface" |
| secondary_structure_usage_flag | 0 (USE_HEADER), 1 (DONT_USE) or 2 (CALC_SECONDARY_STRUCTURE). |
simple_mesh_t | coot::Cartesian molecules_container_t::get_molecule_centre | ( | int | imol | ) | const |
Get molecule centre
| imol | is the model molecule index |
| float molecules_container_t::get_molecule_diameter | ( | int | imol | ) | const |
Get molecule diameter
| imol | is the model molecule index |
| std::string molecules_container_t::get_molecule_name | ( | int | imol | ) | const |
Get the molecule name
| imol | is the model molecule index |
| std::string molecules_container_t::get_molecule_selection_as_json | ( | int | imol, |
| const std::string & | cid ) const |
Get atom selection as json
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15/OH" (atom OH in residue 15 of chain A) |
| int molecules_container_t::get_monomer | ( | const std::string & | monomer_name | ) |
Get a monomer
| monomer_name | is the 3-letter code of the monomer in the dictionary, e.g. "ALA" for alanine |
| int molecules_container_t::get_monomer_and_position_at | ( | const std::string & | comp_id, |
| int | imol, | ||
| float | x, | ||
| float | y, | ||
| float | z ) |
Get monomer and place it at the given position for a particular molecule
| comp_id | is the 3-letter code for the residue/ligand, e.g. "ALA" for alanine |
| imol | is the model molecule index, use -999999 (IMOL_ENC_ANY) if no molecule-specific dictionary is needed |
| x | is the x value of the target position |
| y | is the y value of the target position |
| z | is the z value of the target position |
| int molecules_container_t::get_monomer_from_dictionary | ( | const std::string & | comp_id, |
| int | imol, | ||
| bool | idealised_flag ) |
Get a monomer for a particular molecule
| comp_id | is the 3-letter code for the residue/ligand, e.g. "ALA" for alanine |
| imol | is the model molecule index, use -999999 (IMOL_ENC_ANY) if no molecule-specific dictionary is needed |
| idealised_flag | means that the coordinates have been minimised with a molecular modelling minimisation algo, usually the value is True |
| coot::chain_mutation_info_container_t molecules_container_t::get_mutation_info | ( | int | imol | ) | const |
Get mutation information
The reference sequece is that which has been provided using the associate_sequence() function
| imol | is the model molecule index |
| std::vector< std::vector< std::string > > molecules_container_t::get_ncs_related_chains | ( | int | imol | ) | const |
Get the chains that are related by NCS or molecular symmetry
| imol | is the model molecule index |
| std::vector< coot::residue_spec_t > molecules_container_t::get_non_standard_residues_in_molecule | ( | int | imol | ) | const |
Get non-standard residues in a model
| imol | is the model molecule index |
string_user_data data item of the residue specifier | unsigned int molecules_container_t::get_number_of_atoms | ( | int | imol | ) | const |
Get number of atoms
| imol | is the model molecule index |
| int molecules_container_t::get_number_of_atoms_in_residue | ( | int | imol, |
| const std::string & | residue_cid ) const |
get the number of atoms in a given residue
| imol | is the model molecule index |
| residue_cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| int molecules_container_t::get_number_of_hydrogen_atoms | ( | int | imol | ) | const |
Get number of hydrogen atoms
| imol | is the model molecule index |
| int molecules_container_t::get_number_of_map_sections | ( | int | imol_map, |
| int | axis_id ) const |
| imol_map | is the map molecule index |
| axis_id | is 0 for X-axis, 1 for Y-axis, 2 for Z-axis |
|
inline |
Get the number of molecules (either map or model)
| coot::simple_mesh_t molecules_container_t::get_octahemisphere | ( | unsigned int | n_divisions | ) | const |
Get octahemisphere
| n_divisions | is a number divisible by 2, at least 4 (typically 16) |
| coot::atom_overlaps_dots_container_t molecules_container_t::get_overlap_dots | ( | int | imol | ) |
| imol | is the model molecule index |
| coot::atom_overlaps_dots_container_t molecules_container_t::get_overlap_dots_for_ligand | ( | int | imol, |
| const std::string & | cid_ligand ) |
This function not const because it can dynamically add dictionaries
| imol | is the model molecule index |
| cid_ligand | is the ligand selection CID e.g "//A/15" (ligand 15 of chain A) |
| std::vector< coot::plain_atom_overlap_t > molecules_container_t::get_overlaps_for_ligand | ( | int | imol, |
| const std::string & | cid_ligand ) |
Gat Atom Overlaps for a ligand or residue.
| imol | is the model molecule index |
| cid_ligand | is the ligand selection CID e.g "//A/15" (ligand 15 of chain A) |
| std::string molecules_container_t::get_pucker_analysis_info | ( | int | imol | ) | const |
get pucker info
| imol | is the model molecule index |
| coot::validation_information_t molecules_container_t::get_q_score | ( | int | imol_model, |
| int | imol_map ) const |
Get the Q Score (Pintilie et al.)
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
validation_information_t object | coot::validation_information_t molecules_container_t::get_q_score_for_cid | ( | int | imol_model, |
| const std::string & | cid, | ||
| int | imol_map ) const |
Get the Pintile et al. Q Score for a particular residue (typically a ligand)
| cid | If the cid matches more than one residue the score will be returned for all of the residues covered in the cid. Typically, of course the cid will be something like "//A/301". |
validation_information_t object | r_factor_stats molecules_container_t::get_r_factor_stats | ( | ) |
Get the R-factors
r_factor_stats | double molecules_container_t::get_radius_of_gyration | ( | int | imol | ) | const |
Get Radius of Gyration
| imol | is the model molecule index |
|
inline |
Get the Ramachandran plot restraints weight
| coot::simple_mesh_t molecules_container_t::get_ramachandran_validation_markup_mesh | ( | int | imol | ) | const |
Get the Ramachandran validation markup mesh
20221126-PE: the function was renamed from ramachandran_validation_markup_mesh().
| imol | is the model molecule index |
simple_mesh_t | std::string molecules_container_t::get_rdkit_mol_pickle_base64 | ( | const std::string & | residue_name, |
| int | imol_enc ) |
Extract ligand restraints from the dictionary store and make an rdkit molecule Result to be eaten by C++ only.
| residue_name | the residue name |
| imol_enc | the molecule for the ligand (typically is imol_enc_any) |
| residue_name | the residue name |
| imol_enc | the molecule for the ligand (typically is imol_enc_any) |
| std::vector< double > molecules_container_t::get_residue_average_position | ( | int | imol, |
| const std::string & | cid ) const |
Get the average residue position
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| std::vector< double > molecules_container_t::get_residue_CA_position | ( | int | imol, |
| const std::string & | cid ) const |
Get the residue CA position
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| std::string molecules_container_t::get_residue_name | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code ) const |
Get residue name
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| std::vector< std::string > molecules_container_t::get_residue_names_with_no_dictionary | ( | int | imol | ) | const |
Get a list of residues that don't have a dictionary
| imol | is the model molecule index |
| std::vector< double > molecules_container_t::get_residue_sidechain_average_position | ( | int | imol, |
| const std::string & | cid ) const |
Get the average residue side-chain position
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| std::string molecules_container_t::get_residue_type | ( | int | imol, |
| const std::string & | cid ) const |
Get the residue type
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/16" (residue 16 of chain A) |
| mmdb::Residue * molecules_container_t::get_residue_using_cid | ( | int | imol, |
| const std::string & | cid ) const |
get an (mmdb-style) residue
If more than one residue is selected by the selection cid, then the first residue is returned.
Don't use this in emscript.
| imol | is the model molecule index |
| cid | is the coordinate-id for the residue |
| std::vector< coot::residue_spec_t > molecules_container_t::get_residues_near_residue | ( | int | imol, |
| const std::string & | residue_cid, | ||
| float | dist ) const |
Get a list of residues specs that have atoms within distance of the atoms of the specified residue
| imol | is the model molecule index |
| residue_cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| dist | is the distance in Angstrom |
| coot::simple_mesh_t molecules_container_t::get_rotamer_dodecs | ( | int | imol | ) |
Get the rotamer dodecs for the model
| imol | is the model molecule index |
simple_mesh_t | coot::instanced_mesh_t molecules_container_t::get_rotamer_dodecs_instanced | ( | int | imol | ) |
Get the rotamer dodecs for the model instanced
| imol | is the model molecule index |
instanced_mesh_t | std::vector< std::pair< std::string, std::string > > molecules_container_t::get_sequence_info | ( | int | imol | ) | const |
Get the sequence information
| imol | is the molecule index |
| coot::simple::molecule_t molecules_container_t::get_simple_molecule | ( | int | imol, |
| const std::string & | residue_cid, | ||
| bool | draw_hydrogen_atoms_flag ) |
Get a simple molecule
| imol | is the model molecule index |
| residue_cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| draw_hydrogen_atoms_flag | is the flag for drawing H atoms |
| std::vector< std::pair< coot::residue_spec_t, std::string > > molecules_container_t::get_single_letter_codes_for_chain | ( | int | imol, |
| const std::string & | chain_id ) const |
Get the single letter codes for the residues in the specified chain
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| std::string molecules_container_t::get_SMILES_for_residue_type | ( | const std::string & | residue_name, |
| int | imol_enc ) const |
Get the SMILES string for the give residue type
| residue | 3 letter-code/name of the compound-id |
| imol_enc | is the molecule index for the residue type/compound_id |
| float molecules_container_t::get_spherical_variance | ( | int | imol_map, |
| int | imol_model, | ||
| const std::string & | atom_cid, | ||
| float | mean_density_other_atoms ) const |
Get spherical variance - typically for water atoms
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
| float molecules_container_t::get_suggested_initial_contour_level | ( | int | imol | ) | const |
| imol | is the map molecule index |
| double molecules_container_t::get_sum_density_for_atoms_in_residue | ( | int | imol, |
| const std::string & | cid, | ||
| const std::vector< std::string > & | atom_names, | ||
| int | imol_map ) |
| std::string molecules_container_t::get_svg_for_2d_ligand_environment_view | ( | int | imol, |
| const std::string & | residue_cid, | ||
| bool | add_key ) |
Get SVG for 2d ligand environment view (FLEV)
The caller should make sure that the dictionary for the ligand has been loaded - this function won't do that. It will add hydrogen atoms if needed.
From time to time (depending on the ligand) this function will fail to produce a result.
Not const because get_monomer_restraints_at_least_minimal() is called. Hmm.
| imol | is the model molecule index |
| residue_cid | is the cid for the residue |
| add_key | should a key be added to the figure? |
| std::string molecules_container_t::get_svg_for_residue_type | ( | int | imol, |
| const std::string & | comp_id, | ||
| bool | use_rdkit_svg, | ||
| const std::string & | background_type ) |
Get svg for residue type
It won't work unless the dictionary for that ligand has been imported. The native output renderings are not very good at the moment. (The RDKit renderings are pretty good).
| imol | is the model molecule index, except for unusual cases, it will be IMOL_ENC_ANY (-999999) |
| comp_id | is the 3-letter code for the residue/ligand, e.g. "ALA" for alanine |
| use_rdkit_svg | is the flag for using the rdkit svg renderer |
| background_type | is one of:
|
If you want to load them into another image, you'd typicaly want "dark-bonds/transparent-bg" If you want to see ligands, e.g. in a grid or list, you'd typically want "dark-bonds/opaque-bg" which will give you a white rectangle behind the ligand figure.
This function is not const because it caches the svgs.
| coot::symmetry_info_t molecules_container_t::get_symmetry | ( | int | imol, |
| float | symmetry_search_radius, | ||
| float | centre_x, | ||
| float | centre_y, | ||
| float | centre_z ) const |
Get symmetry
now comes in a simple container that also includes the cell
| float molecules_container_t::get_temperature_factor_of_atom | ( | int | imol, |
| const std::string & | atom_cid ) const |
Get the atom temperature factor
| imol | is the model molecule index |
| atom_cid | is the selection cid for the atom |
| std::pair< int, double > molecules_container_t::get_torsion | ( | int | imol, |
| const std::string & | cid, | ||
| const std::vector< std::string > & | atom_names ) |
Get the torsion of the specified atom in the specified residue
| imol | is the model molecule index |
| cid | is the selection CID, e.g. //A/15 (residue 15 in chain A) |
| atom_names | is a list of atom names, e.g. [" CA ", " CB ", " CG ", " CD1"] |
|
inline |
Get the torsion restraints weight
|
inline |
Get the state of the rama plot restraints usage in refinement
|
inline |
Get the state of the rama plot restraints usage in refinement
| std::vector< coot::geometry_distortion_info_container_t > molecules_container_t::get_validation_vs_dictionary_for_selection | ( | int | imol, |
| const std::string & | selection_cid, | ||
| bool | include_non_bonded_contacts ) |
General fragment distortion analysis
| imol | is the model molecule index |
| selection_cid | is the selection CID e.g "//A/15-23" |
| include_non_bonded_contacts | is the flag to include non bonded contacts |
| std::pair< bool, clipper::Coord_orth > molecules_container_t::go_to_blob | ( | float | x1, |
| float | y1, | ||
| float | z1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| float | contour_level ) |
Given a point on the front clipping plane (x1, y1, z1) and a point on the back clipping plane (x2, y2, z2) this function searches imol_refinement_map (if set) to find a the centre of a blob above the contour level. Blobs at the "front" are selected in preference to blobs at the back. If no blob is found, then the first of the pair is false. If it is found, then the second is the centre of the blob.
In future, this function should/will be provided with a list of displayed maps and their contour levels - but for now, it uses (only) imol_refinement_map.
Use a string to pass the map information (map index and contour level), something like "0 0.45:1 1.2:2 0.1"
| x1 | is the x point of the front clipping plane |
| y1 | is the y point of the front clipping plane |
| z1 | is the z point of the front clipping plane |
| x2 | is the x point of the back clipping plane |
| y2 | is the y point of the back clipping plane |
| z2 | is the z point of the back clipping plane |
| int molecules_container_t::import_cif_dictionary | ( | const std::string & | cif_file_name, |
| int | imol_enc ) |
Import a dictionary cif
| imol_enc | is used to specify to which molecule this dictionary should apply. Use IMOL_ENC_ANY to mean "it applies to all molecules." IMOL_ENC_ANY = -999999 |
| void molecules_container_t::init_refinement_of_molecule_as_fragment_based_on_reference | ( | int | imol_frag, |
| int | imol_ref, | ||
| int | imol_map ) |
Initialise the refinement of (all of) molecule imol_frag
| imol_frag | is the model molecule index of the fragment |
| imol_ref | is the model molecule index of the reference |
| imol_map | is the map molecule index |
| bool molecules_container_t::is_a_difference_map | ( | int | imol_map | ) | const |
Check if it the map is a difference map
| imol_map | is the map molecule index |
| bool molecules_container_t::is_EM_map | ( | int | imol | ) | const |
Check if a map is an EM map or not
| imol | is the map molecule index |
| bool molecules_container_t::is_valid_map_molecule | ( | int | imol_map | ) | const |
Check if the map index is valid
e.g. if the map is a model you will have an invalid map
| imol_map | is the map molecule index |
| bool molecules_container_t::is_valid_model_molecule | ( | int | imol | ) | const |
Check if the model index is valid
e.g. if the molecule is a map you will have an invalid model
| imol | is the model molecule index |
| std::string molecules_container_t::jed_flip | ( | int | imol, |
| const std::string & | atom_cid, | ||
| bool | invert_selection ) |
JED-Flip the ligand (or residue) at the specified atom
| imol | is the model molecule index |
| atom_cid | is the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| invert_selection | is True if you want to use the larger fragment |
| bool molecules_container_t::lsq_superpose | ( | int | imol_ref, |
| int | imol_mov ) |
Apply the superposition using LSQ
| imol_ref | the reference model molecule index |
| imol_mov | the moving model molecule index |
| int molecules_container_t::make_ensemble | ( | const std::string & | model_molecules_list | ) |
Make a multi-model molecule given the input molecules
| model_molecules_list | is a colon-separated list of molecules, (e.g. "2:3:4") |
| generic_3d_lines_bonds_box_t molecules_container_t::make_exportable_environment_bond_box | ( | int | imol, |
| coot::residue_spec_t & | spec, | ||
| float | max_dist ) |
| imol | is the model molecule index |
| spec | is the residue specifier, e.g. residue_spec_t("A", 10, "") |
| max_dist | specifies the maximum distance of the interaction, typically 3.8 |
| int molecules_container_t::make_mask | ( | int | imol_map_ref, |
| int | imol_model, | ||
| const std::string & | atom_selection_cid, | ||
| float | radius ) |
Make a masked map
| imol_map_ref | is the map molecule index |
| imol_model | is the model molecule index |
| atom_selection_cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| radius | is the radius of the map, e.g. 12.0 for X-ray map and 100.0 for Cryo-EM map |
| std::vector< int > molecules_container_t::make_masked_maps_split_by_chain | ( | int | imol, |
| int | imol_map ) |
Make a vector/list of maps that are split by chain-id of the input imol
| imol | is the model molecule index |
| imol_map | is the map molecule index |
| void molecules_container_t::make_mesh_for_goodsell_style_for_blender | ( | int | imol, |
| float | colour_wheel_rotation_step, | ||
| float | saturation, | ||
| float | goodselliness ) |
blender
Function for Blender interface
| void molecules_container_t::make_mesh_for_molecular_representation_for_blender | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | colour_scheme, | ||
| const std::string & | style, | ||
| int | secondary_structure_usage_flag ) |
Function for Blender interface
Make an (internal) mesh
This function doesn't return a value, instead it stores a blender_mesh_t blender_mesh in this model. One then (shortly later) uses get_triangles_for_blender(imol) (etc) to import this mesh into blender.
@modifies internal state to fill the internal blender_mesh object
| coot::simple_mesh_t molecules_container_t::make_mesh_from_gltf_file | ( | const std::string & | file_name | ) |
| file_name | is the glTF file name |
simple_mesh_t from the given file. | int molecules_container_t::make_power_scaled_map | ( | int | imol_ref, |
| int | imol_map_for_scaling ) |
Make a FSC-scaled map
| imol_ref | is the reference map molecule index |
| imol_map_for_scaling | is the second map molecule index |
| int molecules_container_t::mask_map_by_atom_selection | ( | int | imol_coords, |
| int | imol_map, | ||
| const std::string & | cid, | ||
| float | atom_radius, | ||
| bool | invert_flag ) |
Mask map by atom selection
(note the argument order is reversed compared to the coot api).
| imol_coords | is the model molecule index |
| imol_map | is the map molecule index |
| cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| atom_radius | is the atom radius. Use a negative number to mean "default". |
| invert_flag | changes the parts of the map that are masked, so to highlight the density for a ligand one would pass the cid for the ligand and invert_flag as true, so that the parts of the map that are not the ligand are suppressed. |
| bool molecules_container_t::match_ligand_position | ( | int | imol_ligand, |
| int | imol_ref, | ||
| const std::string & | chain_id_ref, | ||
| int | resno_ref ) |
Match ligand positions
i.e. do a least-squares superposition of the atoms that match in the graphs of the two specified ligands - typically one would use this function after matching ligand torsions.
| imol_ligand | is the ligand molecule index |
| imol_ref | is the reference model molecule index |
| chain_id_ref | is the reference chain, e.g. "A" |
| resno_ref | is the reference residue number, e.g. 12 |
| bool molecules_container_t::match_ligand_torsions | ( | int | imol_ligand, |
| int | imol_ref, | ||
| const std::string & | chain_id_ref, | ||
| int | resno_ref ) |
Match ligand torsions
| imol_ligand | is the ligand molecule index |
| imol_ref | is the reference model molecule index |
| chain_id_ref | is the reference chain, e.g. "A" |
| resno_ref | is the reference residue number, e.g. 12 |
| bool molecules_container_t::match_ligand_torsions_and_position | ( | int | imol_ligand, |
| int | imol_ref, | ||
| const std::string & | chain_id_ref, | ||
| int | resno_ref ) |
Match ligand torsions and positions
| imol_ligand | is the ligand molecule index |
| imol_ref | is the reference model molecule index |
| chain_id_ref | is the reference chain, e.g. "A" |
| resno_ref | is the reference residue number, e.g. 12 |
| bool molecules_container_t::match_ligand_torsions_and_position_using_cid | ( | int | imol_ligand, |
| int | imol_ref, | ||
| const std::string & | cid ) |
Match ligand torsions and positions using cid
| imol_ligand | is the ligand molecule index |
| imol_ref | is the reference model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| std::pair< int, std::vector< merge_molecule_results_info_t > > molecules_container_t::merge_molecules | ( | int | imol, |
| const std::string & | list_of_other_molecules ) |
Merge molecules
| imol | is the model molecule index |
| list_of_other_molecules | is a colon-separated list of molecules, e.g. "2:3:4" |
| float molecules_container_t::minimize | ( | int | imol, |
| const std::string & | atom_selection_cid, | ||
| int | n_cycles, | ||
| bool | do_rama_plot_restraints, | ||
| float | rama_plot_weight, | ||
| bool | do_torsion_restraints, | ||
| float | torsion_weight, | ||
| bool | refinement_is_quiet ) |
| imol | is the model molecule index |
| atom_selection_cid | is the selection CID e.g. "//A/15" (residue 15 of chain A) |
| n_cycles | is the number of refinement cycles. If you pass n_cycles = 100 (or some such) then you can get the mesh for the partially optimized ligand/residues |
| do_rama_plot_restraints | is the flag for the usage of Ramachandran plot restraints |
| rama_plot_weight | is the flag to set the Ramachandran plot restraints weight |
| do_torsion_restraints | is the flag for the usage of torsion restraints |
| torsion_weight | is the flag to set the torsion restraints weight |
| refinement_is_quiet | is used to reduce the amount of diagnostic text written to the output |
| std::pair< int, coot::instanced_mesh_t > molecules_container_t::minimize_energy | ( | int | imol, |
| const std::string & | atom_selection_cid, | ||
| int | n_cycles, | ||
| bool | do_rama_plot_restraints, | ||
| float | rama_plot_weight, | ||
| bool | do_torsion_restraints, | ||
| float | torsion_weight, | ||
| bool | refinement_is_quiet ) |
Minimise/optimise the geometry of the specified residue(s)
The use of "energy" should not be taken literally here
| imol | is the model molecule index |
| atom_selection_cid | is the selection CID e.g. "//A/15" (residue 15 of chain A) |
| n_cycles | is the number of refinement cycles. If you pass n_cycles = 100 (or some such) then you can get the mesh for the partially optimized ligand/residues |
| do_rama_plot_restraints | is the flag for the usage of Ramachandran plot restraints |
| rama_plot_weight | is the flag to set the Ramachandran plot restraints weight |
| do_torsion_restraints | is the flag for the usage of torsion restraints |
| torsion_weight | is the flag to set the torsion restraints weight |
| refinement_is_quiet | is used to reduce the amount of diagnostic text written to the output |
| int molecules_container_t::mmcif_tests | ( | bool | last_test_only | ) |
Testing function
a test for mmdb/gemmi/mmcif functionality
| last_test_only | is True to mean that only that last test should be run. The default is False. This is useful to set to True while a test is being developed. |
| std::pair< std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t >, std::map< coot::residue_spec_t, coot::util::density_correlation_stats_info_t > > molecules_container_t::mmrrcc | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | imol_map ) const |
This is a wrapper for get_mmrrcc(), using 11 for the n_residue_per_residue_range.
Multi Masked Residue Range Corellation Coefficient
| imol | is the model molecule index |
| chain_id | is the model chain_id |
| imol_map | is the map molecule index |
| std::string molecules_container_t::molecule_to_mmCIF_string | ( | int | imol | ) | const |
Get the molecule as an mmCIF string
| imol | is the model molecule index |
| std::string molecules_container_t::molecule_to_PDB_string | ( | int | imol | ) | const |
Get the molecule as a PDB string
| imol | is the model molecule index |
| int molecules_container_t::move_molecule_to_new_centre | ( | int | imol, |
| float | x, | ||
| float | y, | ||
| float | z ) |
Move the molecule to the given centre
| imol | is the model molecule index |
| x | is the x coordinate of the new centre of the screen |
| y | is the y coordinate of the new centre of the screen |
| z | is the z coordinate of the new centre of the screen |
| void molecules_container_t::multiply_residue_temperature_factors | ( | int | imol, |
| const std::string & | cid, | ||
| float | factor ) |
Interactive B-factor refinement
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| factor | might typically be 0.9 or 1.1 |
| int molecules_container_t::mutate | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | new_residue_type ) |
Mutate residue
| imol | is the model molecule index |
| residue_cid | is the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| new_residue_type | is the 3-letter code of the new residue, e.g. "TYR" for tyrosine |
| int molecules_container_t::new_molecule | ( | const std::string & | name | ) |
Create an empty molecule
| int molecules_container_t::new_positions_for_atoms_in_residues | ( | int | imol, |
| const std::vector< coot::api::moved_residue_t > & | moved_residues ) |
Update the positions of the atoms in the residues
| imol | is the model molecule index |
| moved_residue | is a list of the residues with moved atoms, e.g. moved_residue_t("A", 10, "") |
| int molecules_container_t::new_positions_for_residue_atoms | ( | int | imol, |
| const std::string & | residue_cid, | ||
| std::vector< coot::api::moved_atom_t > & | moved_atoms ) |
Update the positions of the atoms in the residue
| imol | is the model molecule index |
| residue_cid | is the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| moved_atoms | is a list of the atoms moved in the specified residue, e.g. moved_atom_t(" CA ", 1, 2, 3) |
| std::vector< std::string > molecules_container_t::non_standard_residue_types_in_model | ( | int | imol | ) | const |
Get a list of non-standard residues in the given molecule
| imol | is the model molecule index |
| std::string molecules_container_t::package_version | ( | ) | const |
Get the package version
| std::string molecules_container_t::pae_png | ( | const std::string & | pae_file_name | ) | const |
Predicted alignment error (AlphaFold)
| std::vector< int > molecules_container_t::partition_map_by_chain | ( | int | imol_map, |
| int | imol_model ) |
Partition the input map
Each voxel in the map is assigned to the chain to which it is nearest. Unlike masking, the generated maps are not restricted to be "close" to the atoms in the atom selection.
e.g. maskChains for ChimeraX - JiangLab
| imol_map | is the map molecule index |
| imol_model | is the model molecule index |
| std::vector< coot::molecule_t::interesting_place_t > molecules_container_t::pepflips_using_difference_map | ( | int | imol_coords, |
| int | imol_difference_map, | ||
| float | n_sigma ) const |
Get pepflips based on the difference map
| imol_coords | is the model molecule index |
| imol_difference_map | is the difference map molecule index |
| n_sigma | number of sd, e.g. 4.8 |
validation_information_t | coot::validation_information_t molecules_container_t::peptide_omega_analysis | ( | int | imol_model | ) | const |
Peptide omega validation information
| imol_model | is the model molecule index |
validation_information_t | void molecules_container_t::print_colour_rules | ( | int | imol | ) | const |
Print the colour rules
| imol | is the model molecule index |
| void molecules_container_t::print_non_drawn_bonds | ( | int | imol | ) | const |
Print non-drawn bonds
| imol | is the model molecule index |
| void molecules_container_t::print_secondary_structure_info | ( | int | imol | ) | const |
Print the secondary structure information
| imol | is the model molecule index |
| std::string molecules_container_t::r_factor_stats_as_string | ( | const r_factor_stats & | rfs | ) | const |
Get the R factor stats as a string
| rfs | is the name of the string |
| int molecules_container_t::rail_points_total | ( | ) | const |
The total rail points
| coot::validation_information_t molecules_container_t::ramachandran_analysis | ( | int | imol_model | ) | const |
Get the ramachandran validation information (formatted for a graph, not 3D)
| imol_model | is the model molecule index |
validation_information_t | coot::validation_information_t molecules_container_t::ramachandran_analysis_for_chain | ( | int | imol_model, |
| const std::string & | chain_id ) const |
Get the ramachandran validation information (formatted for a graph, not 3D) for a given chain in a given molecule
This function does not exist yet (20230127-PE)
| imol_model | is the model molecule index |
| chain_id | e.g. "A" |
validation_information_t | std::vector< coot::phi_psi_prob_t > molecules_container_t::ramachandran_validation | ( | int | imol | ) | const |
Get the data for Ramachandran validation, which importantly contains probability information
| imol | is the model molecule index |
phi_psi_prob_t | int molecules_container_t::read_ccp4_map | ( | const std::string & | file_name, |
| bool | is_a_difference_map ) |
Read a CCP4 (or MRC) map
There is currently a size limit of 1000 pixels per edge.
| file_name | is the name of the map file |
| is_a_difference_map | False |
| int molecules_container_t::read_coordinates | ( | const std::string & | file_name | ) |
Read a coordinates file (mmcif or PDB)
| file_name | is the name of the coordinates file |
| int molecules_container_t::read_extra_restraints | ( | int | imol, |
| const std::string & | file_name ) |
Read extra restraints (e.g. from ProSMART)
| imol | is the model molecule index |
| int molecules_container_t::read_mtz | ( | const std::string & | file_name, |
| const std::string & | f, | ||
| const std::string & | phi, | ||
| const std::string & | weight, | ||
| bool | use_weight, | ||
| bool | is_a_difference_map ) |
Read the given mtz file
| file_name | is the name of the MTZ file |
| f | F column, "FWT" |
| phi | phi column, "PHWT" |
| weight | weight column, "W" |
| use_weight | flag for weights usage, False |
| is_a_difference_map | False |
| int molecules_container_t::read_pdb | ( | const std::string & | file_name | ) |
Read a PDB file (or mmcif coordinates file, despite the name)
It does the same job as read_coordinates but has (perhaps) a more familiar name
| file_name | is the name of the coordinates file |
| int molecules_container_t::read_small_molecule_cif | ( | const std::string & | file_name | ) |
Read a small molecule CIF file
| file_name | is the cif file-name |
| int molecules_container_t::redo | ( | int | imol | ) |
Redo
| imol | is the model molecule index |
| std::pair< int, coot::instanced_mesh_t > molecules_container_t::refine | ( | int | imol, |
| int | n_cycles ) |
Run some cycles of refinement and return a mesh
That way we can see the molecule animate as it refines
| imol | is the model molecule index |
| n_cycles | is the number of refinement cycles |
| int molecules_container_t::refine_residue_range | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no_start, | ||
| int | res_no_end, | ||
| int | n_cycles ) |
Refine residue range
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no_start | the starting residue number |
| res_no_ref_end | the ending residue number |
| n_cycles | is the number of refinement cycles |
| int molecules_container_t::refine_residues | ( | int | imol, |
| const std::string & | chain_id, | ||
| int | res_no, | ||
| const std::string & | ins_code, | ||
| const std::string & | alt_conf, | ||
| const std::string & | mode, | ||
| int | n_cycles ) |
Refine the residues
| imol | is the model molecule index |
| chain_id | e.g. "A" for chain A |
| res_no | is the residue number, e.g. 12 |
| ins_code | is the insertion code, e.g. "A" |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
| mode | is the mode of real space refinement e.g. "SINGLE", "TRIPLE", "QUINTUPLE", "HEPTUPLE", "SPHERE", "BIG_SPHERE", "CHAIN", "ALL" |
| n_cycles | is the number of refinement cycles |
| int molecules_container_t::refine_residues_using_atom_cid | ( | int | imol, |
| const std::string & | cid, | ||
| const std::string & | mode, | ||
| int | n_cycles ) |
Refine the residues using cid
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| mode | is the mode of real space refinement e.g. "SINGLE", "TRIPLE", "QUINTUPLE", "HEPTUPLE", "SPHERE", "BIG_SPHERE", "CHAIN", "ALL" |
| n_cycles | is the number of refinement cycles |
| bool molecules_container_t::regen_map | ( | int | imol_map, |
| const std::string & | imol_maps, | ||
| const std::vector< float > & | scales ) |
This function does no normalisation of the scales, presuming that they are pre-normalized.
The number of maps in imol_maps should match the size of the scale vector. If not, nothing will happen and False will be returned
| imol_map | is the map molecule index |
| imol_maps | is a colon-separated list of map indices e.g. "2:3:4" |
| scales | is the list of weights corresponding to the list of maps |
| int molecules_container_t::replace_fragment | ( | int | imol_base, |
| int | imol_reference, | ||
| const std::string & | atom_selection ) |
Replace a fragment
| imol_base | is the base model index |
| imol_reference | is the reference model index |
| atom_selection | is the selection CID e.g "//A/15-17" (residue 15, 16 and 17 of chain A) |
| int molecules_container_t::replace_map_by_mtz_from_file | ( | int | imol, |
| const std::string & | file_name, | ||
| const std::string & | f, | ||
| const std::string & | phi, | ||
| const std::string & | weight, | ||
| bool | use_weight ) |
Replace map by mtz
| imol | is the map molecule index |
| f | F column, "FWT" |
| phi | phi column, "PHWT" |
| weight | weight column, "W" |
| use_weight | flag for weights usage, False |
| void molecules_container_t::replace_molecule_by_model_from_file | ( | int | imol, |
| const std::string & | pdb_file_name ) |
Read a PDB file (or mmcif coordinates file, despite the name) to replace the current molecule
This will only work if the molecules is already a model molecule
| imol | is the model molecule index |
| file_name | is the name of the coordinates file |
| void molecules_container_t::replace_residue | ( | int | imol, |
| const std::string & | residue_cid, | ||
| const std::string & | new_residue_type, | ||
| int | imol_enc ) |
Replace a residue
This has a different meaning of "replace" to replace_fragment(). In this function the atoms are not merely moved/"slotted in to place", but the residue type is changed - new atoms are introduce and others are deleted (typically).
Change the type of a residue (for example, "TYR" to "CYS") The algorithm will superpose the mainchain CA, C and N and try to set matching torsion to the angle that they were in the reference structure.
| imol | is the model molecule index |
| residue_cid | is the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| new_residue_type | is the 3-letter code of the new residue, e.g "CYS" |
| imol_enc | is the molecule index for the residue type/compound_id |
| coot::residue_spec_t molecules_container_t::residue_cid_to_residue_spec | ( | int | imol, |
| const std::string & | cid ) const |
Convert residue cid string to a coot residue specifier
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
spec.empty() is true on failure. | bool molecules_container_t::residue_is_nucleic_acid | ( | int | imol, |
| const std::string & | cid ) const |
Residue is nucleic acid?
Every residue in the selection is checked
| imol | is the model molecule index |
| cid | is the selection CID e.g "//A/15" (residue 15 of chain A) |
| std::vector< coot::residue_spec_t > molecules_container_t::residues_with_missing_atoms | ( | int | imol | ) |
Get residues with missing atoms
| imol | is the model molecule index |
| int molecules_container_t::rigid_body_fit | ( | int | imol, |
| const std::string & | multi_cid, | ||
| int | imol_map ) |
Rigid-body fitting
| imol | is the model molecule index |
| multi_cids | is a "||"-separated list of residues CIDs, e.g. "//A/12-52||//A/14-15||/B/56-66" |
| imol_map | is the map molecule index |
| coot::validation_information_t molecules_container_t::rotamer_analysis | ( | int | imol_model | ) | const |
Get the rotamer validation information
| imol_model | is the model molecule index |
validation_information_t | int molecules_container_t::rotate_around_bond | ( | int | imol, |
| const std::string & | residue_cid, | ||
| const std::string & | atom_name_1, | ||
| const std::string & | atom_name_2, | ||
| const std::string & | atom_name_3, | ||
| const std::string & | atom_name_4, | ||
| double | torsion_angle ) |
Rotate atoms around torsion
the bond is presumed to be between atom-2 and atom-3. Atom-1 and atom-4 are used to define the absolute torsion angle.
| imol | is the model molecule index |
| residue_cid | is the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| atom_name_1 | e.g. " CA " |
| atom_name_2 | e.g. " CB " |
| atom_name_3 | e.g. " CG " |
| atom_name_4 | e.g. " CD1" |
| torsion_angle | e.g. 12.3 degrees |
| void molecules_container_t::scale_map | ( | int | imol_map, |
| float | scale_factor ) |
Scale map
| imol | is the model molecule index |
| scale_factor | is the scale factor |
| int molecules_container_t::servalcat_refine_xray | ( | int | imol, |
| int | imol_map, | ||
| const std::string & | output_prefix ) |
External refinement using servalcat, using data that has already been associated.
| imol | is the model molecule index |
| imol_map | is the map molecule index |
| output_prefix | is the prefix of the output filename, e.g. "ref-1" |
| int molecules_container_t::servalcat_refine_xray_with_keywords | ( | int | imol, |
| int | imol_map, | ||
| const std::string & | output_prefix, | ||
| const nanobind::dict & | key_value_pairs ) |
Use servalcat keywords
| imol | is the model molecule index |
| imol_map | is the map molecule index |
| output_prefix | is the prefix of the output filename, e.g. "ref-1" |
| key_value_pairs | is a dictionary of key-value pairs for the servalcat keywords, e.g. resolution: 2.05 |
|
inline |
Parameter for add_waters function
| d | is the sigma cutoff, default is 1.75 |
|
inline |
Parameter for add_waters function
| d | is the variance limit, default is 0.1 |
|
inline |
Parameter for add_waters function
| d | is the max distance, default 3.4 |
|
inline |
Parameter for add_waters function
| d | is the min distance, default 2.4 |
| void molecules_container_t::set_base_colour_for_bonds | ( | int | imol, |
| float | r, | ||
| float | g, | ||
| float | b ) |
Set the base colour - to be used as a base for colour wheel rotation
RGB colour codes, e.g. green is r:0, g: 255, b:0
| imol | is the model molecule index |
| void molecules_container_t::set_bespoke_carbon_atom_colour | ( | int | imol, |
| const coot::colour_t & | col ) |
Set bespoke carbon atom colour
| imol | is the model molecule index |
| void molecules_container_t::set_colour_wheel_rotation_base | ( | int | imol, |
| float | r ) |
Set the colour wheel rotation base for the specified molecule (in degrees)
| imol | is the model molecule index |
| r | is the rotation angle in degrees |
| void molecules_container_t::set_draw_missing_residue_loops | ( | bool | state | ) |
Set the state for drawing missing loops
By default missing loops are drawn. This function allows missing loops to not be drawn. Sometimes that can clarify the representation. This is a lightweight function that sets a flag that is used by subsequent calls to get_bonds_mesh()
| state | is True to mean it is enabled |
| void molecules_container_t::set_gltf_pbr_metalicity_factor | ( | int | imol, |
| float | metalicity ) |
set the gltf PBR metalicity factor
| imol | is the model molecule index |
| metalicity | is the factor for the roughness (0.0 to 1.0) |
| void molecules_container_t::set_gltf_pbr_roughness_factor | ( | int | imol, |
| float | roughness_factor ) |
set the gltf PBR roughness factor
| imol | is the model molecule index |
| roughness_factor | is the factor for the roughness (0.0 to 1.0) |
|
inline |
Set the map used for refinement and fitting
| i | the map molecule index used for refinement and fitting |
| void molecules_container_t::set_logging_file | ( | const std::string & | file_name | ) |
make the logging output go to a file
| file_name | the looging file name |
| void molecules_container_t::set_logging_level | ( | const std::string & | level | ) |
Control the logging
| level | is the logging level, level is either "LOW" or "HIGH" or "DEBUGGING" |
|
inline |
Allow the user to disable/enable backups
| state | is True to mean that it is enabled. The default is True. |
| void molecules_container_t::set_map_colour | ( | int | imol, |
| float | r, | ||
| float | g, | ||
| float | b ) |
Set the map colour
The next time a map mesh is requested, it will have this colour. This does not apply to/affect the colour of the difference maps.
RGB colour codes, e.g. green is r:0, g: 255, b:0
| imol | is the model molecule index |
| void molecules_container_t::set_map_colour_saturation | ( | int | imol, |
| float | s ) |
Set the map saturation
| s | is the map saturation, e.g. a number between 0 and 1, where 0 is grey and 1 is "lego-like" colour scheme. 0.5 is a nice middle value |
| void molecules_container_t::set_map_is_contoured_with_thread_pool | ( | bool | state | ) |
Set the state of the mode of the threading in map contouring
| state | is True to mean that it is enabled. The default is True. |
|
inline |
Set the map sampling rate
Higher numbers mean smoother maps, but they take longer to generate, longer to transfer, longer to parse and longer to draw
| msr | is the map sampling rate to set, the default is 1.8 |
|
inline |
Set the map weight
| w | the map weight to be used for refinement, e.g. 50.0 |
| void molecules_container_t::set_max_number_of_threads | ( | unsigned int | n_threads | ) |
Testing function
set the maximum number of threads for both the thread pool and the vector of threads
| n_threads | is the number of threads |
| void molecules_container_t::set_max_number_of_threads_in_thread_pool | ( | unsigned int | n_threads | ) |
Testing function
Deprecated name for the "set_max_number_of_threads()" function
| void molecules_container_t::set_molecule_name | ( | int | imol, |
| const std::string & | new_name ) |
Set the molecule name
| imol | is the model or map molecule index |
| new_name | is the new name of the model or map |
| void molecules_container_t::set_occupancy | ( | int | imol, |
| const std::string & | cid, | ||
| float | occ_new ) |
Set the occupancy for the given atom selection
| imol | is the model molecule index |
| cid | is the atom selection CID e.g "//A/15/OH" (atom OH in residue 15 of chain A) |
| occ_new | is the new occupancy |
|
inline |
Set the Ramachandran plot restraints weight
| f | is the weight to set, default 1.0 |
|
inline |
Set the refinement Geman-McClure alpha
| a | is the Geman-McClure alpha, e.g. 0.01 |
|
inline |
For debugging the refinement - write out some diagnositics - some might be useful.
API change 20240226 - this function now takes a boolean argument
| state | is True to mean that it is enabled |
| int molecules_container_t::set_residue_to_rotamer_number | ( | int | imol, |
| const std::string & | residue_cid, | ||
| const std::string & | alt_conf, | ||
| int | rotamer_number ) |
Change to the nth rotamer
| imol | is the model molecule index |
| residue_cid | is the atom selection CID e.g "//A/15" (all the atoms in residue 15 of chain A) |
| alt_conf | is the alternate conformation, e.g. "A" or "B" |
|
inline |
Set the show_timings flag
Various (not all) functions in this class can calculate how long they took to run. Setting this will write the time to taken (in milliseconds) to stdout.
| s | is True to mean that it is enabled. The default is True. |
| void molecules_container_t::set_temperature_factors_using_cid | ( | int | imol, |
| const std::string & | cid, | ||
| float | temp_fact ) |
Change the B factors
| imol | is the model molecule index |
| cid | is the selection CID, e.g. //A/15 (residue 15 in chain A) |
| temp_fact | is the isotropic ADP/temperature factor, e.g., 22 |
|
inline |
Set the torsiont restraints weight
| f | is the weight to set, default value is 1.0 |
| void molecules_container_t::set_use_bespoke_carbon_atom_colour | ( | int | imol, |
| bool | state ) |
Use bespoke carbon atom colour
| imol | is the model molecule index |
|
inline |
Set the state of using GEMMI for coordinates parsing
| state | is True to mean that it is enabled. The default is True. |
|
inline |
Turn on or off ramachandran restraints
| state | is True to mean that it is enabled |
|
inline |
Turn on or off torsion restraints
| state | is True to mean that it is enabled |
| void molecules_container_t::set_user_defined_atom_colour_by_selection | ( | int | imol, |
| const std::vector< std::pair< std::string, unsigned int > > & | indexed_residues_cids, | ||
| bool | colour_applies_to_non_carbon_atoms_also ) |
Set the user-defined residue selections (CIDs) to colour index
| imol | is the model molecule index |
| void molecules_container_t::sfcalc_genmap | ( | int | imol_model, |
| int | imol_map_with_data_attached, | ||
| int | imol_updating_difference_map ) |
Calculate SF and re-generate maps
This is a low-level function - generally one would use the updating maps method rather than this
| imol_model | is the model molecule index |
| imol_map_with_data_attached | is the map index with the data have been attached by the previous function (associate_data_mtz_file_with_map) |
| imol_updating_difference_map | is the index of the difference map that you want to update when the model updates |
| coot::util::sfcalc_genmap_stats_t molecules_container_t::sfcalc_genmaps_using_bulk_solvent | ( | int | imol_model, |
| int | imol_2fofc_map, | ||
| int | imol_updating_difference_map, | ||
| int | imol_map_with_data_attached ) |
Calculate SF and re-generate maps using bulk solvent
This is a low-level function. Call this function after connecting maps for updating maps to set the initial R-factor and store the initial map flatness.
| imol_model | is the model molecule index |
| imol_2fofc_map | is the map molecule index of the 2FO-FC map |
| imol_updating_difference_map | is the index of the difference map that you want to update when the model updates |
| imol_map_with_data_attached | is the map index with the data have been attached by the previous function (associate_data_mtz_file_with_map) |
| int molecules_container_t::sharpen_blur_map | ( | int | imol_map, |
| float | b_factor, | ||
| bool | in_place_flag ) |
Create a new map that is blurred/sharpened
| imol | is the map molecule index |
| b_factor | e.g. 100.0 |
| in_place_flag | True if you want to replace the current map, False if you want to create a new map |
in_place_flag was true. | int molecules_container_t::sharpen_blur_map_with_resample | ( | int | imol_map, |
| float | b_factor, | ||
| float | resample_factor, | ||
| bool | in_place_flag ) |
Create a new map that is blurred/sharpened and resampling
Note that resampling can be slow, a resample_factor of 1.5 is about the limit of the trade of of prettiness for speed.
| imol_map | is the map molecule index |
| b_factor | e.g. 100.0 |
| resample_factor | e.g. 1.4 |
| in_place_flag | True if you want to replace the current map, False if you want to create a new map |
in_place_flag was true. | bool molecules_container_t::shift_field_b_factor_refinement | ( | int | imol, |
| int | imol_with_data_attached ) |
Shift-field B-factor refinement
This function presumes that the Fobs, sigFobs and RFree data have been filled in the imol_map_with_data_attached molecule
| imol | is the model molecule index |
| imol_map_with_data_attached | is the map index with the data have been attached by the previous function (associate_data_mtz_file_with_map) |
| int molecules_container_t::side_chain_180 | ( | int | imol, |
| const std::string & | atom_cid ) |
Rotate last chi angle of the side chain by 180 degrees
| imol | is the model molecule index |
| atom_cid | is the atom selection CID e.g "//A/15/OH" (atom OH of residue 15 of chain A) |
| std::vector< int > molecules_container_t::split_multi_model_molecule | ( | int | imol | ) |
Split an NMR model into multiple models
| imol | is the model molecule index |
| int molecules_container_t::split_residue_using_map | ( | int | imol, |
| const std::string & | residue_cid, | ||
| int | imol_diff_map ) |
Split a residue into alt-confs
do nothing if the residue already has alt-confs.
| imol | the modified model |
| residue_cid | the modified residue, the residue selection CID e.g "//A/15" (residue 15 of chain A) |
| imol_diff_map | is the difference map that is used to determine the residue split |
| superpose_results_t molecules_container_t::SSM_superpose | ( | int | imol_ref, |
| const std::string & | chain_id_ref, | ||
| int | imol_mov, | ||
| const std::string & | chain_id_mov ) |
Superposition (using SSM)
The specified chain of the moving molecule is superposed onto the chain in the reference molecule (if possible).
| imol_ref | the reference model molecule index |
| chain_id_ref | the chain ID for the reference chain |
| imol_mov | the moving model molecule index |
| chain_id_mov | the chain ID for the moving chain |
| double molecules_container_t::test_launching_threads | ( | unsigned int | n_threads_per_batch, |
| unsigned int | n_batches ) const |
Testing function
| n_threads_per_batch | is the number of threads per batch |
| n_batches | is the number batches |
| coot::simple_mesh_t molecules_container_t::test_origin_cube | ( | ) | const |
Get a simple test mesh
| double molecules_container_t::test_the_threading | ( | int | n_threads | ) |
Testing function
get the time to run a test function in milliseconds
| n_threads | is the number of threads |
| double molecules_container_t::test_thread_pool_threads | ( | unsigned int | n_threads | ) |
Testing function
| n_threads | is the number of threads |
|
inline |
Testing function
get the stats for the long-term job
| void molecules_container_t::testing_start_long_term_job | ( | unsigned int | n_seconds | ) |
Testing function
start a long-term job.
| n_seconds | is the number of seconds, if is 0, then run forever (or until interrupted) |
| void molecules_container_t::testing_stop_long_term_job | ( | ) |
Testing function
stop the long-term job runnning
| int molecules_container_t::transform_map_using_lsq_matrix | ( | int | imol_map, |
| lsq_results_t | lsq_matrix, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | radius ) |
Transform a map and create a new map
| imol_map | map molecule index |
| lsq_matrix | is an object of type lsq_results_t, is the object returned by get_lsq_matrix() |
| x | is the point in the map about which the map is transformed |
| y | is the point in the map about which the map is transformed |
| z | is the point in the map about which the map is transformed |
| radius | the radius of the transformed map, typically between 10 and 100 A |
| bool molecules_container_t::try_read_dictionaries_for_new_residue_types | ( | int | imol | ) |
Try to read the dictionaries for any residue type in imol that as yet does not have a dictionary
| imol | is the model molecule index |
| void molecules_container_t::turn_off_when_close_target_position_restraint | ( | int | imol | ) |
Clear target_position restraint if it is (or they are) close to their target position
| imol | is the model molecule index |
| int molecules_container_t::undo | ( | int | imol | ) |
Undo
| imol | is the model molecule index |
| std::vector< coot::molecule_t::interesting_place_t > molecules_container_t::unmodelled_blobs | ( | int | imol_model, |
| int | imol_map, | ||
| float | rmsd_cut_off ) const |
Unmodelled blobs
| imol_model | is the model molecule index |
| imol_map | is the map molecule index |
| rmsd_cut_off | is the low map limit for cluster generation 1.4 is a reasonable value. |
validation_information_t | int molecules_container_t::write_coordinates | ( | int | imol, |
| const std::string & | file_name ) const |
Write the coordinates to the given file name
| imol | is the model molecule index |
| file_name | is the name of the new model |
| int molecules_container_t::write_map | ( | int | imol, |
| const std::string & | file_name ) const |
Write a map
| imol | is the map molecule index |
| file_name | is the name of the new map file |
| void molecules_container_t::write_png | ( | const std::string & | compound_id, |
| int | imol, | ||
| const std::string & | file_name ) const |
Write a PNG for the given compound_id.
Currently this function does nothing (drawing is done with the not-allowed cairo)
| compound_id | is the 3-letter code for the residue/ligand in the first model, e.g. "TYR" for tyrosine |
| imol | is the model molecule index |
| int molecules_container_t::imol_difference_map |
the difference map - direct access
I am not sure that this is needed - or will ever be.
| int molecules_container_t::imol_refinement_map |
the refinement map - direct access. When refinement is performed, this is the map that will be used. Many (indeed most) of thesee functions explicity take a map. If the map is not known by the calling function then this map can be used as the map molecule index