openchemlib-utils
    Preparing search index...

    Function getHoseCodesFromDiastereotopicID

    • Returns an array of strings (idCodes) specified molecule. Each string corresponds to a hose code. By default it will calculate the hose codes for sphere 0 to 4 and will reuse the existing tagged atoms. This method ensure implicity hydrogens and possible missing chiral bonds.

      Parameters

      • molecule: Molecule

        The OCL molecule to process.

      • options: {
            allowedCustomLabels?: string[];
            kind?: number;
            maxSphereSize?: number;
            minSphereSize?: number;
            rootAtoms?: number[];
            tagAtomFct?: Function;
            tagAtoms?: number[];
        } = {}

        Options for generating hose codes.

        • OptionalallowedCustomLabels?: string[]

          Array of the custom labels that are considered as root atoms. By default all atoms having a customLabel

        • Optionalkind?: number

          Kind of hose code, default usual sphere

        • OptionalmaxSphereSize?: number

          Largest hose code sphere

        • OptionalminSphereSize?: number

          Smallest hose code sphere

        • OptionalrootAtoms?: number[]

          Array of atom from which we should start to create the HOSE. By default we will used the taggedAtoms

        • OptionaltagAtomFct?: Function

          Function to tag an atom as root atom. By default it is defined internal

        • OptionaltagAtoms?: number[]

          Array of atom indices to tag as root atoms

      Returns any[]

      • An array of hose code fragments.