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.36.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.36-cp39-cp39-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.9Windows x86-64

ms_deisotope-0.0.36-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.36-cp38-cp38-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.8Windows x86-64

ms_deisotope-0.0.36-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.36-cp37-cp37m-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.7mWindows x86-64

ms_deisotope-0.0.36-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.36-cp36-cp36m-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.6mWindows x86-64

ms_deisotope-0.0.36-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.36.tar.gz.

File metadata

  • Download URL: ms_deisotope-0.0.36.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for ms_deisotope-0.0.36.tar.gz
Algorithm Hash digest
SHA256 3d2786d281a9d188245e1b1eca90dd2f275f0783360de9de3bd063c039ce1cab
MD5 42a24cdd2938a1a0d33f7e5f7146f525
BLAKE2b-256 ae3424477b35f049a685236d4cdba16c6b3a194a445eb283c06307be0e362bf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.36-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for ms_deisotope-0.0.36-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f0c9203aa414cf1b30a75863c6a6ff6268d8416d03ea4f3e0435a091dac6b8ea
MD5 47c4aed750fea32891bf06fcdb20310b
BLAKE2b-256 a5b305027a092e8bf58de20bc6fb3dcaaeb3a35d0f10e45e33108c8b4b8f024e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.36-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 65223a358a9c2c15fd0a8ad1586d10b93297141822358d10ef373b7fd84768c2
MD5 30f41336796301b70e2cd384d40a86a6
BLAKE2b-256 1730d0086e87ec308fc250479883a65bef45b7a333de54e1109a2c016181e6c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.36-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ms_deisotope-0.0.36-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9f95bcf263b38421c4758bde104bdfa59c569788fa0732bd9889cfa54c0bc49f
MD5 8d19090fbca884922ea7378794efb851
BLAKE2b-256 94ff85c44434126d7ca01f19bc7e66678adf1328c6fbf65ac9164ef1ab36b57c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.36-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2fbdd1aac31903084b80640bf13a41c168ba0e1cecbd78035d1fdd48df493091
MD5 2e77c9087ef257dcc516d5b2e1e1a0fe
BLAKE2b-256 36c8c022a120a55ed13d5e5019bad9505e6f838daa402eec554ee88cc394a991

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.36-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for ms_deisotope-0.0.36-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 99ba34f674934cb70e30c13d8730396c362586cb235c53bd8cf7ade09a65a1f1
MD5 4bfc36c591ad8f6def54a120f995e882
BLAKE2b-256 01cb37a5a31b4dc9293ea3e59120c43c236db1896849b56f200abb114e63765e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.36-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 15842b90e34f370545a9c3fb2b060dbea8e8aa073299de2fe6e4c45ab5f0d81f
MD5 e8656483dce116aa4d00baffc0cb5d4d
BLAKE2b-256 ac2cbcc25dd2642f1fd19fbb32ac4ccfaa4fef21c724e0c241352b344d1fe7c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.36-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.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for ms_deisotope-0.0.36-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0468d978a61ad67a2f4ad343d9089cde4ce0827f3773720d9bc3b80557a3ef85
MD5 15b9c818a3dbe242845eb09e62a957b3
BLAKE2b-256 13c69e2399e605ce412facb04c81a8dce3633f59812d427f7af76a7afa82ae5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.36-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 abf194c25bafa4ee44c3a333a9cf8df28764e5b7cbbeaaae592bb0342ef5f330
MD5 6afde6520850de53b1b7ec4009fdeaab
BLAKE2b-256 977530824dc178b1f4d6d1593131d26756e262c56707cdf43326296194483bed

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