convert-to-nmrium
v0.1.1
Published
Converts NMR data to NMRium format
Downloads
1
Readme
convert-to-nmrium
Library extracted from NMRium project enabling conversion to NMRium format on an application server in node.js environment.
fromBrukerZip(inputhPath, options)
options: object
- save : boolean
- outputPath : string
- spectrumOnly : boolean
- removeMeta : boolean
- removeProjections : boolean
- title : string
Usage example:
const getNMRium = require('convert-to-nmrium')
getNMRium
.fromBrukerZip('./test/data/test-Bruker.zip', {
save: true,
outputPath: './test/data/testFromBruker.nmrium'
})
.then(nmriumObj => console.log(nmriumObj.spectra))
.catch(error => console.log(error))
Test:
To test the package in local environment
cd test
npm link
cd ..
npm test