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.25.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ms_deisotope-0.0.25-cp39-cp39-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.9Windows x86-64

ms_deisotope-0.0.25-cp38-cp38-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.8Windows x86-64

ms_deisotope-0.0.25-cp38-cp38-manylinux2010_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.25-cp37-cp37m-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.7mWindows x86-64

ms_deisotope-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.25-cp36-cp36m-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.6mWindows x86-64

ms_deisotope-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.25.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ms_deisotope-0.0.25.tar.gz
Algorithm Hash digest
SHA256 d9e04524f9ae4483e60ec762a23678c402c80efef41e7d573608879fc4960c37
MD5 4199d14e80664df92186ee21abdf07d3
BLAKE2b-256 29917e82ebd6f55a55d08d378959ff9ad726e6cc9c4a314ad815e542bfb65d4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.25-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ms_deisotope-0.0.25-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6c809738a5017458de86cf7b5502a83a921dd3ac4525680b7f501c83020d10df
MD5 9034fb6ffd2064d8d78f09b396de56bf
BLAKE2b-256 e4dca4af8919c65cf19740d89f33f5586c61c32942aa6311a29fa3a796018007

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.25-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for ms_deisotope-0.0.25-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2c4f568f1a27f62e47308e707035ad83b35a1e19ad2683e74b225302ac940aa0
MD5 09b3ca57e2f4cb1877bbebb5e7c9020f
BLAKE2b-256 f44d380d94a83f56ff32c5628c48ff814b0e606f6a915171d61bacd8c614cc43

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.25-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.25-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ms_deisotope-0.0.25-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b91a67acb091037054c377eb6fdfed61d3865ed7e2938c91ed8b0712c41fe298
MD5 c4a31d2999094a64414c501a83943898
BLAKE2b-256 2f7677ac79be77e9d3313a4d899c23a2a3beac3fe9d656b78ec5ab3cb77bfcd3

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.25-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.25-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

File hashes

Hashes for ms_deisotope-0.0.25-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 beba17f8db586919e48375078f4db58d7f24071d296480d95950398b3aec14f3
MD5 88c7603f3752a081a2b61df2a1298cef
BLAKE2b-256 208467a01da81b9e4ee1f2cd6ec92a9fa268962283b88753ffd2b93a21fff26f

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ms_deisotope-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0865fa4c30bffba7d725f98297f4a1108ea77e5b40bcc346787e23ad6d067754
MD5 056c0fd9f18cf619dc6b661ab94a790f
BLAKE2b-256 c698fb52b7e83d5290e1330f79ea84a506025c0e892f7321c684057c83e41401

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.25-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.25-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.8

File hashes

Hashes for ms_deisotope-0.0.25-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 373e6e03bc0b947950dfbd2c5ccfee03243d260fe38997667681d5e3ca5763b4
MD5 7665f877407f3665bc60eca0cb8e0856
BLAKE2b-256 59b36e6eb197e3c056715ec0cf0a891ed9943a55051e72167a4f5227831c616b

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ms_deisotope-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ec473739a5d8423708d9682e30f09168d9ec9655f95ae52feeefdf8afdfc4016
MD5 767e828e32d642dde8039e3fb4b0918e
BLAKE2b-256 27c1f9cee8f79cd2b3db408d41ca76cd64fd75eba2e3f74192bb44fd012dd8dd

See more details on using hashes here.

Supported by

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