dict
|
|
list
|
|
numpy.array, numpy.array, numpy.array, numpy.array
|
get_lattice_vectors(a_param,
b_param,
c_param,
alpha_param,
beta_param,
gamma_param)
Get the origin and lattice vectors of the specified parallelepiped. |
|
|
dict
|
delete_duplicate_atoms(astructure,
atoms_to_check=None,
duplicate_thresh=0.25,
transform=None,
fract_offset=FRACT_OFFSET)
Delete duplicate atoms that are within the defined threshold. |
|
|
float
|
max_connect_distance(cov_rad_a,
cov_rad_b,
cov_factor=ParserWrapper.COV_FACTOR,
cov_offset=ParserWrapper.COV_OFFSET)
Return the maximum bonding distance for the given covalent radii and
distance equation parameters. |
|
|
list, dict, dict
|
connect_atoms(astructure,
atoms_to_connect=None,
cov_min=ParserWrapper.COV_MIN,
cov_offset=ParserWrapper.COV_OFFSET,
cov_factor=ParserWrapper.COV_FACTOR,
delete_existing=True,
organic_structure=None,
cov_radii_props=True,
pbc_bonding=ParserWrapper.PBC_BONDING,
only_pbc_bonds=False,
check_also_reg_bond=False)
Connect the atoms in a structure. |
|
|
bool
|
before_lower_edge(coord,
lower_bound)
Return True if this fractional coordinate value is before the lower
edge of the cell. |
|
|
bool
|
on_lower_edge(coord,
lower_bound,
fract_offset=FRACT_OFFSET)
Return True if this fractional coordinate value is on the lower edge
of the cell. |
|
|
bool
|
inside_cell(coord,
lower_bound,
upper_bound,
fract_offset=FRACT_OFFSET)
Return True if this fractional coordinate value is inside the cell. |
|
|
bool
|
on_upper_edge(coord,
lower_bound,
fract_offset=FRACT_OFFSET)
Return True if this fractional coordinate value is on the upper edge
of the cell. |
|
|
bool
|
after_upper_edge(coord,
lower_bound,
fract_offset=FRACT_OFFSET)
Return True if this fractional coordinate value is after the upper
edge of the cell. |
|
|
|
translate_to_cell(astructure,
fract_offset=FRACT_OFFSET,
origin=ParserWrapper.ORIGIN,
transform=None)
Translate the fractional coordinate definitions of the atoms of the
given structure so that they are all in the cell defined with the
given origin and optionally also actually transform the Cartesian
coordinates of the atoms using the specified fractional-to-Cartesian
transform. |
|
|
|
trans_atoms_fract_to_cart(astructure,
transform)
Transform the atoms in a structure from the fractional basis to the
Cartesian basis. |
|
|
|
trans_atoms_cart_to_fract(astructure,
transform)
Transform the atoms in a structure from the Cartesian basis to the
fractional basis. |
|
|
int
|
get_gcd_list_ints(list_of_ints)
Return the greatest common divisor (GCD) of a list of integers. |
|
|
bool
|
is_organic_structure(astructure,
percent_metal_threshold=PERCENT_METAL_THRESHOLD)
Return True if the structure contains more than one type of element
and no more than the given percentage of metal elements. |
|
|
bool
|
|
bool
|
has_organic_molecule(astructure,
percent_metal_threshold=PERCENT_METAL_THRESHOLD)
Return True if the provided structure contains at least one organic
molecule. |
|
|
bool
|
has_closed_shell_organic_molecule(astructure,
percent_metal_threshold=PERCENT_METAL_THRESHOLD)
Return True if the provided structure contains at least one
closed-shell organic molecule. |
|
|
bool
|
is_bonding_infinite(astructure,
percent_metal_threshold=PERCENT_METAL_THRESHOLD)
Return True if the bonding is of infinite extent, i.e. |
|
|
|
transfer_atom_bonds_and_props(index_a,
index_b,
astructure,
props=None)
Transfer the bonds and specified properties of the atom indexed with
index_b to the atom indexed with index_a. |
|
|
three numpy.array
|
|
int
|
get_collapsed_index(abc,
alimit,
blimit,
climit)
Given a three dimensional grid of integers defined on [1, limit] for
the given a, b, and c limits and a traversal path of c then b then a
return the number of integers traversed in order to reach the given
abc integer index triple. |
|
|
int
|
modified_sawtooth(n,
x)
Given a positive integer variable x in [0, n+1] return a signal from
a modified sawtooth function. |
|
|
schrodinger.Structure.structure
|
assign_bond_orders(astructure)
Return a copy of the input structure that has bond orders assigned. |
|
|
schrodinger.Structure.structure
|
|
tuple
|
get_chorus_properties(astructure)
Return a tuple containing the nine chorus properties of the given
structure. |
|
|
list
|
get_params_from_chorus(chorus_properties)
Return the a, b, c, alpha, beta, and gamma lattice properties from
the nine chorus properties. |
|
|
list
|
|
set
|
get_cell_pairs(astructure,
cell_distance,
pbc_bonding=True,
atom_indices=None,
chorus_properties=None)
Using a distance cell that optionally honors a PBC return a list of
tuples of atom index pairs that are within the specified distance. |
|
|
|
add_labeled_pbc_bond(astructure,
atom1,
atom2,
order,
is_pbc_bond=False,
also_reg_bond=False,
color=PBCBond.PBC_BOND_COLOR)
Add the specified bond to the provided structure and label it
depending on if it is a PBC bond. |
|
|
int
|
get_natom_btw_two_cells(cell1,
cell2,
extents,
size)
Using a traversal path of c then b then a, return the number of atoms
between two cells, of the given size, in a super cell with the given
extents. |
|
|
|
|
tuple
|
is_pbc_bond(astructure,
atom1,
atom2,
check_also_reg_bond=False,
unit_lattice_vectors=None)
Return a (is_pbc_bond, also_reg_bond, bond_distance) tuple that
indicates (1) whether the specified bond is a PBC bond, (2) if
checked whether that PBC bond is also a regular bond, and (3) the
bond length. |
|
|
tuple
|
|
dict
|
|
str
|
|
numpy.array
|
trans_cart_to_fract(cart_vec,
a_param,
b_param,
c_param,
alpha_param,
beta_param,
gamma_param)
Transform the given vector in the Cartesian basis to the fractional
basis. |
|
|
numpy.array
|
trans_fract_to_cart(fract_vec,
a_param,
b_param,
c_param,
alpha_param,
beta_param,
gamma_param)
Transform the given vector in the fractional basis to the Cartesian
basis. |
|
|
schrodinger.structure.Structure
|
get_cell(asu,
space_group=None,
lattice_params=None,
extents=None,
xtal_kwargs=None)
Build and return a crystalline cell using the given asymmetric unit,
space group, lattice parameters, and extents. |
|
|
|
__doc__ = ...
|
|
_version = '$Revision 0.0 $'
|
|
BC_BOX_SHAPE_KEY = 's_m_BC_Box_Shape'
|
|
BC_BOX_A_KEY = 'r_m_BC_Box_A'
|
|
BC_BOX_B_KEY = 'r_m_BC_Box_B'
|
|
BC_BOX_C_KEY = 'r_m_BC_Box_C'
|
|
BC_BOX_ALPHA_KEY = 'r_m_BC_Box_Alpha'
|
|
BC_BOX_BETA_KEY = 'r_m_BC_Box_Beta'
|
|
BC_BOX_GAMMA_KEY = 'r_m_BC_Box_Gamma'
|
|
BC_BOX_SHAPE = 'Triclinic'
|
|
PRESERVE_BONDING_KEY = 'b_matsci_Preserve_Bonding'
|
|
P1_SPACE_GROUP_SYMBOL = 'P 1'
|
|
COV_RADIUS_KEY = 'r_matsci_COV_radius/Ang.'
|
|
FRACT_OFFSET = 0.0001
|
|
PERCENT_METAL_THRESHOLD = 25.0
|
|
METAL_ASL = 'metals'
|
|
PROTEIN_ASL = 'protein'
|
|
MMPDB_MAX_ELEMENTS = 103
|
|
AHEAD_BASE_TRIPLES = [(1, 0, 0), (0, 1, 0), (0, 0, 1)]
|
|
AHEAD_TRIPLES = AHEAD_BASE_TRIPLES+ [(0, 1, 1), (0, 1,-1), (1,...
|
|
LATTICE_PARAMS_KEYS = ['a_param', 'b_param', 'c_param', 'alpha...
|
|
EXTENTS_KEYS = ['ncella', 'ncellb', 'ncellc']
|
|
MMPDB_COV_RADII = get_cov_radii()
|
|
MAX_MMPDB_COV_RADIUS = max(MMPDB_COV_RADII.values())
|