You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

chromatography

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromatography

Tools for storing, searching and analyzing GC/MS data

8.0.1
latest
Source
npm
Version published
Maintainers
0
Created
Source

chromatography

NPM version build status npm download

Tools for storing, searching and analyzing GC/MS data.

Installation

$ npm i chromatography

Usage

import * as GCMS from 'chromatography';

let gcms = GCMS.fromJcamp(jcampReferenceMixture);

let kovatsConversionTable = GCMS.appendKovats(gcms); // [{time, value}]
let conversionFunction = GCMS.getKovatsConversionFunction(
  kovatsConversionTable,
  {},
);

let diesel = GCMS.fromJcamp(jcampOfDiesel);
let times = GCMS.rescaleTime(diesel.getTimes(), conversionFunction);
diesel.setTimes(times);

let peaks = GCMS.getPeaks(diesel, options);
let dieselJSON = diesel.toJSON(options); // [{time:12, height:12, width: 3, mass: [{mass, intensity}]}]
let gcms2 = GCMS.fromJSON(anotherDieselJSON);
let similarity = GCMS.similarity(gcms, gcms2, options);

// Get a spectrum in another reference model
let revertConversionFunction = GCMS.getKovatsConversionFunction(
  kovatsConversionTable,
  { revert: true },
);
let mySpectrumInAnotherReference = revertConversionFunction(mySpectrum);

API Documentation

API discussion

License

MIT

FAQs

Package last updated on 19 Dec 2024

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