Class ConformerGenerator

Constructors

Properties

STRATEGY_ADAPTIVE_RANDOM: number
STRATEGY_LIKELY_RANDOM: number
STRATEGY_LIKELY_SYSTEMATIC: number
STRATEGY_PURE_RANDOM: number

Methods

  • Returns number

    • Count of valid delivered conformers.
  • Creates the next random, likely or systematic new(!) conformer of the molecule that was passed when calling initializeConformers(). A new conformer is one, whose combination of torsion angles was not used in a previous conformer created by this function since the last call of initializeConformers(). Parameter mol may be null or recycle the original molecule to receive new 3D coordinates. If it is null, then a fresh copy of the original molecule with new atom coordinates is returned. Every call of this method creates a new collision-free conformer until the employed torsion set strategy decides that it cannot generate any more suitable torsion sets.

    Parameters

    Returns Molecule

  • Fills all free valences of mol with explicit hydrogens and tries to create a reasonable conformer by starting with the most likely torsion set. If there are collisions, then less likely torsions are tried to find a collision free conformer. If it succeeds, mol receives the modified atom coordinates and mol is returned. If the conformer generation fails, then null is returned. The torsion strategy used is STRATEGY_ADAPTIVE_RANDOM. New 3D-coordinates correctly reflect E/Z and R/S bond/atom parities. This is a convenience method that does not require any initialization.

    Parameters

    • mol: Molecule

      The molecule that will receive new 3D coordinates in place.

    Returns Molecule

    • Original molecule with new 3D-coordinates or null.
  • Calculates the potential count of conformers by multiplying degrees of freedom (torsions per rotatable bond & rigid fragment multiplicities). Cannot be called before calling initializeConformers().

    Returns number

  • The initializeConformers() method needs to be called before getting individual conformers of the same molecule by getNextConformerAsMolecule(). Open valences of the passed molecule are filled with hydrogen atoms. The passed molecule may repeatedly be used as container for a new conformer's atom coordinates, if it is passed to getNextConformerAsMolecule().

    Parameters

    Returns boolean

    • false if there is a structure problem.