OEAlignedDepictionFrom3DOptions

class OEAlignedDepictionFrom3DOptions

This class represents OEAlignedDepictionFrom3DOptions that stores parameters that are used when generating 2D coordinates by calling the OEPrepareAlignedDepictionFrom3D function.

Property

Get method

Set method

clear coords

GetClearCoords

SetClearCoords

max number of bond rotations

GetMaxBondRotations

SetMaxBondRotations

suppressing hydrogens

GetSuppressHydrogens

SetSuppressHydrogens

Constructors

OEAlignedDepictionFrom3DOptions(clearFitCoords: bool = True,
                                suppressH: bool = True) -> OEAlignedDepictionFrom3DOptions

Default constructor that initializes an OEAlignedDepictionFrom3DOptions object with the following properties:

Default parameters of the OEAlignedDepictionFrom3DOptions class

Property

Default value

clear coordinates

true

max number of bond rotations

\(2^{16} = 65536\)

suppressing hydrogens

true

OEAlignedDepictionFrom3DOptions(rhs: OEAlignedDepictionFrom3DOptions) -> OEAlignedDepictionFrom3DOptions

Copy constructor.

GetClearCoords

GetClearCoords() -> bool

GetMaxBondRotations

GetMaxBondRotations() -> int

GetSuppressHydrogens

GetSuppressHydrogens() -> bool

Returns whether the explicit hydrogens are suppressed in the molecule prior to generating the 2D coordinates.

SetClearCoords

SetClearCoords(arg2: bool) -> None

If false and the fit molecule has 2D coordinates, then these coordinates are used for the alignment. Otherwise the 2D coordinates of the fitted molecule are generated by calling the OEPrepareDepictionFrom3D function.

SetMaxBondRotations

SetMaxBondRotations(arg2: int) -> None

Sets the maximum number of bond rotations performed during the 2D coordinate generation process.

maxrotations

The zero value means that there is no limit. Upon reaching this limit, the process terminates and returns the “best” aligned 2D coordinates.

Hint

The default value for maximum number of bond rotations is \(2^{16} = 65536\). This means that by default only the first 16 single bonds of the molecule will be rotated to find the “best” aligned 2D layout.

It is recommended to use this parameter if the input 3D molecule has a large number of rotatable bonds.

SetSuppressHydrogens

SetSuppressHydrogens(arg2: bool) -> None

Sets whether the explicit hydrogens are suppressed in the molecule prior to generating the 2D coordinates. Only hydrogens that are necessary to faithfully represent tetrahedral stereochemistry will be kept.