Giter VIP home page Giter VIP logo

antoinepassemiers / wasserstein-mass-spectrometry Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.25 MB

Unofficial implementation of the paper "The Wasserstein Distance as a Dissimilarity Measure for Mass Spectra with Application to Spectral Deconvolution"

Makefile 2.94% Python 31.93% C++ 65.13%
mass-spectrometry spectrum-similarity wasserstein-metric mehrotra-predictor-corrector interior-point-method

wasserstein-mass-spectrometry's Introduction

Wasserstein Mass Spectrometry

This software is a non-official implementation of the paper "The Wasserstein Distance as a Dissimilarity Measure for Mass Spectra with Application to Spectral Deconvolution" by S. Majewski, M. A. Ciach, M. Startek, W. Niemyska, B. Miasojedow and A. Gambin.

Default solver is based on a problem-specific genetic algorithm. This allows for numerical stability and high speed.

alt text Figure: t-distributed Stochastic Neighbor Embedding of MS1 ESI-QTOF spectra with precomputed matrix Wasserstein distances. The colormaps gives the mass of each molecule (point) expressed in Daltons.

How to use it

Run mass spectral deconvolution algorithm on an empirical spectrum and a folder containing the theoretical spectra. Paths to theoretical spectra should be specified in molecule_list.txt. A concrete example of dataset is provided in example-msd/ folder.

deconvms path/to/empirical/spectrum.txt path/to/molecule_list.txt path/to/molecules/folder --niter 50000

Compute Wasserstein dissimilarity between two mass spectra:

wassms path/to/first/record/file.txt path/to/second/record/file.txt --m W

Compute Euclidean distance between two mass spectra:

wassms path/to/first/record/file.txt path/to/second/record/file.txt --m E

Installation

Compile the project with g++:

make release

This will create the two executable files wassms and deconvms.

Dependencies

The project is built on top of Eigen, whose path is assumed to be stored in a Eigen3_DIR variable.

wasserstein-mass-spectrometry's People

Contributors

antoinepassemiers avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.