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

Uploaded Source

Built Distributions

ms_deisotope-0.0.26-cp39-cp39-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.26-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.26-cp38-cp38-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.26-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.26-cp37-cp37m-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

ms_deisotope-0.0.26-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.4 MB view details)

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

ms_deisotope-0.0.26-cp36-cp36m-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.6m Windows x86-64

ms_deisotope-0.0.26-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.4 MB view details)

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

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.26.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for ms_deisotope-0.0.26.tar.gz
Algorithm Hash digest
SHA256 023a954a8484e288848eb444dd94910cd96b534ef8dd07f0d582f22851bdb2a5
MD5 3e0daa564403220ae2e3bdd7b8a578f4
BLAKE2b-256 2af19b707dff66195c33e824493acb0ab5ce84b7f3709b4f6621f38f6e98df40

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.26-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for ms_deisotope-0.0.26-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 69851574d85deee2fab9c0ffc726c53e95a26397fb80bfa4de4a3e5207f91e76
MD5 5edd82bc5de37580c30cfe0ec08fcf5e
BLAKE2b-256 2905b9c5ab3136aaf53dd83c5358a6fb6721f3723d679e0cd5c437e2be0db481

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.26-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.26-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 99230da92eb1003d8723417765f9ed846cba2b4460cf2a17354850c2df794345
MD5 ab6cabbf55acb1f7b80a3562fcd9e0fd
BLAKE2b-256 52c8e73ff401412c03644622f07d77de7ad3e496f64d3681f77662e9a5e4d964

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.26-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for ms_deisotope-0.0.26-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a82a5f9b0e139526c6a1687b8899241f08b9ce1f8628b6242599e55c20cca312
MD5 6ad270b4e72e8605418602ca1fe99e17
BLAKE2b-256 18308eba3c36b83e4788aa92a250706d915536d8371d334b536141f2ef0da1de

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.26-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.26-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9a723c1064e620571a59c2cd7b59fff1b42fef8bc7203b6c712afb3a72e65aca
MD5 fcc7f50c0fd3fb7c396147cb7429ec12
BLAKE2b-256 03be695aa273898fede04b526485c996b7208d1987c758418b8773e830da56d5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.26-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for ms_deisotope-0.0.26-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c02f469635b967fdbaa48cba3243cfac4414ef9bb896f26ceae6b39efbbb6f9a
MD5 7da3417ab691a3219b4bbb882c81a1a9
BLAKE2b-256 3c391a6ed09b1abebbc1e195b94947bc71e2a39990c9983e854632e2f0248161

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.26-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.26-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 86645372894fe15a7f93ccc1c31b1766f1b64b936f4430f864d32351e48dd09a
MD5 f415e39669001412531cee99f1dbcdf7
BLAKE2b-256 1f795e63a8708a17ba425b63cd2fbe87bd69c0d71fc209cce70f134d30b427a1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.26-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.8

File hashes

Hashes for ms_deisotope-0.0.26-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a43c6eac2e1136b0e652a5e0c1ac6a7fe170a4db3b511f92aeb75c3850de7af9
MD5 03e0d270d860a13d4970688685a4777f
BLAKE2b-256 5ba819304d0cf2f0079633df5ad3c39b36c558368820ab2f40285a22b5f8538d

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.26-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.26-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 71e32dd613990fdd28e9eaca01f61ea594de4fb8af068694c0945f91712c13d2
MD5 25cafd29109cce61ccc614ded7355fdf
BLAKE2b-256 03b8eb6beac605c84839b4b54a8eb7ffb8e3db532eb73d957581d0e35199eb88

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