mmtbx.ions.environment module¶
Deals with examing the atoms around a site and recognizing distinct and useful chemical environments.
- class mmtbx.ions.environment.ChemicalEnvironment(i_seq, contacts, manager)¶
Bases:
slots_getstate_setstate
Container for information summarizing a site’s chemical environment.
- atom¶
- Type:
- contacts¶
- Type:
- contacts_no_alts¶
- Type:
- chemistry¶
- Type:
- atom¶
- chemistry¶
- contacts¶
- contacts_no_alts¶
- geometry¶
- get_valence(element, charge=None)¶
Calculates the BVS and VECSUM for a given element / charge identity.
- Parameters:
- Returns:
float – Bond-valence sum (BVS).
float – Vector sum (VECSUM).
Notes
- class mmtbx.ions.environment.ScatteringEnvironment(i_seq, manager, fo_map=None, fofc_map=None, anom_map=None, fo_density=None, fofc_density=None, anom_density=None)¶
Bases:
slots_getstate_setstate
Container for information summarizing a site’s scattering environment.
- anom_density¶
- b_iso¶
- b_mean_hoh¶
- d_min¶
- fo_density¶
- fofc_density¶
- fp¶
- fpp¶
- occ¶
- pai¶
- wavelength¶
- class mmtbx.ions.environment.atom_contact(atom, vector, site_cart, rt_mx)¶
Bases:
slots_getstate_setstate
Container for information about an interacting atom. Most of the methods are simply wrappers for frequently called operations on the atom object, but symmetry-aware.
- atom¶
- Type:
- rt_mx¶
- Type:
cctbx.sgtbx.rt_mx
- vector¶
- Type:
- altloc()¶
Retrieves the alternate conformation label, if any, of the coordinating atom.
- Return type:
- atom¶
- atom_id_no_altloc(suppress_rt_mx=False)¶
Unique identifier for an atom, ignoring the altloc but taking the symmetry operator (if any) into account.
- charge¶
- distance_from(other)¶
Distance from another coordinating atom.
- Parameters:
- Returns:
Distance, in angstroms.
- Return type:
- element¶
- id_str(suppress_rt_mx=False)¶
Creates a string from the atom’s id string and the symmetry operator associated with that site.
- is_carboxy_terminus¶
- resname()¶
Retrieves the residue name associated with te coordinating atom (i.e. “ARG”)
- Return type:
- rt_mx¶
- site_cart¶
- vector¶
- mmtbx.ions.environment.find_nearby_atoms(i_seq, xray_structure, pdb_atoms, asu_mappings, asu_table, connectivity, far_distance_cutoff=3.0, near_distance_cutoff=1.5, filter_by_bonding=True)¶
Given site in the structure, return a list of nearby atoms with the supplied cutoff, and the vectors between them and the atom’s site. Takes into account symmetry operations when finding nearby sites.
- Parameters:
i_seq (int)
xray_structure (cctbx.xray.structure.structure)
pdb_atoms (iotbx.pdb.hierarchy.af_shared_atom)
asu_mappings (cctbx.crystal.direct_space_asu.asu_mappings)
asu_table (cctbx.crystal.pair_tables.pair_asu_table)
connectivity (scitbx.array_family.shared.stl_set_unsigned)
far_distance_cutoff (float, optional)
near_distance_cutoff (float, optional)
filter_by_bonding (bool, optional)
- Return type: