Skip to main content

Fitting of time-of-flight mass spectra with Hyper-EMG models

Project description

https://github.com/RobbenRoll/emgfit/workflows/CI%20tests/badge.svg?branch=master https://img.shields.io/pypi/v/emgfit.svg

Fitting of time-of-flight mass spectra with Hyper-EMG models

emgfit is a Python package for peak fitting of time-of-flight (TOF) mass spectra with hyper-exponentially modified Gaussian (Hyper-EMG [1]) model functions. emgfit is a wrapper around the lmfit [2] curve fitting package and uses many of lmfit’s user-friendly high-level features. Experience with lmfit can be helpful but is not an essential prerequisite for using emgfit since the lmfit features stay largely ‘hidden under the hood’. emgfit is designed to be user-friendly and offers automation features whenever reasonable while also supporting a large amount of flexibility and control for the user. Depending on the user’s preferences an entire spectrum can be rapidly analyzed with only a few lines of code. Alternatively, various optional features are available to aid the user in a more rigorous analysis. The model functions and statistical methods provided by emgfit could be useful for analyses of spectroscopic data from a variety of other fields.

Amongst other features, the emgfit toolbox includes:

  • Automatic and sensitive peak detection

  • Automatic import of literature values from the AME2020 [3] (or AME2016 [4]) mass database

  • Automatic selection of the best suited peak-shape model

  • Fitting of low-statistics peaks with a binned maximum likelihood method

  • Simultaneous fitting of an entire spectrum with various peaks

  • Export of all relevant fit results including fit statistics and plots to an EXCEL output file for convenient post-processing

emgfit is designed to be used within Jupyter Notebooks which have become a standard tool in the data science community. The usage and capabilities of emgfit are best explored by looking at the tutorial. The tutorial and more details can be found in the online documentation.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emgfit-0.5.0.tar.gz (657.1 kB view hashes)

Uploaded Source

Built Distribution

emgfit-0.5.0-py3-none-any.whl (658.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page