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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ms_deisotope-0.0.33-cp39-cp39-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.9Windows x86-64

ms_deisotope-0.0.33-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8Windows x86-64

ms_deisotope-0.0.33-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.33-cp37-cp37m-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.7mWindows x86-64

ms_deisotope-0.0.33-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.33-cp36-cp36m-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.6mWindows x86-64

ms_deisotope-0.0.33-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.33.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for ms_deisotope-0.0.33.tar.gz
Algorithm Hash digest
SHA256 ea31db1d20598f973bff540815de1578c7b7f6b384a21e6914f07933d82d38c8
MD5 393c448499f507a3fe4c68fa850db74d
BLAKE2b-256 090b8a6f5d17e75c11001e0d4dc52c82a9a48fdbad85b372eb926b8999bd5481

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.33-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for ms_deisotope-0.0.33-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3d867edc78545edddeea9e383c1b4db22b9185decb048f5ae4788da227620370
MD5 0253a03148049bc2100bc971b9496176
BLAKE2b-256 4c908e720c31f13521541b44d256dac4fa33f93afd5bdb8c29a64d7ba6ad3e47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.33-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 edc7a6f3cc15a7c27c5e800ab5c95acb328d78279ef0b35eeebdedd7589ec5ec
MD5 79e055136be161faccf82f997389a094
BLAKE2b-256 3923cd8c5dc536bf8a0d54eed418f5502ef89301785f8cf508e3bef5ab29ee24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.33-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.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ms_deisotope-0.0.33-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 62c0835621fc6b71c3bc90e1465d921ddfa84f0a493fec079741f023131bcf26
MD5 73fb3c5b358c961e8fc4b0cc26e23cfc
BLAKE2b-256 195f000abaf72078135dce196441e4ae9311135a7f3d1f0b5b52b5c1bf228fd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.33-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7ad0609b7df75cd2e0962d42d701c826babe0c9d10afac26fb87981e5b2aef43
MD5 8fb60a47945e917363e84125bb27e275
BLAKE2b-256 b1cfaf536bd44c0b1fb4198bdb368fd6855f1ca6f5169ea8f0f71fcfd7d9e03f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.33-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for ms_deisotope-0.0.33-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3f35bc0cc35a21fa9e4d4c9d1711206c7c091154768be9d89cc5bb8b46aea7a0
MD5 68520ddf206f11c76d993261f298d0bc
BLAKE2b-256 7c49f04c10ee4e35e9e459c2c540258ae8e6d9b344c8aaccb0591297ce643e09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.33-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 75af511b2591b590bf72977ee64d285ed079fc4f458464419cf00e626273a0ef
MD5 f5eb7fe220317fe8fbe24fe5905ea885
BLAKE2b-256 92a61dfde50e7c73bf8a6c74685971a1df2e87524bf93a91c6ca5444ba75c8c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.33-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for ms_deisotope-0.0.33-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7dd54f83f7f9e3428012255f748bbed9da0b4c2d381ecc5a12af056f29b939b9
MD5 311016af3bc000ab49e37b6872e30a15
BLAKE2b-256 19a2ac9ec9769a96cede2e73b916e089d6828b812dbbe1e99c25f492420f5fb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.33-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 48a296d393241cf7c51c7a29d6b89dc715d1ab5bb4f356b706f933f24b5573dd
MD5 31db980ef96869696bc9f8513fbfb736
BLAKE2b-256 716289612eae5129efe6d13381590689c1afe8ff11ff99ccc1acbd9c16ca3f99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page