Class: SmilesMolWriter

Kekule.IO. SmilesMolWriter

new SmilesMolWriter()

Writer for saving molecule to SMILES format text data. Use smilesMolWriter.writeData(mol) to save molecule to SMILES text.
Source:

Extends

Methods

getMolecule(obj)

Get molecule data from an object.
Parameters:
Name Type Description
obj Variant
Source:

writeData(obj, dataType, format, options) → {Variant}

Write Kekule object to data.
Parameters:
Name Type Description
obj Kekule.ChemObject Object to write
dataType String Type of data, value should fom Kekule.IO.ChemDataType.
format String Format ID.
options Hash Additional options to write data. Different writer may have different options.
Inherited From:
Source:
Returns:
Data output, the type of data is decided by dataType param.
Type
Variant