Git Product home page Git Product logo

ms_peak_picker's Introduction

A Library for Mass Spectrometry Peak Picking

This is a small library to provide peak picking for software processing mass spectrometry data. It is intended to solve only the peak picking problem, leaving the whole process of deisotoping and charge state deconvolution for separate software.

The algorithm implemented here is primarily a direct translation of Navdeep Jaitly's C++ for the DeconEngineV2 component of PNNL's Decon2LS. It was not possible to simply wrap said library in a cross-platform fashion due to it's dependence on CLR Managed C++, a deprecated feature of Microsoft Visual C++ which allowed MSVC to put native objects' lifespan under the control of a garbage collector integrated with the CLR.

Critical paths are written using a statically typed C extension which depends upon Numpy. This requirement may be waived in the future as Cython Typed Arrays may prove more scalable.

API

from ms_peak_picker import pick_peaks

mz_array, intensity_array = get_spectrum_as_numpy_arrays()

peak_list = pick_peaks(mz_array, intensity_array, fit_type="quadratic")

peak = peak_list[0]
print(peak.mz, peak.intensity, peak.full_width_at_half_max, peak.signal_to_noise)

if peak_list.has_peak(204.08):
    print("Found that peak")

ms_peak_picker's People

Contributors

mobiusklein avatar heckendorfc 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.