Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

brukerconverter

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brukerconverter

Parse and convert Bruker raw data

  • 4.1.7-pre.1664466065
  • npm
  • Socket score

Version published
Weekly downloads
38
decreased by-78.03%
Maintainers
6
Weekly downloads
 
Created

#brukerconverter

It is able to extract NMR spectra from a zip file that contain the bruker folders.

Installation

Node JS

npm install brukerconverter

Use as a module

####Node JS As brukerconverter could be used to convert bruker files from a zip file by the use of fileListFromZip from filelist-utils package.

const { convertFileList } = require('brukerconverter');
const { fileListFromZip } = require('fileList-utils');
const { getZipped } = require('bruker-data-test');

async function asyncCall(zip) {
  const fileList = await fileListFromZip(zip);
  const result = await convertFileList(fileList);
  console.log(result);
  //...{ spectra, meta, source }
}

asyncCall(getZipped());

It is possible to use the converter if you have a path of the bruker folder by the use of fileListFromPath from filelist-utils package.

const { getCoffee } = require('bruker-data-test');
const { convertFileList } = require('brukerconverter');
const { fileListFromPath } = require('filelist-utils');

async function asyncCall(path) {
  const fileList = await fileListFromPath(path);
  const result = await convertFileList(fileList);
  console.log(result);
  //...{ spectra, meta, source }
}

asyncCall(getCoffee());
//...{ spectra, meta, source }

API Documentation

FAQs

Package last updated on 29 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts