Skip to main content

Function: parseSdf()

parseSdf(text): ParsedMolfile[]

Defined in: src/mobjects/chemistry/molfile.ts:230

Parse an SDF file into one ParsedMolfile per record.

Records are separated by a line that is exactly $$$$. The data-item section after each molecule is ignored. A trailing separator does not add an empty record.

Parameters​

text​

string

The SDF file contents.

Returns​

ParsedMolfile[]

One parsed record per molecule, in file order.