OEInChIOptions

class OEInChIOptions

This class is used to control the output for the OEFormat.INCHI and OEFormat.INCHIKEY formats. The options have a direct mapping between the flavors in the OEOFlavor.INCHI and OEOFlavor.INCHIKEY. The options also have a direct mapping into the options provided by the InChI library.

See also

Constructors

OEInChIOptions(unsigned int flavor = OEOFlavor::INCHI::Default)

The default constructor initializes the options class to the flavors indicated by the OEOFlavor.INCHI.Default constant.

OEInChIOptions(const OEInChIOptions &)

Copy constructor.

operator=

OEInChIOptions &operator=(const OEInChIOptions &rhs)

Assignment operator.

GetChiral

bool GetChiral() const

Returns a bool stating whether to use absolute stereochemistry.

GetFixedHLayer

bool GetFixedHLayer() const

Returns whether to include the fixed H-layer.

GetHydrogens

bool GetHydrogens() const

Returns whether to add H according to usual valences.

GetRacemicStereo

bool GetRacemicStereo() const

Returns whether to export all stereo as racemic stereo in the InChI string. By default, all stereo is exported as absolute stereo.

GetReconnectedMetals

bool GetReconnectedMetals() const

Returns whether to include reconnected metals.

GetRelativeStereo

bool GetRelativeStereo() const

Returns whether to export all stereo as relative stereo in the InChI string. By default, all stereo is exported as absolute stereo.

GetStereo

bool GetStereo() const

Returns whether the stereo information in the input structure is ignored.

GetTimeout

unsigned int GetTimeout() const

Returns the setting for the maximum number of seconds the InChI generation is allowed to take. By default, a 60 second execution limit is used.

SetChiral

void SetChiral(bool val)

If set to true, use absolute stereochemistry, else relative stereochemistry (corresponds to InChI option “ChiralFlagOn”).

SetFixedHLayer

void SetFixedHLayer(bool val)

If set to true, do not allow for mobile hydrogens e.g. in tautomers (corresponds to InChI option “FixedH”).

SetHydrogens

void SetHydrogens(bool val)

If set to true, hydrogens are added according to usual valences (corresponds to the inverse of the InChI option “DoNotAddH”).

SetRacemicStereo

void SetRacemicStereo(bool val)

If set to true, export all stereo as racemic stereo (corresponds to InChI option “SRac”). Enabling the racemic stereo option takes precedence over the option setting to disable OEInChIOptions.SetStereo.

SetReconnectedMetals

void SetReconnectedMetals(bool val)

If set to true, include reconnected metals (corresponds to InChI option “RecMet”).

SetRelativeStereo

void SetRelativeStereo(bool val) const

If set to true, export all stereo as relative stereo (corresponds to InChI option “SRel”). Enabling the relative stereo option takes precedence over other option settings of OEInChIOptions.SetRacemicStereo or (disabled) OEInChIOptions.SetStereo.

SetStereo

void SetStereo(bool val)

If set to true, stereo information is used from input structure (corresponds to the inverse of the InChI option “SNon”).

SetTimeout

void SetTimeout(unsigned int val)

Sets the InChI execution time cutoff to val seconds. Setting a value of 0 means unlimited, and by default a 60 second limit is used.