Class for ionizing structures (part of LigPrep).
|
__init__(self,
loglevel=0,
specfile=None,
ph=None,
ph_thresh=None,
pk_thresh=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
|
initializeMmlibs(self)
Initialize the mmlibs libraries. |
|
|
|
readFragmentLibrary(self,
flib_name)
Read the ionized frag library and populate self.frags dictionary. |
|
|
|
readSpecFile(self)
Put cwd and $HOME/.schrodinger/mmshare at the front of the mmfile
search path, to allow user "ionizer.ini" in either of those
dirs to override installed data file in the mmshare data dir. |
|
|
Spec
|
ionizeCommandParser(self,
linenum,
cmd,
subs_patt,
frag_name,
pka)
Validate mmsubs pattern spec; if all goes well, will store compiled
pattern matcher below |
|
|
|
|
|
_treatStructure(self,
st)
This method generates the ionization states for the specified
structure, and appends them to the self.output_structures list. |
|
|
|
collectIonCandidates(self,
st)
Check CT for matches to Acid/Base/Exclude patterns, in same order as
supplied in control spec file; for non-Excluded, final Acid/Base
matches, store specs in hash indexed on ion center atom number; also
get ordered list of candidate atom numbers. |
|
|
|
_expandCT(self,
st,
input_ct_chargef_tot,
ion_cand_atoms,
ion_candidates)
Basically a continuation of _treatStructure(). |
|
|
|
generateStateCT(self,
st,
total_charge,
state_num,
state_fuse_atoms,
ion_candidates,
ycost_total,
zcost_total)
Generate the CT for the specificed ionization state. |
|
|
|
fuseIonFragment(self,
output_st,
fuse_atom_orig,
pre_fuse_center,
renumbered_fuse_atoms,
cand)
This function coordinates the ionization of one ionizable group, via
mmbuild_fuse() of the appropriate ionizing fragment onto the group's
ionization center atom (same method as Maestro builder uses for Place
onto non-terminal atom); function also takes care of various property
adjustments in the modified CT. |
|
|
|
saveIonCenterProps(self,
st,
center_anum)
Save certain properties of an ion center atom before the ionizing
fuse. |
|
|
|
|
|
reviseIonizedGroup(self,
st,
center_atom)
Function to apply above reset function to all atoms of newly ionized
group. |
|
|
|
addIonProperties(self,
st,
state_num,
total_charge,
center_atoms_string,
center_types_string,
center_atoms_orig_string)
This function writes CT-level properties recording several details of
a particular ionization state; it's intended to be used on CTs
generated for output; the values expressed in the properties must be
calculated beforehand; all of these properties get marked as
dependent on CONNECTIVITY. |
|
|
|
addCostProperties(self,
st,
ycost_total,
zcost_total)
For use in pH mode only, this function adds CT-level properties
recording the free energy costs associated with this particular
ionization state. |
|
|
List of structures.
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
keep_props
Whether to keep any structure-based properties from the input CT in
the output CTs.
|
|
logger
Logger instance.
|
|
max_abstotq
Maximum absolute value of total charge.
|
|
max_groups
Maximum ionizational groups to handle (up to MAX_GROUPS_MAX).
|
|
max_ions
Maximum number of ionizations.
|
|
max_outcts
Maximum output CTs per input CT.
|
|
retain
Whether to retain the input structure in the output.
|
|
retain_lab
Retain the input structure that has "i_lp_orig_ion_str"
property set.
|
|
retitle_with
Prefix for adding ion state numbers to output CT titles.
|
|
show_final_list
Report final ionization candidate list to logger.
|
|
show_match_atoms
Whether to report substructure pattern matches to the logger (log
file).
|
|
show_skips
Whether to show skipped state generations.
|