Class CanonizerUtil

Class allowing to acccess advanced options of getIDCode

Example

let molecule = OCL.Molecule.fromSmiles('C[C@H](Cl)CC');
molecule = OCL.Molecule.fromSmiles('CC=C(O)CC');

console.log(molecule.getIDCode());
console.log(OCL.CanonizerUtil.getIDCode(molecule, OCL.CanonizerUtil.NORMAL));
console.log(OCL.CanonizerUtil.getIDCode(molecule, OCL.CanonizerUtil.NOSTEREO));
console.log(OCL.CanonizerUtil.getIDCode(molecule, OCL.CanonizerUtil.BACKBONE));
console.log(OCL.CanonizerUtil.getIDCode(molecule, OCL.CanonizerUtil.TAUTOMER));
console.log(OCL.CanonizerUtil.getIDCode(molecule, OCL.CanonizerUtil.NOSTEREO_TAUTOMER));

Properties

BACKBONE: 2
NORMAL: 0
NOSTEREO: 1
NOSTEREO_TAUTOMER: 4
TAUTOMER: 3

Methods

  • Parameters

    • mol: Molecule
    • type: number

      NORMAL, NOSTEREO, BACKBONE, TAUTOMER, NOSTEREO_TAUTOMER

    Returns string