openchemlib-utils
    Preparing search index...

    Function getMolfilesMapping

    • We have 2 molfiles and we would like to map the atom number from one to the other. We expect that both molfiles contain the same atoms that can be in a different order.

      Parameters

      • OCL: __module

        openchemlib library

      • from: string
      • to: string

      Returns { fromTo: number[]; toFrom: number[] }

      • fromTo is an array of the same length as the number of atoms in the from molfile. Each element is the index of the corresponding atom in the to molfile. toFrom is the opposite.