class OEOmegaOptions
See also
Code Examples
OEOmegaOptions(const unsigned int sampling = OEOmegaSampling::Sparse)
OEOmegaOptions(const OEOmegaOptions &)
Default and copy constructors.
void ClearFixFile()
Clears out the fragment that has been restrained. This allows the OEOmega object to be used in an unrestrained manner after it had previously been used with a fixed fragment.
unsigned int GetBuildForceField() const
Returns the force field type currently set for building structures from 1D/2D to 3D, as an unsigned int from the OEMMFFSheffieldFFType namespace.
bool GetCanonOrder() const
Returns the state of the canon order flag. If true, the OEOmega instance will order atoms into canonical order before any other calculations.
bool GetCommentEnergy() const
Gets the state of the comment energy flag. If true, OEOmega will place conformer energy in kcal/mol into the comments that appear if the output is written to a MOL2 file.
double GetDielectric() const
Gets the dielectric applied to the Coulomb term of the force field.
std::vector<double> GetEnergyRange() const
Returns a vector of the energies used in conjunction with the range increment for a varying energy window. All energies are in units of kcal/mol.
unsigned int GetEnumNitrogen() const
Returns the nitrogen enumeration setting as an unsigned int from the OENitrogenEnumeration namespace.
bool GetEnumRing() const
Gets the state of the enum ring flag. If true, Omega will enumerate alternate ring conformations as part of the conformer search.
double GetExponent() const
Gets the exponent applied to the inverse distance calculation of the Coulomb term of the force field.
bool GetFixDeleteH() const
Gets the state of the fix delete H flag. If true, hydrogens will be stripped from the fix file molecule before it is used to match input structures.
unsigned int GetFixMaxMatch() const
Gets the state of the fix max match flag. This value controls the max number of different substructure search matches will be used. Only matters if the fixfile has more than one subsearch match in the input molecules.
const OEChem::OEMolBase &GetFixMol() const
Gets the molecule used to specify the coordinates for a substructure of the input molecules.
const OEChem::OESubSearch &GetFixSubSearch() const
Gets the substructure search for fixed fragments.
bool GetFixUniqueMatch() const
Gets whether only the unique substructure matches of the fixfile/fixmol are used for coordinate replacement.
bool GetFromCT() const
Gets whether the algorithm should generate an initial set of 3D coordinates using only the connection table of the input molecule.
bool GetIncludeInput() const
Gets whether the input conformer will be included in the output file.
std::vector<unsigned int> GetMaxConfRange() const
Gets the maximum number of conformers to be output for a structure based on the number of rotatable bonds in the structure.
unsigned int GetMaxConfs() const
Returns the maximum number of conformers to be returned by OEOmega.operator().
double GetMaxSearchTime() const
Gets the time limit (in seconds) for generating conformers for each molecule.
std::vector<double> GetRMSRange() const
Gets the RMS cutoff used for duplicate conformer removal based on the number of rotatable bonds in the structure.
double GetRMSThreshold() const
Gets the minimum Root Mean Square (RMS) Cartesian distance below which two conformers are duplicates.
unsigned int GetRangeIncrement() const
Get the number of rotatable bonds range used with the OEOmegaOptions.SetMaxConfRange, OEOmegaOptions.SetRMSRange, and OEOmegaOptions.SetEnergyRange.
bool GetRotorOffset() const
Returns true if rotor offset compress is turned on, returns false if it is turned off.
bool GetSampleHydrogens() const
Returns true if hydrogen sampling is turned on, returns false if it is turned off.
unsigned int GetSearchForceField() const
Returns the force field type currently set to calculate strain energies of conformers generated during a torsion search, as an unsigned int from the OEMMFFSheffieldFFType namespace.
bool GetStrictAtomTypes() const
Returns the setting for strict atomtyping in the forcefield.
bool GetStrictStereo() const
Returns the setting for the strict stereochemistry requirement.
const OETorLib &GetTorLib() const
Retrieves a constant reference to the OETorLib instance as currently set.
bool GetTorsionDrive() const
Gets whether to assign torsion from OEOmegaOptions.GetTorLib to input molecules.
bool SetBuildForceField(const unsigned int)
Sets the force field used for constructing fragments that are assembled to build an initial model of the input structure using an unsigned int from the OEMMFFSheffieldFFType namespace. Method returns false when the invalid selection is chosen, true otherwise.
void SetCanonOrder(const bool)
Sets the state of the canon order flag. If true, the OEOmega instance will order atoms into canonical order before any other calculations.
void SetCommentEnergy(const bool)
Sets the state of the comment energy flag. If true, the energy is written in kcal/mol in a comment field of the molecule.
void SetDielectric(const double)
Sets the dielectric applied to the Coulomb term of the force field.
void SetEnergyRange(const std::vector<double> &)
void SetEnergyRange(const std::string &rangeString)
This sets the energy cutoff in kcal/mol used as an accept or reject criteria for conformers depending on the number of rotatable bonds in the structure. Any conformer that has a calculated strain energy less than the sum of the energy window and the energy of the global minimum conformer will be accepted. Conformers with strain energies above this threshold are rejected. The energy range is given as a comma separated list of values that correspond to the range increment setting. For example, “5.0, 10.0, 15.0, 20.0” used with a range increment of 3 sets the energy window to 5.0 kcal/mol for structures with zero to two rotatable bonds, 10.0 kcal/mol for structures with three to five rotatable bonds, and so on. The energy window for structures with more rotors than the highest energy range value specified will be taken as the highest specified value.
void SetEnergyWindow(const double)
This sets the energy window in kcal/mol used as an accept or reject criteria for conformers. Any conformer that has a calculated strain energy less than the sum of the energy window and the energy of the global minimum conformer will be accepted. Conformers with strain energies above this threshold are rejected.
bool SetEnumNitrogen(const unsigned int)
Sets nitrogen enumeration using an unsigned int from the OENitrogenEnumeration namespace. Method returns false when the invalid selection is chosen, true otherwise.
void SetEnumRing(const bool)
Sets the state of the enum ring flag. If true, Omega will enumerate alternate ring conformations as part of the conformer search.
void SetExponent(const double)
Sets the exponent applied to the inverse distance calculation of the Coulomb term of the force field.
void SetFixDeleteH(const bool)
Sets the state of the fix delete H flag. If true, hydrogens will be stripped from the fix file molecule before it is used to match input structures.
void SetFixFile(OEChem::oemolistream &,
unsigned int aopts=OEChem::OEExprOpts::DefaultAtoms,
unsigned int bopts=OEChem::OEExprOpts::DefaultBonds)
Sets a molecule file for fixed fragments.
void SetFixMaxMatch(const unsigned int)
Sets the state of the fix max match flag. This value controls the max number of different substructure search matches will be used. Only matters if the fixfile has more than one subsearch match in the input molecules.
void SetFixMol(const OEChem::OEMolBase &,
unsigned int aopts=OEChem::OEExprOpts::DefaultAtoms,
unsigned int bopts=OEChem::OEExprOpts::DefaultBonds)
Sets a molecule used to specify the coordinates for a substructure of the input molecules. The substructure will be fixed during conformation search.
void SetFixQuery(const OEChem::OESubSearch &)
Sets the substructure search for fixed fragments.
void SetFixRMS(const double)
Sets the RMS superposition criteria. It can be loosened to allow suboptimal superpositions to succeed in spite of the poor geometric complementarity.
void SetFixSmarts(const std::string &)
This method sets a string for SMARTS pattern matching to fix a portion of the molecule. 3D coordinates must be available from either the input file with OEOmegaOptions.SetFromCT set to false or from having OEOmegaOptions.SetFixMol set.
void SetFixUniqueMatch(const bool)
Sets whether only the unique substructure matches of the fixfile/fixmol are used for coordinate replacement. A unique substructure match is defined as a match that does not cover the identical set of target atoms as any other substructure match in a set.
void SetFromCT(const bool)
Sets whether the algorithm should generate an initial set of 3D coordinates using only the connection table of the input molecule.
void SetIncludeInput(const bool)
Sets whether the input conformer will be included in the output file.
void SetMaxConfRange(const std::string &rangeString)
void SetMaxConfRange(const std::vector<unsigned int> &)
Sets the maximum number of conformers to be output for a structure based on the number of rotatable bonds in the structure.
bool SetMaxConfs(const unsigned int)
This method sets the maximum number of conformers to be returned by OEOmega.operator().
void SetMaxRotors(const unsigned int)
Sets the maximum number of rotatable bonds cutoff. The algorithm will not search for conformers of molecules that have more rotors than the cutoff.
void SetMaxSearchTime(const double)
Sets a time limit (in seconds) for generating conformers for each molecule.
void SetRMSRange(const std::vector<double> &)
void SetRMSRange(const std::string &rangeString)
Sets the RMS cutoff used for duplicate conformer removal based on the number of rotatable bonds in the structure.
void SetRMSThreshold(const double)
Sets the minimum RMS Cartesian distance below which two conformers are duplicates
void SetRangeIncrement(const unsigned int)
Set the number of rotatable bonds range used with the OEOmegaOptions.SetMaxConfRange, OEOmegaOptions.SetRMSRange, and OEOmegaOptions.SetEnergyRange.
void SetRotorOffset(const bool)
Passing in a value of true will turn on rotor offset compress and passing in a value of false will turn it off. The default value is set to false for Omega TK and set to true in the OMEGA application. It is safe to have this compression algorithm turned on when molecules are passed directly to OEWriteMolecule; however, handling the coordinates of molecules after running Omega is not safe in the toolkits so the default is false.
void
SetRotorPredicate(const OESystem::OEUnaryPredicate<OEChem::OEBondBase> &pred)
Sets a predicate to decide whether a bond is rotatable.
void SetSampleHydrogens(const bool)
Sets whether hydrogens will be sampled. This option will enable sampling of hydrogen locations for -OH, -SH, and amines.
void SetSDEnergy(const bool)
Sets whether the energy in kcal/mol is to be written in an SD tag.
bool SetSearchForceField(const unsigned int)
Sets the force field used to calculate strain energies of conformers generated during a torsion search using an unsigned int from the OEMMFFSheffieldFFType namespace. Method returns false when the invalid selection is chosen, true otherwise.
void SetStrictAtomTypes(const bool)
Starting in version 2.4.0 the default is for a molecule to fail if any atom does not have a valid MMFF atom type. Calling this method with false will allow the atom typer to look for a different atom type of the same element and replace the failing atom type with a valid one that is “close enough”.
void SetStrictStereo(const bool)
Starting in version 2.4.0, by default OMEGA will fail any molecule with unspecified stereochemistry, with the exception of unspecified invertible nitrogens. Setting this to false will induce the previous behavior of choosing a random set of stereochemistry for the molecule.
bool SetTorLib(const OETorLib &torlib)
Sets the torsion library by passing in an OETorLib instance.
void SetTorsionDrive(const bool)
Sets whether to assign torsion from OEOmegaOptions.GetTorLib to input molecules.