openchemlib-utils
    Preparing search index...

    Function applyFragmentLabels

    • Applies fragment labels from a fragment molecule to a target molecule. This method is in place and modifies the target molecule directly.

      The OpenChemLib library is recovered from the molecule itself via molecule.getOCL(), so this package never imports openchemlib at runtime (avoids version conflicts and keeps it out of consumer bundles).

      Parameters

      • molecule: Molecule

        The target molecule to which fragment labels will be applied.

      • fragment: Molecule

        The fragment molecule containing the labels to apply.

      • options: ApplyFragmentLabelsOptions = {}

      Returns number

      The number of matches found