Package schrodinger :: Package application :: Package glide :: Module glide
[hide private]
[frames] | no frames]

Module glide

Classes [hide private]
  Constraint
Class defining a docking constraint in the receptor.
  DonorConstraint
H-Bond constraint that was specified as a *receptor* donor atom.
  AcceptorConstraint
H-Bond constraint that was specified as a *receptor* acceptor atom.
  MetalConstraint
This constraint was specified as a metal receptor atom.
  PositionalConstraint
  NOEConstraint
  MetCoordConstraint
  HydrophobicConstraint
  FeaturePattern
Class defining a constraint feature pattern.
  ConstraintGroup
Class defining a constraint group.
  GlideJob
Class for writing Glide input files - either Gridgen or Docking.
  Gridgen
Class for writing Glide Grid Generation input files.
  Dock
Class for generating Glide docking input files.
Functions [hide private]
A list of Constraint objects.
read_constraints(gridfile)
Reads the receptor constraints from the specified grid file.
 
read_yaml()
Read mmim_keywords.json and return a list of objects.
 
read_keywords_file()
Read the mmim_keywords.json file from the mmshare data directory and return a list of objects.
 
keyword_spec(jobtypes, include_undocumented=False)
Return a string with the specification of the mmim keywords that are valid for the jobtypes given.
 
validation_specs(jobtype)
Return a list of validation specs for a given jobtype (e.g., 'docking' or 'gridgen') or list of jobtypes.
float
calc_ligand_size(coords)
Given a list of (x, y, z) coordinates for all atoms in a ligand, calculate the ligand size.
tuple of lists, e.g. ([10, 10, 10], [-5.9863, -1.887 , -0.2703])
get_default_box_size(struct, ligand_asl='all')
Gets the default box size for a grid.
 
get_glide_job(input_file)
Return a Gridgen or Dock object given an SIF input filename or keyword dictionary.
Variables [hide private]
  __doc__ = ...
  DEBUG = os.environ.has_key('SCHRODINGER_PYTHON_DEBUG')
  HYDROPHOBIC = 'Hydrophobic'
  HBOND_DONOR = 'H-bond donor'
  HBOND_ACCEPTOR = 'H-bond acceptor'
  METAL = 'Metal'
  POSITIONAL = 'Positional'
  NOE = 'NOE'
  METCOORD = 'Metal coordination'
  NA = 'NA'
  mmim_cons_types = [NA, HYDROPHOBIC, HBOND_DONOR, HBOND_ACCEPTO...
  FREE = 'free'
  FIXED = 'fixed'
  PENALIZE = 'penal'
  TRANS = 'trans'
  HTVS = 'HTVS'
  SP = 'SP'
  XP = 'XP'
  PV = 'poseviewer'
  LIB = 'ligandlib'
  PV_SD = 'poseviewer_sd'
  LIB_SD = 'ligandlib_sd'
  ALL = -1
  extra_specs = {}
  _special_keys = set(['JOBTYPE', 'INNERBOX', 'OUTERBOX', 'NREQU...
  _old_keywords = {}
  torcons_section_allowed_keywords = set(['ALL', 'SMARTS', 'ATOM...
  consgroup_section_allowed_keywords = set(['USE_CONS', 'NREQUIR...
  mmim_to_inputconfig_type_map = {'boolean': 'boolean', 'boolean...
Function Details [hide private]

read_constraints(gridfile)

 

Reads the receptor constraints from the specified grid file.

The constraints are actually read from the *.cons file. The resulting constraint "type" refers to the atom type in the RECEPTOR, where applicable. Specifically, H-bond and metal-binding constraints.

The matching ligand atom for an H-bond donor receptor constraint should be an H-bond acceptor (by default). Likewire the matching ligand ato for and H-bond acceptor receptor constraint should be a donor (polar H atom).

Other constraint types don't refer to any specific atom type (Positional, NOE), or require the same atom type in the ligand as in the receptor (Hydrophobic) so the constraint type is valid for both molecules (ligand and receptor).

To get the constraint label, simply do str(Constraint).

Parameters:
  • gridfile - The gridfile name; should be either a *.grd or *.zip file.
Returns: A list of Constraint objects.

read_yaml()

 

Read mmim_keywords.json and return a list of objects. The read_yaml() name was retained for compatibility.

keyword_spec(jobtypes, include_undocumented=False)

 

Return a string with the specification of the mmim keywords that are valid for the jobtypes given. Jobtypes should be an iterable with items such as 'docking', 'multi_docking', or 'gridgen'. Keywords for jobtype 'all' are always included.

By default, undocumented keywords are not included in the return value, but that behavior can be overridden by setting 'include_undocumented' to True.

validation_specs(jobtype)

 

Return a list of validation specs for a given jobtype (e.g., 'docking' or 'gridgen') or list of jobtypes. This includes not only the keywords returned by keyword_spec(jobtype), but also some extra keywords that are supported by glide.py but not by mmim.

calc_ligand_size(coords)

 

Given a list of (x, y, z) coordinates for all atoms in a ligand, calculate the ligand size. This value should be added to the innerbox to get the default outerbox.

Parameters:
  • coords (List of 3-item tuples.) - List of coordinates for all ligand atoms.
Returns: float
The size of the ligand.

get_default_box_size(struct, ligand_asl='all')

 

Gets the default box size for a grid. This returns the outer and inner box lengths.

Parameters:
  • struct (structure.StructureReader) - The structure containing the reference ligand
  • ligand_asl (str) - The ASL for the ligand. Default: "all"
Returns: tuple of lists, e.g. ([10, 10, 10], [-5.9863, -1.887 , -0.2703])

get_glide_job(input_file)

 

Return a Gridgen or Dock object given an SIF input filename or keyword dictionary. If it is a filename, use it to set JOBNAME (e.g. for "dir/myjob.in", set it to "myjob").


Variables Details [hide private]

__doc__

Value:
"""
Classes for creating Grid Generation and Ligand Docking DICE (Impact) \
input
files from user-friendly keyword/value pairs.

The classes use the mm.mmim* wrappers to convert the keywords and valu\
es into
the actual DICE input files.
...

mmim_cons_types

Value:
[NA, HYDROPHOBIC, HBOND_DONOR, HBOND_ACCEPTOR, NA, METAL, POSITIONAL, \
NOE, METCOORD, NA]

_special_keys

Value:
set(['JOBTYPE', 'INNERBOX', 'OUTERBOX', 'NREQUIRED_CONS', 'USE_CONS', \
'PRECISION', 'READBASE', 'READZIP', 'WRITEZIP', 'XCENT', 'YCENT', 'ZCE\
NT', 'GRID_CENTER', 'GRID_CENTER_ASL', 'LIGAND_MOLECULE', 'HBOND_CONST\
RAINTS', 'METAL_CONSTRAINTS', 'POSIT_CONSTRAINTS', 'NOE_CONSTRAINTS', \
'METCOORD_CONSTRAINTS', 'METCOORD_SITES'])

torcons_section_allowed_keywords

Value:
set(['ALL', 'SMARTS', 'ATOMS', 'USEVAL', 'TORVAL'])

consgroup_section_allowed_keywords

Value:
set(['USE_CONS', 'NREQUIRED_CONS'])

mmim_to_inputconfig_type_map

Value:
{'boolean': 'boolean', 'boolean_array': 'bool_list', 'integer': 'integ\
er', 'integer_array': 'int_list', 'float': 'float', 'float_array': 'fl\
oat_list', 'string': 'string', 'string_array': 'string_list',}