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.50.tar.gz (5.4 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.50-cp310-cp310-win_amd64.whl (7.5 MB view details)

Uploaded CPython 3.10Windows x86-64

ms_deisotope-0.0.50-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.50-cp310-cp310-macosx_10_9_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

ms_deisotope-0.0.50-cp39-cp39-win_amd64.whl (7.5 MB view details)

Uploaded CPython 3.9Windows x86-64

ms_deisotope-0.0.50-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.50-cp39-cp39-macosx_10_9_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

ms_deisotope-0.0.50-cp38-cp38-win_amd64.whl (7.5 MB view details)

Uploaded CPython 3.8Windows x86-64

ms_deisotope-0.0.50-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.50-cp38-cp38-macosx_10_9_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.50.tar.gz
  • Upload date:
  • Size: 5.4 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.50.tar.gz
Algorithm Hash digest
SHA256 34e3903abe02500c19e64e5a6beb55d73f3603b39479be2e3c24f21d4316ccde
MD5 2d9c9ad52eca88a9e37c4d5e7ae0ee87
BLAKE2b-256 3320067f455f26938ef2e65869c78e4fdcf1b206dfd1e108ded69cab95f168bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e617b932f9a75186cae6865509eb84446f2b7fac294d41dc9afcb83dd1e3ed35
MD5 6a326690c70db0051a23044f72172bc2
BLAKE2b-256 0b6b5f3814d6d8fb8730c12e70161408f1852e14af5e4bbbafaec51553c3d9f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ee65d4a1dcf05535c3f0b74450106ec51d95b347bd5e7685df9357db7e73dc1
MD5 6dc00e20baef7a9eb4e31882c35f1f39
BLAKE2b-256 cb15a15d79bb550ef194d0fff30ec438d7aa866a9e940e8529b0c2ecdac3dc7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d8b95d2df2ff750734b9ea13873bc613e8d52c4ce144646b654a5facd2164846
MD5 ab12ca5ed640cff0fb2647c0f150faac
BLAKE2b-256 4841e24bd8737e5627f86309a7c3d8db6afbcf0cc6a3c8722111836ec63f02df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 62a5aae4ebad641976fb7a8778c5f4e53e61b86073ec2e72684bf5aeecd94ae9
MD5 5225328a8a70714ea27fc7fa8d2b6ced
BLAKE2b-256 370f8e4cd0af7b3c5212c6de8cd9f380cdc306eac16c1e1943db2e8215fd70cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 902855770e7885dc57e1206e2792b72b7c9549c8ae873a421f5f816fa8a3286b
MD5 5e73211f4a78808fb56231b8039a99c5
BLAKE2b-256 08f2dc922e51d7b9c0ffa07f8895918b777845c50e4c9c129c7249aa06804b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cce34b8fdb52e54c9825c2f72626bb67f514048ec9ad2da4b23415567f0b5b25
MD5 1953e70bf5240e2263c9417412397b29
BLAKE2b-256 f2a4b3ac3b4fded7ed53f1ab3ffda0f9a20d4fccbd30ec1b5e8c02eeed430678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9ed1445b34272cb5ca9443a2fd4e2f2b37f5a7aa6d81e083d5ccc1ece993b6d6
MD5 26a5adec37e828f1fd8135dbcea23821
BLAKE2b-256 898eae175f7e2c23696d490907274f1b8d67645904bd6d2c479266928c9e5def

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c3baaaceae5f06a024d9acb4e98216c6d2aeb6d6f8673179a93f93e927010260
MD5 b38f64d965a0d92501fe323e3631e5a1
BLAKE2b-256 f7cdcf5f5ce1a9c2c41375c36441878c3d015df1a70577d286e76dfd7ac93910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.50-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 23d8fae2279c2515b42525ce4b91b894ceab5cc7c2b33e1834ebdb698e79c2a3
MD5 088f1556f17c2e0fb71f38e867e74c6c
BLAKE2b-256 90df3637043b61f320d62996df1e31b9b2731da8adf95a564236fefe602eda0b

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