GithubHelp home page GithubHelp logo

cheminfo / chromatography Goto Github PK

View Code? Open in Web Editor NEW
9.0 12.0 5.0 26.26 MB

Tools for storing, search and analyze GC/MS spectra

Home Page: https://cheminfo.github.io/chromatography

License: MIT License

JavaScript 100.00%
chromatography jcamp netcdf kovats kovats-scale gcms

chromatography's People

Contributors

cheminfo-bot avatar jobo322 avatar lpatiny avatar maasencioh avatar targos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromatography's Issues

Change of format

Today for series 2D we have

    [
      [
        [
          127.5, 83.7, 75.9, 63.9,
           55.9, 43.9, 39.9,   38,
           36.8,   36, 34.8, 31.9,
             29,   28,   18,   17,
           15.9, 13.9
        ],
        [
            58,  33, 227,   31,   38,
           948,  73, 451,   42, 1017,
           258, 905,  42, 1908, 5593,
          1444, 147,  60
        ]
      ],

An array (the time) of array (2 values, mass, intensity) of array (the mass values and the intensity values).

I would like to change this to

    [
      { 
       x :  [
          127.5, 83.7, 75.9, 63.9,
           55.9, 43.9, 39.9,   38,
           36.8,   36, 34.8, 31.9,
             29,   28,   18,   17,
           15.9, 13.9
        ],
       y : [
            58,  33, 227,   31,   38,
           948,  73, 451,   42, 1017,
           258, 905,  42, 1908, 5593,
          1444, 147,  60
        ],
      },

This will allow me to add a third parameter (third dimension) that is in this case the msms. We have indeed mass spectra of GC / MS / MS

This would be of course a major release and will also require major release of jcampconverter and mzdata.

@targos Is this ok for you ?
@josoriom This should solve your problem as well.

Add method to applyLockMass

applyLockMass('mf', options);

  • Calculate from mf the monoisotopic mass
var CC = require('chemcalc');
var info = CC.analyseMF(mf);
var em = info.em;
  • Find the closest mass value to this em in the lock mass spectrum
  • Calculate the difference between theory and experimental
  • Remove all the spectra concerning the lock mass
  • Apply the difference to each experimental spectrum (the difference change from one spectrum to another)

Build for browser is broken

I updated netcdf-gcms to use the new netcdfjs that uses the new iobuffer that use utf8 v3 instead of v2.

[email protected] /Users/lpatiny/git/cheminfo/chromatography
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected] 

There is now a problem with the build

cheminfo-build --entry src/index.js --root Chromatography
.
Error: 'decode' is not exported by node_modules/utf8/utf8.js

@targos Can you help me with this problem ?

Improve getClosestTime

I think we may assume that the time is a sorted array in increasing value

The algorithm could be improved in order to take this into account and make a dichotomic approach. Pretty sure that there is a library that must do this

Create an 'integrate' method

Please check the documentation of the ms/integrate file. It is not really trivial to implement a FAST algorithm ...

Why series in an array ?

I could make sense that it is an object because a unique name is required.

Would make easier to
addSerie(name, serie)
deleteSerie(name) {
delete this.series[name]
}
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.