Trees | Indices | Help |
|
---|
|
A module to assign bond orders based on molecular geometry. Assigns double and triple bonds to structures based on molecular geometry (bond length, bond angles, and dihedral angles). Useful when importing ligands from PDBs into Maestro. Please check the output structure for errors and compare it to the molecular formula. If this script assigns bond orders incorrectly to a reasonable structure, please email the maestro file of the structure to help@schrodinger.com. Functions: There is a single public function: assignbondorders.assign_st(input_st, atoms=None, neutralize=False, problem_only=False, skip_assigned_residues=True) Assigns bond orders to atom list [atoms] of structure input_st and returns a list of bonds that were adjusted. Bond orders are assigned for all atoms if the atoms list is empty or not specified. Copyright (c) Schrodinger, LLC. All rights reserved.
|
|||
AssignBondOrders |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
DEBUG = False hash(x) |
|||
logger = log.get_output_logger("schrodinger.structutils.assign
|
|||
DEBUG_AROMATIC = True hash(x) |
|||
DEBUG_BOND_SCORE = True hash(x) |
|||
DEBUG_GROUP = True hash(x) |
|||
DOUBLE_BOND_THRESHOLD = 5.0
|
|||
MAX_VALENCE =
|
|||
ATOM_RADII_DICT =
|
|||
ASSIGNED_AROMATIC = 0 hash(x) |
|||
NOT_AROMATIC = 1
|
|||
NOT_ASSIGNED = 2
|
|||
__package__ =
|
|
Returns ideal length of a single-order bond between specified atoms. If either of the atoms is non-common, returns 0.0. |
Calculates the average of all bond angles around the input atom. Returns 0 if the angle can not be calculated. Close to 109 degrees = tetrahedral Close to 120 degrees = planar Close to 180 degrees = linear |
Calculates the average dihedral angle of the bond between the specified atoms. Close to 0 (zero) is likely to be double bond. |
Get the coordinates of the ring atoms as a numpy array. If |
Get vectors normal to the planes described by each ring-edge and the center of the ring. Assumes that atoms are in order. |
Calculate the ring planarity. Very planar rings have a planarity of < 1. Assumes that atoms are in order. |
Return atoms of the residue residue which are also in the specified <atoms> list. Will return an empty list if this residue already has bond orders assigned. |
Performs the assign-bond-order algorithm on the supplied structure. If the atom list is specified, only those atoms are fixed. neutralize - protonate carboxylic acids. problem_only - assign only to atoms with PDB convert problem of 4 (orange atoms). Not compatible with <atoms> argument. skip_assigned_residues - If True, bond orders are not assigned to residues that have double or triple bonds, even if that residue's atoms are in <atoms>. Not compatible with <problem_only> option. Returns a list of (atom1, atom2, order) for every bond whose order was altered. |
Returns True if all bond orders are OK in the specified structure. Can be given a list of atoms to check bond orders of. If not list is specified and all flag is set to True, all atoms are checked; otherwise only atoms with a PDB convert error (appear orange in Maestro) are checked. NOTE: atoms and all options are mutually exclusinve. |
|
logger
|
MAX_VALENCE
|
ATOM_RADII_DICT
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Feb 3 06:04:46 2016 | http://epydoc.sourceforge.net |