Classes and functions for creating crystals by unit cell.
Copyright Schrodinger, LLC. All rights reserved.
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=0.0001)
Delete duplicate atoms that are within the defined threshold. |
|
|
float
|
max_connect_distance(cov_rad_a,
cov_rad_b,
cov_factor=1.0,
cov_offset=0.45)
Return the maximum bonding distance for the given covalent radii and
distance equation parameters. |
|
|
list, dict
|
connect_atoms(astructure,
atoms_to_connect=None,
connect_with=None,
min_distance=0.4,
cov_offset=0.45,
cov_factor=1.0,
delete_existing=True,
organic_structure=None,
cov_radii_props=True)
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=0.0001)
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=0.0001)
Return True if this fractional coordinate value is inside the cell. |
|
|
bool
|
on_upper_edge(coord,
lower_bound,
fract_offset=0.0001)
Return True if this fractional coordinate value is on the upper edge
of the cell. |
|
|
bool
|
after_upper_edge(coord,
lower_bound,
fract_offset=0.0001)
Return True if this fractional coordinate value is after the upper
edge of the cell. |
|
|
|
translate_to_cell(astructure,
fract_offset=0.0001,
origin=[ 0.0, 0.0, 0.0] ,
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=25.0)
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=25.0)
Return True if the provided structure contains at least one organic
molecule. |
|
|
bool
|
has_closed_shell_organic_molecule(astructure,
percent_metal_threshold=25.0)
Return True if the provided structure contains at least one
closed-shell organic molecule. |
|
|
bool
|
is_bonding_infinite(astructure,
percent_metal_threshold=25.0)
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 [1, n] 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. |
|
|
|
__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
|
|
MMPDB_COV_RADII = { 1: 0.32, 2: 0.93, 3: 1.23, 4: 0.9, 5: 0.82, ...
|
|
MAX_MMPDB_COV_RADIUS = 2.6
|
|
__package__ = ' schrodinger.application.matsci.nano '
|