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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

ms_deisotope-0.0.42-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.42-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.42-cp39-cp39-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.42-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.42-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.42-cp38-cp38-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.42-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.42-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.42.tar.gz.

File metadata

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

File hashes

Hashes for ms_deisotope-0.0.42.tar.gz
Algorithm Hash digest
SHA256 69babaf6148f84e27d92fe35950a724ae183bda9052f061fd4948f7967d3c8ad
MD5 b6e7d927ce8ac422c2b52481f66300d1
BLAKE2b-256 667e0a92e596aa358086af0a3cea6a29bd27db50b3e402fc9c5f2f73b6398917

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 65fcd0cc778d9fd42738663691ae4e542b66f4e1f1bf0ea7b7f4d577ece5a308
MD5 fe292b29eea56b9ff851aed53bfd1aa1
BLAKE2b-256 d0ee436edcd948e6aee6a0c5010fb3e681790ce72a25bc08b6e8e48cb162a093

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf37d1636a1eb6c667da3ea8ba35cffe281c20673e78c8353cc541d7612c31b0
MD5 1291cabdcbebe7e3f9ba97c20d2fd377
BLAKE2b-256 db938e334d17c67c8946b240044c43d55faa420d6b06989d1d5bc2a7602d62fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5ff355107dc2ce68812ace51d44908f585c7b95a55bbabf7c0c5b0abe446c2ac
MD5 c910e7db8fca707b2c26e234ebf088a5
BLAKE2b-256 6e7037eb7d0d9f8336218aebcb2ea77ba94720829c9a40bdf79600fb0985dd42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7a4e2128f9474ee6c92f2d3f1e95b2b49ca22333e98042ccd93a9591e137dfdf
MD5 b84b38068e2c0a0da3ee428635d3b85b
BLAKE2b-256 2376e4a3286ea046bf76975489f9736382a2b293cc394ab74e227574e24d8c41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f482056ba359fbe84090f806d08b023d59dbf1bc6c63c4bf7c60bf924db3b21e
MD5 1f08960594cca26d3d170b85125e2532
BLAKE2b-256 87607dc514329c2382775c8c33fcbfe798314b5bb266f79c413a1e28918392d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 316f643cccc7a556925f7e3fcfab66922d32c8c743fc4258ad359ba13bdf5c4d
MD5 74c7a2b0b951e42325029800ae2760c2
BLAKE2b-256 65fbb11037bbc14b2bdd384656d96cbd19f6ef0c0a860b63a188a9a5afeaed86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5fe515707d3d0105f1df08512b59454cb0062851e696c5e792d9b40a62626746
MD5 9021d4ab2c5f10a245ac6437cebec9b8
BLAKE2b-256 c7d50b0666f949f778f5a6fc230448f9642b9960269465fb9a6984dd247c8d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1dd998e49bd677075cb444d5fed4b111a6f1c0da126fe41608749056f7dc4914
MD5 1873b3c5d717b93361b4f5c578b003ad
BLAKE2b-256 5a127bb918b0f4d2303fe8f5a7fd5a23a7b5d8baf5adce30a6b2d09915ae0d9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.42-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 953f6c5c1f2a4dfdcec83367b736928d8ad2a2ba8e2b5cf020b8ec0c8ba09ac8
MD5 da451ef603621fd92452701358b71838
BLAKE2b-256 1d185c7a82ae34056bef2448250c57f9f2fef4aacb2927774543a363b8577627

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