Class: MdlStructDataWriter

Kekule.IO. MdlStructDataWriter

new MdlStructDataWriter()

Class to write Kekule.Molecule or other molecule list to MDL SD format data.
Source:

Extends

Methods

getChildMols(chemObj) → {Array}

Returns child molecule in parent chemObj. Each child molecule need a block in MDL SD file.
Parameters:
Name Type Description
chemObj Kekule.ChemObject
Source:
Returns:
Type
Array

getMolData(mol) → {Hash}

Returns a hash with all data need to write to SD content.
Parameters:
Name Type Description
mol Kekule.ChemObject
Source:
Returns:
Type
Hash

writeBlock(obj) → {String}

Write a text block for a suitable object.
Parameters:
Name Type Description
obj Variant Kekule object to write.
Inherited From:
Source:
Returns:
Text written.
Type
String

Kekule.IO. MdlStructDataWriter

new MdlStructDataWriter()

Source:

Methods

getChildMols(chemObj) → {Array}

Returns child molecule in parent chemObj. Each child molecule need a block in MDL SD file.
Parameters:
Name Type Description
chemObj Kekule.ChemObject
Source:
Returns:
Type
Array

getMolData(mol) → {Hash}

Returns a hash with all data need to write to SD content.
Parameters:
Name Type Description
mol Kekule.ChemObject
Source:
Returns:
Type
Hash

writeBlock(obj) → {String}

Write a text block for a suitable object.
Parameters:
Name Type Description
obj Variant Kekule object to write.
Inherited From:
Source:
Returns:
Text written.
Type
String