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

Uploaded Source

Built Distributions

ms_deisotope-0.0.21-cp39-cp39-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.21-cp38-cp38-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.21-cp38-cp38-manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.21-cp37-cp37m-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.7m Windows x86-64

ms_deisotope-0.0.21-cp37-cp37m-manylinux2010_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.21-cp36-cp36m-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.6m Windows x86-64

ms_deisotope-0.0.21-cp36-cp36m-manylinux2010_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.21.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ms_deisotope-0.0.21.tar.gz
Algorithm Hash digest
SHA256 d924b38b607b45b69bdaadf8497f32ab9a669a91044a07974ff3cf3df4338450
MD5 698519c71b5f7ec69001ec9dd19b7a20
BLAKE2b-256 8ac77449c28d5fe036fadb6c80ebe51c1cb5d803c9d67eb97998e91487c8232f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.21-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ms_deisotope-0.0.21-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3aca5e1c39a6bf0489aa984c5b279b54d836dd3d966a3b9326ca9212fc08b1b9
MD5 b089a577c351f72e62c3f4d6471ea69a
BLAKE2b-256 f1e18ea7e76110824d2238decb0313a5b48faa1e09d9f947815e88bbb08931a5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.21-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for ms_deisotope-0.0.21-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 27142738560c1ea545bcabdc275351f37aeacd6ec62540678e3770e34cc9dca4
MD5 9071864248e8f24f66168c5c36210c33
BLAKE2b-256 b8be37bc0c641ef715ac418ee3f77b453c5ef953381d317bd3e85e97d0a17aef

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.21-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.21-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ms_deisotope-0.0.21-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f470998abdf9cdd93811371f8830236542a196cae207b02fa3d0e681a89b9a8e
MD5 a929f3e82f8032ad826c9a2d97b7ab2e
BLAKE2b-256 395999c8d99a27e0ee23147045bf50077367ff4656a969d463e468ea51c5ad1a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.21-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for ms_deisotope-0.0.21-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ccb9c7ee105d39fba6ab413e3e8430fa8f9cba0758d22df1f7d9b6110afb0aaf
MD5 de846ae7ef3c3a71bb286c3b4638e7db
BLAKE2b-256 36954d39273b922f89c5e1ccdc6c8e1a38a64c5d16375859313a825b929fe374

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.21-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.21-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ms_deisotope-0.0.21-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0659d81ba10bb281e45dcc3eb270800412c03d9fbc876a5b8b92f08d373c9bc7
MD5 46f0a326f8be52136e519befca4721df
BLAKE2b-256 d8c30665a44272a7bee8b535a4a5f2ee40f43d68371fe44724da31c1b8ab7adb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.21-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

File hashes

Hashes for ms_deisotope-0.0.21-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 50f6d0cd03e85df4b6105e35a5a6e80b50adb1601e63c69262ee75f9e7f0ff90
MD5 5a24f9e322f1e80530f2e427a5d54716
BLAKE2b-256 4f5a3bd6e7188117200be45a76f9a96d222a385c8958313bf7831d7de362f156

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.21-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ms_deisotope-0.0.21-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ms_deisotope-0.0.21-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4617ad698f793a887552ad2a8986b780e855a45d2d4366f9527a1d44bf77d98a
MD5 e217d7dd6877538c770334d5e458b47f
BLAKE2b-256 dd5dfb9f850620c65c3e97f159feda5612466fa0eac25e10da3c7bc9ca16ad68

See more details on using hashes here.

Provenance

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