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[]
isEmpty
isEmpty(): boolean
Returns whether the reaction is empty.
Returns boolean
isFragment
isFragment(): boolean
Returns whether the Reaction is a fragment.
Returns boolean
isPerfectlyMapped
isPerfectlyMapped(): boolean
Returns whether all non-hydrogen atoms are mapped and whether every
reactant atom has exactly one assigned product atom.
Returns boolean
isReactionLayoutRequired
isReactionLayoutRequired(): boolean
Returns whether the molecules` atom coordinate bounds touch or overlap.
Returns boolean
removeCatalysts
removeCatalysts(): void
Remove all catalysts from the Reaction.
Returns void
setFragment
setFragment(isFragment): void
Mark the Reaction as isFragment.
Parameters
isFragment: boolean
Returns void
setName
setName(name): void
Sets the name of the Reaction.
Parameters
name: string
Returns void
toRxn
toRxn(programName?): string
Serialize the Reaction to a MDL V2000 Reaction file.
Parameters
OptionalprogramName: string
Returns string
toRxnV3
toRxnV3(programName?): string
Serialize the Reaction to a MDL V3000 Reaction file.
Parameters
OptionalprogramName: string
Returns string
toSmiles
toSmiles(): string
Serialize the Reaction to a reaction SMILES string.
Returns string
validateMapping
validateMapping(): void
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.
Add a new
Molecule
in the catalysts.