OEFlipper

OESystem::OEIterBase<OEChem::OEMolBase>* OEFlipper(const OEChem::OEMolBase& mol,
                                                   const OEFlipperOptions& options)
OESystem::OEIterBase<OEChem::OEMolBase>* OEFlipper(const OEChem::OEMCMolBase& mol,
                                                   const OEFlipperOptions& options)

Enumerates the stereocenters of mol and returns them as a series of new molecules.

Parameters:

mol

The molecule to enumerate. The input molecule will always be returned even if there are no stereocenters to enumerate.

options

The options for enumerating stereocenters of molecules.

Deprecated

OESystem::OEIterBase<OEChem::OEMolBase>* OEFlipper(const OEChem::OEMolBase& mol,
                                                   unsigned int maxcenters = 12,
                                                   bool forceFlip = false,
                                                   bool enumNitrogen = false,
                                                   bool warts = false)
OESystem::OEIterBase<OEChem::OEMolBase>* OEFlipper(const OEChem::OEMCMolBase& mol,
                                                   unsigned int maxcenters = 12,
                                                   bool forceFlip = false,
                                                   bool enumNitrogen = false,
                                                   bool warts = false)

Enumerates the stereocenters of mol and returns them as a series of new molecules.

Parameters:

mol

The molecule to enumerate. The input molecule will always be returned even if there are no stereocenters to enumerate.

maxcenters

The number of molecules generated by enumerating the stereocenters is \(2^N\), where N is the number of stereocenters. In some instances, this may be larger than is desired. This parameter indicates the maximum number of stereocenters which will be fully enumerated. If a molecule has more than maxcenters stereocenters, this function will randomly enumerate \(2^{maxcenters}\) instances from the full set of potential isomers.

forceFlip

This parameter forces the modification of all of the stereocenters in a molecule. If false (the default), it will only enumerate stereocenters which do not already have a specified stereochemistry.

enumNitrogen

Controls the behavior with respect to the enumeration of nonterminal nitrogens. Any nitrogen with pyramidal geometry in the initial model of the input molecule, and having no more than two ring bonds is considered to be invertible. It will enumerate all possible puckers if set to true.

warts

Adds wart to the title of each stereoisomer. A “wart” is a systematic naming scheme for the output titles.

Caution

This function will remove the molecule coordinates.

Code Examples