Interface JSMol

Represents a molecule object generated by RDKit.js

Remarks

JSMol's are created using the RDKitModule.get_mol() methods.

Hierarchy

  • JSMol

Methods

  • Add explicit hydrogens

    Returns string

    V2000 Molfile string with explicit hydrogens

  • Returns string

  • Parameters

    • maxCoverage: number
    • useLinkers: boolean

    Returns string

  • Parameters

    • definitions: string
    • maxCoverage: number
    • useLinkers: boolean

    Returns string

  • Delete C++ mol objects manually from memory

    See Emscripten docs for more details

    Returns void

  • Draw the molecule to an HTML5 canvas

    Parameters

    • canvas: HTMLCanvasElement

      canvas ID

    • width: number

      width in pixels

    • height: number

      height in pixels

    Returns void

  • Draw the molecule to an HTML5 canvas, with atom highlights

    Parameters

    Returns void

  • Draw the molecule to an HTML5 canvas with an offset

    Parameters

    • canvas: HTMLCanvasElement

      canvas ID

    • offsetx: number

      offset X in pixels

    • offsety: number

      offset Y in pixels

    • width: number

      width in pixels

    • height: number

      height in pixels

    Returns void

  • Aligns molecule with the template. you can also specify the following options (passed as a stringified JSON object)

    Parameters

    • templateMol: JSMol
    • options: string

    Returns string

  • Returns the V2000 Molfile representation of the aromatic form of the molecule

    Returns string

  • Returns an unsigned integer array representation

    Returns Uint8Array

  • Returns the Chemaxon Extended SMARTS string

    Returns string

  • Returns the Chemaxon Extended SMILES string

    Returns string

  • Returns a stringified JSON object of molecular descriptors

    Returns string

  • Return the InChI string

    Returns string

  • Returns the JSON representation

    Returns string

  • Returns the V2000 Molfile representation of the kekule form of the molecule

    Returns string

  • Returns the V2000 Molfile string

    Returns string

  • Returns the Morgan fingerprint as string

    Returns string

  • Returns the Morgan fingerprint as string.

    You can also specify the following options (passed as a stringified JSON object)

    Parameters

    • options: string

    Returns string

  • Returns the Morgan fingerprint as binary

    Returns string

  • Returns the Morgan fingerprint as binary

    Parameters

    • radius: number

      fingerprint radius

    • len: number

      fingerprint length

    Returns string

  • Returns the Morgan fingerprint as an unsigned integer array

    Returns Uint8Array

  • Returns the Morgan fingerprint as an unsigned integer array

    You can also specify the following options (passed as a stringified JSON object)

    Parameters

    • options: string

    Returns Uint8Array

  • Return a V2000 Molfile string with newly generated coordinates

    Returns string

  • Return a V2000 Molfile string with newly generated coordinates

    Parameters

    • useCoordGen: boolean

      use the CoordGen algorithm

    Returns string

  • Returns the pattern fingerprint as string

    Returns string

  • Returns the pattern fingerprint as string

    you can also specify the following options (passed as a stringified JSON object)

    Parameters

    • options: string

    Returns string

  • Returns the pattern fingerprint as binary

    Returns string

  • Returns the pattern fingerprint as binary

    Parameters

    • len: number

      fingerprint length

    Returns string

  • Returns the pattern fingerprint as an unsigned integer array

    Returns Uint8Array

  • Returns the pattern fingerprint as an unsigned integer array

    you can also specify the following options (passed as a stringified JSON object)

    Parameters

    • options: string

    Returns Uint8Array

  • Returns the pickled string representation of the molecule

    Returns string

  • Get a property on the molecule

    Parameters

    • key: string

      property name

    Returns string

  • Returns the list of property names

    Returns string[]

  • Returns the list of property names

    Parameters

    • includePrivate: boolean

      set to true to include private properties

    Returns string[]

  • Returns the list of property names

    Parameters

    • includePrivate: boolean

      set to true to include private properties

    • includeComputed: boolean

      set to true to include computed properties

    Returns string[]

  • Returns the SMARTS string

    Returns string

  • Returns the SMILES string

    Returns string

  • Returns a stringified JSON object containing the atoms and bonds of stereo centers

    Returns string

  • Returns a substructure match string

    Parameters

    Returns string

    A stringified JSON object containing the matched atoms and bonds of the parent molecule

  • Returns all substructure matches

    Parameters

    Returns string

    A stringified JSON object containing the matched atoms and bonds of the parent molecule

  • Returns an SVG of the molecule

    Returns string

  • Returns an SVG of the molecule

    Parameters

    • width: number

      Width in pixels

    • height: number

      Height in pixels

    Returns string

  • Returns an SVG of the molcule, with atoms highlighted

    Parameters

    Returns string

  • Returns the V3000 Molfile string

    Returns string

  • Check is the molecule has any 2D coordinates generated

    Returns boolean

  • Check whether the molecule has a certain property

    Parameters

    • key: string

      property name

    Returns boolean

  • Returns true if the molecule's structure is valid

    Returns boolean

  • Returns number

  • Parameters

    • canonicalize: number

    Returns number

  • Parameters

    • canonicalize: number
    • scaleFactor: number

    Returns number

  • Remove explicit hydrogens

    Returns string

    V2000 Molfile string without explicit hydrogens

  • Generate new 2D coordinates

    Returns boolean

  • Generate new 2D coordinates

    Parameters

    • useCoordGen: boolean

      use the CoordGen algorithm

    Returns boolean

  • Sets a property on the molecule

    Parameters

    • key: string

      property name

    • val: string

      property value

    Returns boolean

  • Sets a property on the molecule

    Parameters

    • key: string

      property name

    • val: string

      property value

    • computed: boolean

      set true to flag the value as computed

    Returns boolean

  • Returns void

Generated using TypeDoc