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.27.tar.gz (3.0 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.27-cp39-cp39-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.9Windows x86-64

ms_deisotope-0.0.27-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.27-cp38-cp38-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.8Windows x86-64

ms_deisotope-0.0.27-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.27-cp37-cp37m-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.7mWindows x86-64

ms_deisotope-0.0.27-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.27-cp36-cp36m-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.6mWindows x86-64

ms_deisotope-0.0.27-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.27.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for ms_deisotope-0.0.27.tar.gz
Algorithm Hash digest
SHA256 98285bda5283589d57e6fffd62d8d4edf22a9832d4f3e92ae65c085f51e5e75b
MD5 b8b595311dad846da9690d31a117a0a9
BLAKE2b-256 b786478881b421dc6563b5e7c119cf6215c313c2f6339ba719fa18931c5c95e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.27-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for ms_deisotope-0.0.27-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cece8c5caa70e921e30a64a581f157c4357792aa472b466925ed527cf73b7ef8
MD5 da9d66dc78a3aea05ccf29e651202af1
BLAKE2b-256 069550dc0e553d99c10719884fef62d0456c20fdd14c28312e84869d1610c6ab

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.27-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.27-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b3b1ebfc6f95e12c4b5e0712413fbc4f2579bf0770c59bd1ef0aa5247b5fe976
MD5 87f32ba6371c3bce84a754cefb2fc9b8
BLAKE2b-256 99854f01958aff1b3a127e4f0395df022841461a708eb5a03b26373a81c9ed42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.27-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for ms_deisotope-0.0.27-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 affc82e589a4d9e8c6d0d59ac9d1d27a834401dfdbda8ce43c0439e481f9aaf1
MD5 9e55a4075e9b074a15679f4e30287304
BLAKE2b-256 2f88a23a247ab1ffa68a8929787f76bf11f2b5b40fc2f7f4afbda23663cf2cda

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.27-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.27-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 50525e3d58d74e2344acc323917872b36ef2c73e25d0e8df087beb4d59dd93d7
MD5 0f60f0ac4126a494ee59f8da6211ca92
BLAKE2b-256 e893992b8ea272645e22838cfd28395e954c9fb813b648af2e5f127f1f25839b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ms_deisotope-0.0.27-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 311fbe6264c1e5c4d72addebb253014e04b73575301762ba902be8759dddac69
MD5 e000bbbfa263d17deea2b637c8fda2b5
BLAKE2b-256 a8c007289fc313dd6e59a80c95aeda12d707a95d560dc9c1f5198a67a7a3718d

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.27-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.27-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fe829973e6d5e95e1695ec0da6f4d7f298215fccc0369304d18f45f9e5d6a588
MD5 6fe9ddb0a581d7451564491b2a462ba1
BLAKE2b-256 7707c58d76c15b7af9bb396ab87ad5332a290f076fe1de2d23f4276fe3f035ba

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ms_deisotope-0.0.27-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 53ede4a877e897742fee9934679b631b201c25f33ee58445a450a7a30c3bdc32
MD5 dcd4e5f722a2111c08d08dc0b0593d41
BLAKE2b-256 ce88f27b734cdd4ad96a971f08b6807800facf793bc10286ce0c94f9aad39a7a

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.27-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.27-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f42711575ca95c3461f5f063c54988493e2bc04cf97fb5bae3779bcf5d2d78ec
MD5 e1db22fb1572dd722e199dfe5e6ed367
BLAKE2b-256 9ec1fe7d094ad8d88ba7dd315cc9c63e7b178d82f5e9f6d511bdcba0aca17e8f

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