Class SSSearcherWithIndex

Fast substructure search with index filtering.

Constructors

Methods

  • Returns whether the current fragment is in the target molecule.

    Returns boolean

  • Set the fragment to search.

    Parameters

    • fragment: Molecule

      Molecule instance to set as fragment. It has to be flagged with setFragment(true) first.

    • Optional index: number[]

      If the index for this fragment was computed previously, it can be provided here to save time.

    Returns void

  • Set the target molecule in which the search will be done.

    Parameters

    • molecule: Molecule

      Molecule instance to set as target molecule.

    • Optional index: number[]

      If the index for this fragment was computed previously, it can be provided here to save time.

    Returns void

  • Parameters

    • x: number

    Returns number

  • Parameters

    • index: number[]

    Returns string

  • Parameters

    • hex: string

    Returns number[]

  • Returns an array of the 512 idcodes that are used for computing indexes.

    Returns string[]

  • Parameters

    • index1: number[]
    • index2: number[]

    Returns number

  • Returns the Tanimoto similarity between the two indexes.

    Parameters

    • index1: number[]
    • index2: number[]

    Returns number