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

Uploaded Source

Built Distributions

ms_deisotope-0.0.43-cp310-cp310-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

ms_deisotope-0.0.43-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.43-cp310-cp310-macosx_10_9_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

ms_deisotope-0.0.43-cp39-cp39-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.43-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.43-cp39-cp39-macosx_10_9_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

ms_deisotope-0.0.43-cp38-cp38-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.43-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.43-cp38-cp38-macosx_10_9_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.43.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for ms_deisotope-0.0.43.tar.gz
Algorithm Hash digest
SHA256 57cd862c5ed14e556c7b72ef3c6c926ad0d1bf52c59412c1b07796fb972862e4
MD5 1e2feaa45c22f67d2d7aadc782a2f80b
BLAKE2b-256 c105d43bde45d41f56bd291e526d78402944626ed351eefb61366091c957e2da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6818e331b41781fd4c4957e533bdca5f23f97b0217327c970271b104df92f5e
MD5 58d31f8be3efb0cbdfc67c1e98cf913b
BLAKE2b-256 d13822d2aacb565d2f9a6dd19a7fdac73033c45cd76f6ec02975644e2f339abf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6623a799c9eac3d31658536c8f5107c24abd1608f7d7bc299da9ece67ba2872
MD5 e4808934a5c77d6a4f12d5469fbc80fe
BLAKE2b-256 55a787398a72b1e8aad34ae1b22a3d8664319ea117241774b7b48ae61027ff94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 80de75655be8f8eb4c2ce5c19d4dfee60cbbd1a675adf4546a6b5e343214573d
MD5 bb2490f9d414013067345a587aa15134
BLAKE2b-256 e550a55580195ff760ea9aea3962c1f63010f66fba2df7672535319379db9d06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8b8cea500dc8b3591b693c4632eda64811375182df74fe0dc0583df8040002e1
MD5 d37849ad8d4fa498b60c23c6ed330acf
BLAKE2b-256 94fed67b5f2093d400d1ee2114e6e838b1e23c98e4e84625f1e9c2c29ad5ab58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e98932f15e5072105f4d6ab48a52d420ca201b89b0c584ec1327e2561351dd69
MD5 ebfcb04712bdb801e86e55ac0c83b6e9
BLAKE2b-256 31a5eba0420b44c8b771d94b1212bf9d9d82d1324eb8528d11205cd27cd44964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 62386ad9038e6e1c44a7bf8b84c9867824f92854bd6fde9d7304f3f40d48180b
MD5 4ed06da2aaa6ec2fe43419cb0b8d4358
BLAKE2b-256 a3199049111412514f9b381fea1ca31d72185a744a30f473e113e8ef7b46a083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cac72aa58f76e92f0c0d7b5952f3a43b9559aeccd7df827835e0b6ef74421fa4
MD5 e76a09a7bcbbd6a35965579b2847042c
BLAKE2b-256 6e0ef937b5c5c1896889b0dfc03bf530a9493fc1e66ef36852988d20d4b7fa1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e0c91ea196b28a60aedcd105b9b81385197e6d53cb99e72fef3e82ef4b2d764
MD5 6991d0345c5de93bb0ccd0c48e2d77b5
BLAKE2b-256 a2a4fdf85851def96c0e373eaaf84572d68058ca112aea604b26664020db1d41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.43-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 facfd4762ebcb1da089dcd52dd2af0aeedfeea8d0c9981f56be4d44af99c1fa6
MD5 dda5401a2e393df54732aec24dfad226
BLAKE2b-256 81cfd5f6017855405748d807cd56f01686a9ab329641686be48c6dd0d34f898c

See more details on using hashes here.

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