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

Uploaded Source

Built Distributions

ms_deisotope-0.0.46-cp310-cp310-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

ms_deisotope-0.0.46-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.46-cp310-cp310-macosx_10_9_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.46-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.46-cp39-cp39-macosx_10_9_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

ms_deisotope-0.0.46-cp38-cp38-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.46-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.46-cp38-cp38-macosx_10_9_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ms_deisotope-0.0.46.tar.gz
Algorithm Hash digest
SHA256 ba7d56955c3d4df4b0c85aa6a556a4855f0eee40a251135ddc9f948c311c0e88
MD5 c5436122e36684207bf5f33b0bb7cdd1
BLAKE2b-256 0c45690f845115aa00e41087b475585e56b132418a8661d027472958411b1624

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ace4df2bb9f8ffad8c183a5d673195229fbf82aac3094007e96bac3326434c2
MD5 ec00ba7292657d4a7dcbf5113f413bb9
BLAKE2b-256 265a1de33d367eb97b9434bd107c47f40691db68a2aca42198688f47b8205364

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78749cd09f37d793cfb42d59794eab37f995b0756dacd624b4d1a73951287bb3
MD5 49471342835e193e69a7505751d9bb93
BLAKE2b-256 155841717cb3b8ceb0397d0ac49f2fe8247a6a64c14f781f3eada453a76e5058

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c2a1fa2cba1b426050c355562aade8dd59e63d54546f8e63d1fe73f647a012c9
MD5 cb6eeb6c43ddf9809db710ac46765d25
BLAKE2b-256 823064f465c5bcc9da19a547c702cb878d433db57c108813fbec3d190a87f9f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 02facc1e6d3e669c9feb3dca000796d27d33866e888e07217e37ed5115ce0b1a
MD5 38a4a00b70ea37944873516cf5316ebc
BLAKE2b-256 a56bd0028c530df74fd013ded789befc94ae6fcecf28494d0fa4547f87f1756b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2977c802cc87f31bcb6be95163ed431b9726bed59f11a059345f9392c39e8a7d
MD5 05e9378848e1d3efa1a247b3d400a083
BLAKE2b-256 dbaf8d90982e0b19ee58e9c1359155952cfa344a7a64e5b4e12c736928669490

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 131c6d7ed71416dd012249bcd95a416eb23c3e689a0dc53dcb8ab13acf674ce6
MD5 a54e2064fa21e8f8ec673237ba98760a
BLAKE2b-256 846efc79b287e8e60163a2ede092daff7f81664aaa386977a58b51bc27d5e0cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ea00364a3f4451f7ffee26eb46f71862f4faa9060c12c7f7ed51f7e194809f9c
MD5 7e13c79c620ed5fdbea945ca7347b2af
BLAKE2b-256 445e95a6851c9d384af0581e5ae6f3c5e465caf03a6e6f92ecf3737f4d04aef5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 297ba922742d07161517bd3119f0351a5ee19607a957cc96cec273c3c7c524b7
MD5 4ed714e829ee5f98aee07e22133b9e3b
BLAKE2b-256 8646e8910d9820edf7bac50ca89662610760068f53ef1ac6f1bbf5deffa80b19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.46-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e6393f103a34ffa9125dd3600ccdb12b1c59f78fbd1c59571f99e04fc1cd7f5e
MD5 43acf6c45a0103634488ea791f18c6f4
BLAKE2b-256 81c4aa985b396551a6e6c103eb028bfc7c8bd78e0d25102ac96b1b9c1bc78ec8

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