OpenChemLib JS
    Preparing search index...

    Class MCS

    Computes the maximum common substructure (MCS) between two molecules.

    Index

    Constructors

    Methods

    • Returns the score of the maximum common substructure, defined as the number of bonds of the MCS divided by the larger bond count of the two input molecules. getMCS() (or getAllCommonSubstructures()) must be called first.

      Returns number

    • Sets the pair of molecules to compare. molecule should contain at least as many bonds as fragment. If fragment contains more than one disconnected structure, only the biggest one is considered.

      Parameters

      • molecule: Molecule

        the (usually larger) target molecule.

      • fragment: Molecule

        the molecule whose common substructure with molecule is searched.

      Returns void