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

Uploaded Source

Built Distributions

ms_deisotope-0.0.44-cp310-cp310-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

ms_deisotope-0.0.44-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.44-cp310-cp310-macosx_10_9_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.44-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.44-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.44.tar.gz.

File metadata

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

File hashes

Hashes for ms_deisotope-0.0.44.tar.gz
Algorithm Hash digest
SHA256 3829f6658027153643702ea5c3cf6b9ff8c0189ec6d1f9f2ee9a498fcbb2bf30
MD5 448051fd1f8d00af1fd7d29cc36cf756
BLAKE2b-256 685278e6586738eacb3253ade2e4a3fdb16fddabe05e2e4476953d3a9fce6567

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a3f1005645fd31fa313b2708fd03f347d12e417887ce62c100cb73b5a362340
MD5 61a116a14c10b0e9e4b264bbbac878e7
BLAKE2b-256 1c159770fe39cfc19bc7c62abe5cfa0f61f867c355beee5291359859f8b330b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b63705a26c7ad4f9730d2b691d4046b5518aca7ccc0525eb0ac2e50cd6fe8288
MD5 ffe545287f49c0656cfbfefd0128c47a
BLAKE2b-256 6c19aba7338e213724a35034ffeca915a501287b485f937d0c5f2865a3b31b0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1080f24e0de8a1ed26eecb5f28ad311fdc0dc99b26d2321c517b8cabb24d7129
MD5 ff5ca40d123cf74ee1bf2f54285b733d
BLAKE2b-256 23d45af65e061a3aa232d751421ffe58b11469ac78cd82a45d66ed91904371e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 78e39f6555f1d9d124e3739434900158b727ea834d04f4cc65e645270d61850a
MD5 50af443ce48c9f1e6586140e646e0db3
BLAKE2b-256 d3a2a9b9d9468613a0eb45b062f856129154394aab680e2b3f6a38f21b7b9367

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5b5d42887ee078333fae6fce84fc7ac5eb3d1e4aa1fe0f885396e94079ff9de
MD5 87a7b12fc083efb3aedec82e3daeb8ca
BLAKE2b-256 88b98a59f83af95aba74fac69f75af6aa91c4c27a2abcaae7921fa7d731fe8ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7c9d4316b4337dda00231f4edfe079d34c79055ff016abf823ede18be0f98c6a
MD5 f09e8eacc3c70fe5e8983c55d424c480
BLAKE2b-256 be048d14371d8084628831e2a2fbe6e1917d966ae1ea29ec3f7de4404892df86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fd91ba2c34adee38bcfc93177a0363279739f0b5fca7fc95a23d8092b1bd11bb
MD5 ad3466c3ff13338717e5580b83205f10
BLAKE2b-256 9885eeada11c6ff033a96c8fafacce9a3e0fccdb9d15d291765369739dff9b0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56556155a81c2ba0256fd7254b40f9c3d4b5e4a43a0ecbbd6081ae473957a9f9
MD5 05a590afcdf88f07f41f92b18f962ec0
BLAKE2b-256 6b5b582d3b82061ca9d9c938dd93deaa57985700ef782c2673181d5ab7795b87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.44-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fc448142b867598545a614a2dfbde5e6a5a986088fdaba8f96fae64526b25525
MD5 e41ada03e5ab9e6a496b05503a5714ef
BLAKE2b-256 b241ee1012e2a9d67b4ac5b1fbad20a4dac1e9ccade15a058eb43545684377a5

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