gnrs.gnrsutil¶
gnrs.gnrsutil.molecule_bonding¶
This module implements the molecule bonding module.
This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree.
- gnrs.gnrsutil.molecule_bonding.construct_pair_keys(elements)[source]¶
Constructs pair_key matrix for every element in the argument
- gnrs.gnrsutil.molecule_bonding.construct_intermolecular_dist_dict()[source]¶
Constructs the intermolecular distance dictionary with vdW radii.
- Return type:
None
- gnrs.gnrsutil.molecule_bonding.get_vdw_distance_cutoff_matrix(mol_path, z, sr, natural_cutoff_mult)[source]¶
Get the van der Waals distance cutoff matrix.
- Parameters:
- Returns:
Van der Waals distance cutoff matrix. hbond_keys: List of hydrogen bond keys.
- Return type:
cutoff_matrix
- class gnrs.gnrsutil.molecule_bonding.MoleculeBonding[source]¶
Bases:
object- Identifies all bonded atoms in a molecule or
structure using ASE NeighborList
- Parameters:
atoms (ASE atoms object OR list of ASE atoms object) – Structure object to build molecule bonding
natural_cutoff_mult (float) – Multiplier to covalent distances for identifying molecular bonding
skin (float) – For ase.neighborlists. If skin is not zero, then extra neighbors outside the cutoff can be returned.
- get_cutoff_matrix(vdw_mult=0.85)[source]¶
Returns NxN matrix expressing a cutoff distance between intermolecular contacts in a crystal system of the given molecule.
- Parameters:
vdw_mult (float) – Multiplicative factor for the cutoff distance for vdw type contacts. A cutoff value of 0.85 is well supported by statistical analysis for these types of contacts.
- get_cutoff_matrix_vdw(vdw_mult=0.85)[source]¶
Returns NxN matrix expressing a cutoff distance between intermolecular contacts in a crystal system of the given molecule. Only uses vdw contact distances.
- Parameters:
vdw_mult (float) – Multiplicative factor for the cutoff distance for vdw type contacts. A cutoff value of 0.85 is well supported by statistical analysis for these types of contacts.
- class gnrs.gnrsutil.molecule_bonding.BondNeighborhood[source]¶
Bases:
objectReturns the bonding neighborhood of each atom for a structure. User is allowed to define a radius that the algorithm traverses to build the neighborhood for each atom. If the radius is 0, this would correspond to just return the atoms im the system.
- Parameters:
radius (int) – Radius is the number of edges the model is allowed to traverse on the graph representation of the molecule.
mb_kwargs (dict) – Keyword arguments for the molecule bonding module. The default values are the recommended settings. A user may potentially want to decrease the natural_cutoff_mult. This value is multiplied by covalent bond radii in the MoleculeBonding class. It’s highly recommended that the skin value is kept at 0. For more details see ibslib.molecules.MoleculeBonding
gnrs.gnrsutil.volume_estimation¶
This module is based on the PyMoVE algorithm implemented in: [PyMoVE](https://github.com/manny405/PyMoVE) predicting the unit cell volume of a molecule.
This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree.
- gnrs.gnrsutil.volume_estimation.predict_cell_volume(mol_path, seed=42)[source]¶
Predict the unit cell volume of a molecule.
- Parameters:
mol_path – Path to the molecule file.
- Returns:
Predicted unit cell volume.
- Return type:
- class gnrs.gnrsutil.volume_estimation.MoleculeVolumeEstimator[source]¶
Bases:
objectClass for performing molecular volume estimation using vdW radii.
- Parameters:
tol – Tolerance to converge the estimation.
iterations – Maximum number of iterations to converge.
batch – Number of samples to process in MC method at a single time.
vdW – Array of vdW radii indexed by the atomic number.
seed – Random seed.
gnrs.gnrsutil.core¶
Utility functions for Genarris.
This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree.