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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.23.tar.gz
Algorithm Hash digest
SHA256 4390339219920551e79902b30a2d1fe2b73ed4f57abc69e30b49dad6383953a5
MD5 1e3f019e0234c5f93a08bcc80d232a4f
BLAKE2b-256 b9a5257febf03ffb0876278f25ced4710f886cb01071881cb49e539f8a44cab9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 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.23-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 27e49a91ea5feafc85fd65d8e05c6c530dedee7d76df8130537aed9a8fd3aa7a
MD5 46b140a5a5f3a47a50016b4815caabfc
BLAKE2b-256 afc47310b6750e243987dbb99757c52a550a9987297e893977e18622f5105093

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for ms_deisotope-0.0.23-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4ec1feb6a1177d8997045533d8667affb7a35aa38eb7e443ac267cb54d45c9a0
MD5 d1b19e1711333da445b5a663a586a177
BLAKE2b-256 215ee97789d9089f4c592468135e8e4c236197d7a27c50f67e1a957809c37563

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 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.23-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b24cb5da23113ce9bbb07e0e980aa8d9968823f5dd833b80d5870979fec8b579
MD5 56701db8f6192a58a33945d3ab643f57
BLAKE2b-256 d74c0f442cfb9d2fb425325d3c2f822eb87ed11fddbaa2eda46023224258c67d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 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.23-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 edf693e07a97ba00cd69b4ccecf976d9ceef5cfc2a25f5dab864149ef5a1a708
MD5 0abd9ee3a579e0aa39d4ce2141d61156
BLAKE2b-256 486ebdd27a66e3c7065a9eb818f8be143c1bb420db2422bfa79aececb68c536e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 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.23-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9b8976a4bdec08f7ffb5c60f62007fa6c9f51aa3a17ff6ec8d9873c240573b16
MD5 36221f5dcd06f35e04d9232973b015fc
BLAKE2b-256 e3a859237966c4625f23aaf83b1384367e6ec9fd19347df6e8d4c864960d86e3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 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.23-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 57aea191848ded9595bb4a62d86e7bfa3f2ddc8400a7a60c03e23937cb9cbf27
MD5 127154afc4fb429f7ce2eaa507b39601
BLAKE2b-256 86129597076fd3e8463362432e87c33cc1c3a18ff9dd754e7994842c087d2249

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.23-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/3.10.0 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.23-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f96f4b3092bfc9e41f7f47cf9e2c1b2314860bac2801b31e6fcb517b61bc1bb8
MD5 83e6d2b3a733091dd83df5acbe9f13a3
BLAKE2b-256 f53d3fff99697f558d84fb94693f17a3419e2f3e1a7c6b92c773ec106ed35cf4

See more details on using hashes here.

Provenance

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