openchemlib-utils
    Preparing search index...

    Class TopicMolecule

    This class deals with topicity information and hose codes It is optimized to avoid recalculation of the same information

    Index

    Constructors

    Properties

    idCode: string
    molecule: Molecule
    options: TopicMoleculeInternalOptions

    Accessors

    • get diaIDs(): string[]

      This is related to the current moleculeWithH. The order is NOT canonized

      Returns string[]

    • get distanceMatrix(): any[]

      Returns the distance matrix for the current moleculeWithH

      Returns any[]

    • get finalRanks(): any

      Returns finalRanks for all the atoms including hydrogens. Those ranks deals with topicity and is related to the current moleculeWithH. All the atoms have a unique identifier.j In order to calculate the ranks we replace all the hydrogens with a X atom.

      Returns any

    • get heterotopicSymmetryRanks(): number[]

      Returns symmetryRanks for all the atoms including hydrogens. Those ranks deals with topicity and is related to the current moleculeWithH. In order to calculate the ranks we replace all the hydrogens with a X atom.

      Returns number[]

    • get hoseCodes(): any

      This is related to the current moleculeWithH. The order is NOT canonized

      Returns any

    • get moleculeWithH(): Molecule

      Returns a molecule with all the hydrogens added. The order is NOT canonized

      Returns Molecule

    Methods

    • This method ensures that all the atoms have a mapNo in the molecule (and not the moleculeWithH! )

      Returns void

    • Returns a new TopicMolecule but will copy precalculated information if possible (same idCode). This is very practical when expanding hydrogens for example.

      Parameters

      • molecule: Molecule

      Returns TopicMolecule

    • Parameters

      • atom1: number
      • atom2: number
      • options: GetAtomPathOptions = {}

      Returns number[][]

    • Parameters

      • atom: number
      • options: GetAtomPathFromOptions = {}

      Returns number[][]

    • This method returns a mapping between the diaIDs of the current molecule. It expects that the initial molfile and the final molfile contains atomMapNo in order to track which atom becomes which one.

      Parameters

      • molecule: Molecule

      Returns Record<string, undefined | string>

    • Parameters

      • rootAtoms: number[]
      • options: GetHoseFragmentOptions = {}

      Returns Molecule

    • This method ensures that all the atoms have a mapNo corresponding to the atom number. It will enforce mapNo in molecule and moleculeWithH We start numbering the atoms at 1

      Returns void

    • Parameters

      • options: ToMolfileOptions = {}

      Returns string

    • Parameters

      • options: ToMolfileOptions = {}

      Returns string

    • Parameters

      • options: ToMolfileOptions = {}

      Returns string