Package schrodinger :: Package application :: Package mcpro :: Module zmat :: Class Zmat
[hide private]
[frames] | no frames]

Class Zmat

class to store a single Zmat and related objects

Instance Methods [hide private]
 
__init__(self, title='', prot='', startCt=None, startReorderedCt=None, endCt=None, endReorderedCt=None, atom=[], rest=[], geo_var=[], filename='', tol={}, printZmatAtomLigStart=None, outfh=None)
 
__copy__(self)
Method to copy a Zmat object
 
modify_title(self, title)
 
create_zmat(self, startCt=None, endCt=None, prot='', title='', protFile='', consFile='', consSpec=0, debug=0, jobname='', inpProtCt=None, resStart=4.0, consStart=8.0, currentNumericType=800, flexSolute='flex', oplsvers=2005, bndTol='', angTol='', torTol='', initDum=1, pdb_version=3.0)
Create an MCPRO zmatrix from input cts for protein or ligand systems...
 
reduced_set(self, list, delim=' ')
Takes a list, orders it and returns a reduced representation string, ie.
 
forceConsistentResnum(self, ct)
Return a ct where all atoms have the same residue number taken from the first atom.
 
get_residues(self, atomsList, ct)
Take a list of atoms and return the list of residues those atoms are part of
 
getLargestNumericType(self)
Routine identifies the largest numeric atomtype (linking atom numbers to Coul/vdW parameters - can be taken from atom or QM blocks
 
rigidify_geo_vars(self)
method to ensure no geometry variation is set as flexible in the MCPRO zmatrix
 
read_zmat(self, filename, startCt=None, endCt=None, prot='', nocap=0, nonFepDummies=[])
read a boss/mcpro zmat ...
 
add_lig_solvent_cap(self, curr_ct)
solvent cap will be added to the current ligand zmat at the center of atoms defined in the incoming ct.
 
add_prot_solvent_cap(self, capCt)
solvent cap will be added to the current zmat at the center of atoms defined in the incoming ct.
 
merge(self, ligZmat, addTerz, resname="LIG")
lig_zmat will be merged at the end of the self zmat Note that lig_zmat is expected to be a ligand with startReorderedCt defined and self is expected to be a protein wtih protReorderedCt defined.
 
myslice(self, string, start, end)
Create slices from string starting at postion start and ending at end.
 
conv_int(self, string)
Convert boss integers such as '0002'to ' 2'
 
print_Zmat(self, swap, end_available, fileH, ligOnly=0)
print Zmat to a file, if ligOnly=1 ligand residue numbering will start at 1
 
adapt_dummy_types(self, ct, end)
set the proper atom type for an FEP dummy atom
 
set_geometry_variations(self, end_ct, nonFepDummies)
Set geometry variations from differences in end_ct and zmat object
Method Details [hide private]

create_zmat(self, startCt=None, endCt=None, prot='', title='', protFile='', consFile='', consSpec=0, debug=0, jobname='', inpProtCt=None, resStart=4.0, consStart=8.0, currentNumericType=800, flexSolute='flex', oplsvers=2005, bndTol='', angTol='', torTol='', initDum=1, pdb_version=3.0)

 
Create an MCPRO zmatrix from input cts for protein or ligand systems
For ligands use Wolfgang's preparation method
For proteins use pepz   
Options:
    currentNumericType:  value numeric types will begin with (if possible)
    flexSolute:   "flex" for flexible solutes, "fixed" for rigid solutes 

reduced_set(self, list, delim=' ')

 

Takes a list, orders it and returns a reduced representation string, ie. [ 1 2 3 4 5 ] would return 1-5

forceConsistentResnum(self, ct)

 

Return a ct where all atoms have the same residue number taken from the first atom. If the first atom doesn't have a residue number the number 999 is used

read_zmat(self, filename, startCt=None, endCt=None, prot='', nocap=0, nonFepDummies=[])

 
read a boss/mcpro zmat 
nocap = 0 read all atoms including CAP
        1 read all atoms except CAP  

add_prot_solvent_cap(self, capCt)

 

solvent cap will be added to the current zmat at the center of atoms defined in the incoming ct. Both zmat and incoming ct are expected to have the same frame of reference

merge(self, ligZmat, addTerz, resname="LIG")

 

lig_zmat will be merged at the end of the self zmat Note that lig_zmat is expected to be a ligand with startReorderedCt defined and self is expected to be a protein wtih protReorderedCt defined. These cts must be in the same reference frame. If addTerz is True than TERZ will be added between self and the merged molecule. If addTerz is False all of the possible 6 degrees of intramolecular freedom will be added to the zmatrix

myslice(self, string, start, end)

 

Create slices from string starting at postion start and ending at end. Really shouldn't be needed but having weird problems with slices in this script