generateMGF

src/index.js

Converts a JSON into MGF.

generateMGF(parsedMGF: array, options: object)
Parameters
parsedMGF (array) Structure containing MGF data in JSON format.
options (object = {})
Name Description
options.lineDelimiter string (default '\n') What delimiter must be used for the lines of the MGF.
options.spectrumDelimiter string (default ' ') What delimiter must be used between x and y values of the spectrum.