chromatography
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);
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);
let gcms2 = GCMS.fromJSON(anotherDieselJSON);
let similarity = GCMS.similarity(gcms, gcms2, options);
let revertConversionFunction = GCMS.getKovatsConversionFunction(
kovatsConversionTable,
{ revert: true },
);
let mySpectrumInAnotherReference = revertConversionFunction(mySpectrum);
API discussion
License
MIT