Methods

  • Add a new Molecule in the catalysts.

    Parameters

    Returns void

  • Add a new Molecule in the catalysts at index.

    Parameters

    Returns void

  • Add a new Molecule in the products.

    Parameters

    Returns void

  • Add a new Molecule in the products at index.

    Parameters

    Returns void

  • Add a new Molecule in the reactants.

    Parameters

    Returns void

  • Add a new Molecule in the reactants at index.

    Parameters

    Returns void

  • Returns the average bond length among reactants and products.

    Returns number

  • Returns the number of catalysts.

    Returns number

  • Merges all reactants into one Molecule and all products into another and creates a new Reaction object from those.

    Returns Reaction

  • Returns the reactant or product at index (starting with reactants).

    Parameters

    • index: number

    Returns Molecule

  • Returns the total number of reactants and products.

    Returns number

  • Returns the name of the Reaction.

    Returns string

  • Returns the number of products.

    Returns number

  • Returns the number of reactants.

    Returns number

  • This method determines the largest mapping number in use (maxMapNo), creates a boolean array[maxMapNo+1], and within this array flags every mapping number that refers to atoms, which change bonds in the course of the reaction. Mapped atoms that are connected to unpammed atoms are also considered being part of the reaction center. If the reaction is unmapped or has no reactants or products, then null is returned.

    Returns boolean[]

  • Returns whether the reaction is empty.

    Returns boolean

  • Returns whether the Reaction is a fragment.

    Returns boolean

  • Returns whether all non-hydrogen atoms are mapped and whether every reactant atom has exactly one assigned product atom.

    Returns boolean

  • Returns whether the molecules` atom coordinate bounds touch or overlap.

    Returns boolean

  • Remove all catalysts from the Reaction.

    Returns void

  • Mark the Reaction as isFragment.

    Parameters

    • isFragment: boolean

    Returns void

  • Sets the name of the Reaction.

    Parameters

    • name: string

    Returns void

  • Serialize the Reaction to a MDL V2000 Reaction file.

    Parameters

    • Optional programName: string

    Returns string

  • Serialize the Reaction to a MDL V3000 Reaction file.

    Parameters

    • Optional programName: string

    Returns string

  • Serialize the Reaction to a reaction SMILES string.

    Returns string

  • Removes mapping numbers that are only used on one side of the reaction. Throws an exception if duplicate mapping numbers occur in reactants or products.

    Returns void

  • Create a new Reaction filled with the provided molecules.

    Parameters

    • molecules: Molecule[]

      Array of Molecule objects

    • reactantCount: number

      Number of reactants in the molecules array. The remaining objects will be treated as products.

    Returns Reaction

  • Create a new Reaction based on a MDL Reaction file (V2000 or V3000).

    Parameters

    • rxn: string

      The RXN file's contents

    Returns Reaction

  • Create a new Reaction based on a reaction SMILES string. The Reaction will contain at most one Molecule for each component.

    Parameters

    • smiles: string

    Returns Reaction