Package schrodinger :: Package structutils :: Module build
[hide private]
[frames] | no frames]

Module build

Functions for modifying chemical structures.

Copyright Schrodinger, LLC. All rights reserved.

Functions [hide private]
 
_map_to_dict(renumber_map)
Converts a renumbering map to a dictionary and deletes it; returns the newly created dictionary.
 
connect(st, atomlist1, atomlist2)
Perform a connect between the atoms in the CT "st" based on the heavy atoms in atomlist1 and those in atomlist2.
 
attach_fragment(st, fromatom, toatom, fraggroup, fragname, direction=None)
Attach fragment <fragname> of group <fraggroup> to <fromatom> in place of atom <toatom> Will use growbond atom labels in the incoming fragment.
 
attach_structure(st, st_atom_from, st_atom_to, frag_st, frag_atom_from, frag_atom_to)
Similar to attach_fragment(), but takes a fragment CT instead of name.
 
mutate(st, atom_in_res, res_type)
Mutate the residue containing atom number 'atom_in_res' in Structure object 'st' to be of residue type 'res_type'.
 
add_hydrogens(st, treatment='All-atom with No-Lp', atom_list=None)
Adds hydrogens to the Structure 'st'.
 
delete_hydrogens(st)
Deletes hydrogens from the Structure 'st'.
 
reorder_atoms(st, new_order)
Create a new structure from the provided one, with atoms reordered as specified in the new_order list.
Variables [hide private]
  maestro = None
hash(x)
  _initializer = mminit.Initializer([mm.mmbuild_initialize, mm.m...
  __package__ = 'schrodinger.structutils'
Function Details [hide private]

connect(st, atomlist1, atomlist2)

 

Perform a connect between the atoms in the CT "st" based on the heavy atoms in atomlist1 and those in atomlist2. Usually each list will contain one atom each, from different molecules. Hydrogens bound to the specified atoms are removed as necessary.

Returns a dictionary of atom renumbering. Keys are old atom numbers, values are new atom numbers (or None if the atom was deleted, i.e. a hydrogen).

attach_fragment(st, fromatom, toatom, fraggroup, fragname, direction=None)

 

Attach fragment <fragname> of group <fraggroup> to <fromatom> in place of atom <toatom> Will use growbond atom labels in the incoming fragment.

Optionally specify a <direction> string. Usually one of the following: 'forward', 'backward', 'forward(N-to-C)', 'backward(C-to-N)'.

Returns a dictionary of atom renumbering. Keys are old atom numbers, values are new atom numbers (or None if the atom was deleted, i.e. a hydrogen).

attach_structure(st, st_atom_from, st_atom_to, frag_st, frag_atom_from, frag_atom_to)

 

Similar to attach_fragment(), but takes a fragment CT instead of name. From and to atoms in the fragment must also be specified.

Returns a dictionary of renumbered atoms. Keys are old atom numbers, values are new atom numbers or None if the atom was deleted.

mutate(st, atom_in_res, res_type)

 

Mutate the residue containing atom number 'atom_in_res' in Structure object 'st' to be of residue type 'res_type'. The residue type must be one of the 20 amino acids (HIS/HIP/HIE variants are allowed). It's not an error if the residue is already of that type

Returns a dictionary of renumbered atoms. Keys are old atom numbers, values are new atom numbers or None if the atom was deleted.

add_hydrogens(st, treatment='All-atom with No-Lp', atom_list=None)

 

Adds hydrogens to the Structure 'st'. 

Default treatment is suitable for nearly all purposes. Hydrogens are
added in standard geometry and no attempt is made to optimize the
treatment in order to maximize hydrogen bonds, etc. 

Parameters

atom_list
    A list of atom indices (or _StructureAtom objects) to add hydrogens to
    (default all atoms).

reorder_atoms(st, new_order)

 

Create a new structure from the provided one, with atoms reordered as specified in the new_order list.

Parameters:
  • new_order (list of ints) - The new_order list must be the same size as the number atoms in the provided structure, and atom indices begin at one.

Variables Details [hide private]

_initializer

Value:
mminit.Initializer([mm.mmbuild_initialize, mm.mmfrag_initialize], [mm.\
mmbuild_terminate, mm.mmfrag_terminate])