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

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(): any
  • 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 any

  • 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

  • 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[][]

  • 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>

  • Returns an array of objects containing the oclID and the corresponding hydrogens and atoms for the specified atomLabel (if any) This always applied to the molecule with expanded hydrogens and chirality

    Parameters

    Returns GroupedDiaID[]

  • Parameters

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

    Returns Molecule