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.51.tar.gz (5.6 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.51-cp310-cp310-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.10Windows x86-64

ms_deisotope-0.0.51-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.51-cp310-cp310-macosx_10_9_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

ms_deisotope-0.0.51-cp39-cp39-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.9Windows x86-64

ms_deisotope-0.0.51-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.51-cp39-cp39-macosx_10_9_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

ms_deisotope-0.0.51-cp38-cp38-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.8Windows x86-64

ms_deisotope-0.0.51-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.51-cp38-cp38-macosx_10_9_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.51.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ms_deisotope-0.0.51.tar.gz
Algorithm Hash digest
SHA256 8c2691d5f96ad05b6c83023a29ac12242402e3ff00adf4d95518db946add8332
MD5 1694f5cb206b3e7d3a7eefc5852c9607
BLAKE2b-256 0cff3e17b27c6c45d5ed4caf1c01b7c0d9c957d43c0e852cf4100f8ef67a1e8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68377e3a48ca8f7f4338135c4dc1519c9364bde13c3004f5b55d720ab483e3c6
MD5 ebacab037b671816e1870a8303c8b407
BLAKE2b-256 30e2a77d40192a415e930aa55b44b7ef09d62654b4b04caf8e136f18c4f0bfc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b46707837eb72e53994e164df67457d26ea184fce85281d0662d0add05b1e97
MD5 a0debc8388deca1e620031ccdc6e661c
BLAKE2b-256 412c7f1fe28c4486e8e64a394871c6d3bf1590a4b4129d9cb6adfc5955f674b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ec4c1971bc91208c66a04d09f3bd2fcca576a8aa8c045ea17ab4853fa0155257
MD5 5ef9ffcb07adfb9b16a1a48052dfc643
BLAKE2b-256 25acbe8ec0171c83eee056d9aace6bf4372afd4aaa2c9b7c40208b82f659b9fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b679acddb76030900bfec49b2e8cf1de62df68d92c0af7cf557455b41f0e2814
MD5 0e7f3965d12f6ac16da1eecd557fd48b
BLAKE2b-256 92b5f6fac99c17dc3249a8e7f7b1bc9c9bc834d0a395c010e35981c0c8f77051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 487279ebb81403be017b07a287fff3a49b66360250e1b958add7c05af0f81278
MD5 d25a34e511026a3b94bae42472fc37c3
BLAKE2b-256 a90e8267eb3d05fc6a6146943707ae0aba91e712edd7cda1ef6aff3640b22079

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dbec54bc3db08c453d7277d4e0beda07862a7a1410b5fc58d67122c06bf134b6
MD5 71fdbd3d1be7ee974307864d5dc13757
BLAKE2b-256 eba142ee64dd8c51b007d8e8197850b7962a4d76d3509252a4a58993b2141098

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9dedd00eeda71cdf131cacebad375128fae1e3c6bdba10277ac80b358ea104ae
MD5 762a84f0636da51bd5e5079e0c7f9ca7
BLAKE2b-256 60e3cabb860cceb986158086cb95418083d39a353e104e08176fbe83b128ffff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c44513fc7b969a02ea98977d3bc23b14b9aa0c6c9cc6545b120cad2f88585aac
MD5 f007690a0021849bb9394651a69e02db
BLAKE2b-256 f292035c960652ae0a230966c1ecd351622dd26d12818218b54d6429995675d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.51-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 910dbc87bc97fc8a9d2d7018566f268b44744ca868918bf1eb05dabdb4de947b
MD5 cc1c21aa42a923792db5886db3082084
BLAKE2b-256 72571c2fcf1922720bdab0a0ca93b12ba3479be582f87ef2b6d470b154e8d796

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