OETorsionScanOptions
class OETorsionScanOptions : public OELigandChargeOptions
Configuration options for OETorsionScan torsion-energy scans.
See also
OETorsionScanResult class
OETorsionScanfunction
- The following methods are publicly inherited from OELigandChargeOptions:
- The OETorsionScanOptions class defines the following public methods:
GetMaxIterandSetMaxIter
Constructors
OETorsionScanOptions() -> OETorsionScanOptions
OETorsionScanOptions(arg2: OETorsionScanOptions) -> OETorsionScanOptions
Default and copy constructors.
GetDelta
GetDelta() -> float
Returns the value of dihedral angle increase (in degrees).
GetForceField
GetForceField() -> OEForceField
Returns pointer to the user defined force field.
GetForceFieldType
GetForceFieldType() -> int
Returns the type of force field defined.
GetMaxIter
GetMaxIter() -> int
Returns the number of maximum iterations during optimization.
GetPenaltyForceConstant
GetPenaltyForceConstant() -> float
Returns force constant for the dihedral angle constraint used for torsion scan.
GetSolvationType
GetSolvationType() -> int
Returns the type of solvation model used for torsion scan, see OETorsionScanOptions.SetSolvationType
for more details.
GetTolerance
GetTolerance() -> float
Returns the tolerance during optimization.
GetUseInternalCoord
GetUseInternalCoord() -> bool
Returns true if SetUseInternalCoord
is set to using internal coordinates for optimization while the torsion selected for scanning
is fixed.
GetUserDefinedAngles
GetUserDefinedAngles() -> OEDoubleVector
Returns vector of user defined dihedral angles for which torsion scan will be done.
GetUseSinglePointPB
GetUseSinglePointPB() -> boolReturns
trueif theOETorsionScanOptions.SetUseSinglePointPBis set to correcting the torsion scan with a PB solvation energy.
GetNumStarts
GetNumStarts() -> intReturns the number of starts for the torsion scan. See
OETorsionScanOptions.SetNumStartsfor more details
GetOverlapDiv
GetOverlapDiv() -> intReturns the divisor used for determining the size of the overlaps between starts. See
OETorsionScanOptions.SetOverlapDivfor more details.
SetDelta
SetDelta(value: float) -> boolDetermines the number of points in that is \((360.0/delta+1)\) in the \([0.0^{\circ}, 360.0^{\circ}]\) range for the scan. Minimum and maximum values are
0.1and60.0degrees respectively. The default value is5.0degrees. When the given value ofdeltais outside the range,falseis returned.
SetForceField
SetForceField(value: OEForceField) -> bool SetForceField(value: int) -> bool SetForceField(value: str) -> bool SetForceField(value: oeistream) -> boolSets user defined force field which will be used for torsion scan.
SetForceFieldType
SetForceFieldType(ff: int) -> boolSelects the force field for the scan. The allowed values for parameter
typeareOEForceFieldType_MMFF94S(default),OEForceFieldType_MMFF94,OEForceFieldType_SMIRNOFF99FROSST,OEForceFieldType_PARSLEY_OPENFF100,OEForceFieldType_PARSLEY_OPENFF111,OEForceFieldType_PARSLEY_OPENFF121,OEForceFieldType_PARSLEY_OPENFF131,OEForceFieldType_SAGE_OPENFF200, andOEForceFieldType_SAGE_OPENFF210Method returnsfalseif other than the above values are passed.
SetMaxIter
SetMaxIter(value: int) -> boolSets the number of maximum iterations for optimization.
SetSolvationType
SetSolvationType(value: int) -> boolSelects the solvation model used for the scan. The allowed values of
typeare:OESolventModel_NoSolv(vacuum) andOESolventModel_Sheffield(aqueous solution, default). Method returnsfalseif invalid solvation model is passed.
SetPenaltyForceConstant
SetPenaltyForceConstant(value: float) -> boolOverwrites a default value (
1e4) for force constant in dihedral angle constraint used for torsion scan. Although for most molecules a default value works fine, in some cases a molecular torsion might be overconstrained or underconstrained. This method allows to avoid those two extremes. Method returnsfalseif invalid value of force constant is passed.
SetTolerance
SetTolerance(value: float) -> boolSets the tolerance limit for optimization.
SetUseInternalCoord
SetUseInternalCoord(value: bool) -> boolOverwrites a default method for torsion scan, which applies a large enough penalty force to keep the value of the dihedral angle constant during optimization. When the parameter
useIntis set totrue, optimization is performed in 3N-5 internal coordinates while the selected torsion for which a scan is done is kept frozen.
SetUserDefinedAngles
SetUserDefinedAngles(value: OEDoubleVector) -> boolTakes a vector of user selected dihedral angles (in deg) for which torsion scan will be done. Vector passed as argument should contain at least 2 values, otherwise
falseis returned.
SetUseSinglePointPB
SetUseSinglePointPB(value: bool) -> boolCorrects the final scan values with a PB solvation energy, when the solvation model is set to
OESolventModel_Sheffield(seeOETorsionScanOptions.SetSolvationType). Method returnsfalseif the solvation model is not correctly set.
SetNumStarts
SetNumStarts(value: int) -> boolSets the number of starts for the torsion scan. The default value is
2, meaning scans will start at 0 and 180 degrees. The scans are performed both forwards and backwards. This setting is not compatible with settingOETorsionScanOptions.SetUserDefinedAngles, and will be ignored in case user defined angles are supplied.
SetOverlapDiv
SetOverlapDiv(value: int) -> boolSets the divisor used for determining the size of the overlaps between starts. If set to zero or one, will perform full 360 forwards and backwards scans for each start, meaning the number of starts will increase the computational cost linearly. To prevent the linear increase in cost for additional starts, the overlap divisor in combination with a number of starts
> 1, will first divide the angle space by the number of starts, then to ensure some overlap between the scanned angles will take the remaining space and divide by this value (default value is4). For example with the default values of 2 starts, scans would be performed from0->180,0->-180,180->360, and180->0. The180degree remainder (if a full scan would have been done) is instead divided by4, which equals45degrees, which is then added to each scan to ensure overlaps of the curves. The resulting scan will look like0->225,0->-225,180->45(through360), and180->-45. The larger the overlap divisor the smaller the overlaps between curves. This setting is not compatible with settingOETorsionScanOptions.SetUserDefinedAngles, and will be ignored in case user defined angles are supplied.