OELigandOptOptions
Attention
This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.
class OELigandOptOptions
This class provides an interface to modify the options for FF optimization of a ligand molecule.
See also
OELigandOptResults class
- The OELigandOptOptions class defines the following public methods:
Constructor
OELigandOptOptions()
OELigandOptOptions(const OELigandOptOptions&)
Default and copy constructors.
operator=
OELigandOptOptions& operator=(const OELigandOptOptions&)
Assignment operator.
GetForceField
const OEMolPotential::OEForceField* GetForceField() constReturns pointer to the force field used in the optimization. ** Default ** SAGE_OPENFF.
GetForceFieldType
unsigned int GetForceFieldType() constReturns the force field type used for the calculations, as unsigned int from the
OEForceFieldTypenamespace. ** Default ** SAGE_OPENFF.
GetLigandCharge
const OEProton::OEChargeEngineBase* GetLigandCharge() constReturns the charge engine used for the calculations. See
SetLigandChargemethod. ** Default ** OEChargeEngineNoOp.
GetLigandChargeType
unsigned int GetLigandChargeType() constReturns the charge type to be used for the calculations, as unsigned int from the
OELigandChargeType. Default:OELigandChargeType::CURRENT
GetNonBondCutoff
double GetNonBondCutoff() constSee
SetNonBondCutoffmethod
GetGradTolerance
double GetGradTolerance() constSee
SetGradTolerancemethod
GetMaxIter
unsigned GetMaxIter() constSee
SetMaxItermethod
GetSolventModel
unsigned GetSolventModel() constSee
SetSolventModelmethod
SetForceField
bool SetForceField(const unsigned) bool SetForceField(const std::string&) bool SetForceField(const OEMolPotential::OEForceField&)Sets force field to be used. Method takes either an unsigned from the
OEForceFieldTypenamespace, or the takes corresponding string value, or a custom forcefield. Available predefined values are: MMFF94, MMFF94S, PARSLEY_OPENFF, and SAGE_OPENFF. Default: sage
SetLigandCharge
bool SetLigandCharge(const unsigned) bool SetLigandCharge(const std::string&) bool SetLigandCharge(const OEProton::OEChargeEngineBase&)Selects the method for ligand partial charges assigment. Method takes either an unsigned from the
OELigandChargeTypenamespace, or the takes corresponding string value, or a user-defined instance of OEChargeEngineBase. It returnsfalsewhen the invalid selection is chosen,trueotherwise. The default engine OEChargeEngineNoOp will use the pre-existing charges.
SetNonBondCutoff
bool SetNonBondCutoff(const double)Sets the Non-bonded interactions cutoff for optimization. Setting a value of
0.0or less assumes that all interactions should be included without any cutoff. Default: 0.0.
SetGradTolerance
bool SetGradTolerance(const double)Sets the gradient tolerance for optimization. Default: 1.e-4.
SetMaxIter
bool SetMaxIter(const unsigned)Sets the number of maximum iterations for optimization Default: 400
SetSolventModel
bool SetSolventModel(const unsigned)Sets the type of solvent model used for the calculations of solution ligands, as an unsigned int from the
OESolventModelnamespace. Method returnsfalsewhen the invalid selection is chosen,trueotherwise. Default isOESolventModel::NoSolv