Skip to main content

Access, Deisotope, and Charge Deconvolute Mass Spectra

Project description

https://raw.githubusercontent.com/mobiusklein/ms_deisotope/master/docs/_static/logo.png

Documentation | PYPIBADGE | GHAB

A Library for Deisotoping and Charge State Deconvolution For Mass Spectrometry

This library combines brainpy and ms_peak_picker to build a toolkit for MS and MS/MS data. The goal of these libraries is to provide pieces of the puzzle for evaluating MS data modularly. The goal of this library is to combine the modules to streamline processing raw data.

Deconvolution

The general-purpose averagine-based deconvolution procedure can be called by using the high level API function deconvolute_peaks, which takes a sequence of peaks, an averagine model, and a isotopic goodness-of-fit scorer:

import ms_deisotope

deconvoluted_peaks, _ = ms_deisotope.deconvolute_peaks(peaks, averagine=ms_deisotope.peptide,
                                                       scorer=ms_deisotope.MSDeconVFitter(10.))

The result is a deisotoped and charge state deconvoluted peak list where each peak’s neutral mass is known and the fitted charge state is recorded along with the isotopic peaks that gave rise to the fit.

Refer to the Documentation for a deeper description of isotopic pattern fitting.

Averagine

An “Averagine” model is used to describe the composition of an “average amino acid”, which can then be used to approximate the composition and isotopic abundance of a combination of specific amino acids. Given that often the only solution available is to guess at the composition of a particular m/z because there are too many possible elemental compositions, this is the only tractable solution.

This library supports arbitrary Averagine formulae, but the Senko Averagine is provided by default: {“C”: 4.9384, “H”: 7.7583, “N”: 1.3577, “O”: 1.4773, “S”: 0.0417}

from ms_deisotope import Averagine
from ms_deisotope import plot

peptide_averagine = Averagine({"C": 4.9384, "H": 7.7583, "N": 1.3577, "O": 1.4773, "S": 0.0417})

plot.draw_peaklist(peptide_averagine.isotopic_cluster(1266.321, charge=1))
ms_deisotope includes several pre-defined averagines (or “averagoses” as may be more appropriate):
  1. Senko’s peptide - ms_deisotope.peptide

  2. Native N- and O-glycan - ms_deisotope.glycan

  3. Permethylated glycan - ms_deisotope.permethylated_glycan

  4. Glycopeptide - ms_deisotope.glycopeptide

  5. Sulfated Glycosaminoglycan - ms_deisotope.heparan_sulfate

  6. Unsulfated Glycosaminoglycan - ms_deisotope.heparin

Please see the Documentation for more information on mass spectrum data file reading/writing, peak sets, and lower-level signal processing tools.

Installing

ms_deisotope uses PEP 517 and 518 build system definition and isolation to ensure all of its compile-time dependencies are installed prior to building. Normal installation should work with pip, and pre-built wheels are available for Windows.

$ pip install ms_deisotope

C Extensions

ms_deisotope and several of its dependencies use C extensions to make iterative operations much faster. If you plan to use this library on a large amount of data, I highly recommend you ensure they are installed:

>>> import ms_deisotope
>>> ms_deisotope.DeconvolutedPeak
<type 'ms_deisotope._c.peak_set.DeconvolutedPeak'>

Building C extensions from source requires a version of Cython >= 0.27.0

Compiling C extensions requires that numpy, brain-isotopic-distribution, and ms_peak_picker be compiled and installed prior to building ms_deisotope:

pip install numpy
pip install -v brain-isotopic-distribution ms_peak_picker
pip install -v ms_deisotope

If these libraries are not installed, ms_deisotope will fall back to using pure Python implementations, which are much slower.

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

ms_deisotope-0.0.41.tar.gz (4.5 MB view details)

Uploaded Source

Built Distributions

ms_deisotope-0.0.41-cp310-cp310-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

ms_deisotope-0.0.41-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.41-cp310-cp310-macosx_10_9_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

ms_deisotope-0.0.41-cp39-cp39-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.41-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.41-cp39-cp39-macosx_10_9_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

ms_deisotope-0.0.41-cp38-cp38-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.41-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.41-cp38-cp38-macosx_10_9_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file ms_deisotope-0.0.41.tar.gz.

File metadata

  • Download URL: ms_deisotope-0.0.41.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ms_deisotope-0.0.41.tar.gz
Algorithm Hash digest
SHA256 d027435d7084cecf45457fc456b1f3e4f8860661f3654ae953c999bff6cfed6d
MD5 ab4e191ddc927e5e87c0d1a232f1cdc2
BLAKE2b-256 a1258578ce755dea0b2a2f9dc78a521732c5d5c95c0a4f162096d84d191de152

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 066fcb0e0bb8695d16e018554e1181220fe2b00026d130e10c99dde0944176fc
MD5 2dea2712892dce84f3fe0893852b9536
BLAKE2b-256 5b75a5dc00a45c3db37eed0aa37c98c9e71be550c31c6d665cce25e4f9fdce2a

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f33508ae444ae5dc4492f6ce8bca9dc547bd928f478617ee89d112107e1b6aeb
MD5 8304a6ed841c8dba7bc64781bcebf06a
BLAKE2b-256 e177ab00bb96180390d34efe9c0ae7a9b3194e11564e2bba18e60c17b9bb9ead

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d47ed47bb699be98ad15c4423f535203f31e62ac64276338f1e2b54c385cf0f2
MD5 e2cadaec2417581af0c001184951aafb
BLAKE2b-256 edfebeb5c9eab2ee4f528110e5600cb77641db2ba9110074570051c898e3060c

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d76bf987b989af33688b33c177297f2aed4d00a4c9f7ccff00f44fe0af0e3b4a
MD5 98810c18082893be34e0c9f3035c7862
BLAKE2b-256 7837c63c248cd992ef5c680f2bdba45d3c997a9ce03860820e3a56a84fe70d59

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8d35027133d7259a6dc866e16e7590736247afd89638f85dfe795d39426667a
MD5 02291a1eccf500cf9e94cc2ee4527b2b
BLAKE2b-256 bafa98e2f9cc7345cabdcf76fa57e01a612ee5aa42d9ab88e2bdc63c166b5b99

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cb54ae1ff8468be204b28df7926dafbbc2536eb45385933ac56382ac6f4cd1ca
MD5 6e3d59c90cadf3bb627a8704184db1a5
BLAKE2b-256 1f9eea660db6036d49ee960f92474774dcaab66f498b1ee45eb67ba4d55a2467

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9995dfb7069de41c460d1caf6d069c8c2e6a8b86cd31742c6fb13e913a64c792
MD5 6213e2477879d5c2596a81db04b61c94
BLAKE2b-256 dd8a17204efb647babcd47b3ed0f5e8ab3d284e8767374777a30765cc7a17b14

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 30e1faab2e551ca06f0a19e3a5a45ebc61006a529adb21eacbfd8a621dd41ac4
MD5 55bb073dc1ee73a940be620073345a98
BLAKE2b-256 cffa071c67b118724d3fce185e7f21777b5d632c79f14abee26aef325b2a7f7e

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.41-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.41-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4672ef33df03ebf88120038b7d0106bd6b0c34ebf9e8abb2c7f63983d45f7b07
MD5 16b9529a2e3677a867e0338034501876
BLAKE2b-256 88746d2d8b47a5367cadeb27b4b327020dc18379c67f74152b0383521da47726

See more details on using hashes here.

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