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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.22-cp38-cp38-manylinux2010_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

ms_deisotope-0.0.22-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.22-cp36-cp36m-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.6m Windows x86-64

ms_deisotope-0.0.22-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.22.tar.gz.

File metadata

  • Download URL: ms_deisotope-0.0.22.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ms_deisotope-0.0.22.tar.gz
Algorithm Hash digest
SHA256 d192b78bbc5d0c9a2e791abe727644422e4a96e7691b86a8c53ea2db7ec61960
MD5 5d18ca9cc87193506eeaf2d272241ffc
BLAKE2b-256 c6cdccb42ed53867f94ad7be6e5f692fd6376d8e57cd72af71de9221b79f87d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-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.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ms_deisotope-0.0.22-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d0af21fb8f12d15254c336b1679ff33a20f4aabd6c31c8f2f86301b203555964
MD5 3b06e2ed2ab44de1a6df58d45ecac2e4
BLAKE2b-256 8596d59ab2669080d85c38d6a0498ad56c3c55acd7a21b78c52beedb0bb2c009

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-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.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ms_deisotope-0.0.22-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2b690845dc58b68b0d84c3cff44f8f8e1efec5d14485c5d5ba30fe6b4cca58b5
MD5 7745d263ec69c97bbb706327b75290aa
BLAKE2b-256 a65954b881d5e9c05c5c72b216efc8d2b737666e06225a42518945d290f75437

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ms_deisotope-0.0.22-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dcdfa844c41359004f23128097163e3770382b063250c0b7e91f11564fadbd0a
MD5 3111a5e1425065898b36eb64c3197d91
BLAKE2b-256 6b9f6f31283dcdb77e9d2e85075a608e318b5e17b1ad5c111ebaf3e1dfcb789b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-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.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for ms_deisotope-0.0.22-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d31b42cf43f3e9e6b2e88ae4408b11593d622e82b10a9c70b42bcfb31e309bcd
MD5 c990b5d09beeafbfa510bf59fc55cb1b
BLAKE2b-256 4b0bf9c7299724318d892925401ddef801a344fee8754f2584e91ebfad110783

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-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.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ms_deisotope-0.0.22-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d91556efbf063232ffe7ab291c2a5ab7155ca0da92609e8e800fb1b3db10fa8b
MD5 cf15d60720a10809e610bc8eee4c5133
BLAKE2b-256 10f6d9e9007558223675218b54c4ac753324683287ee164df01e56a35522e02c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-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.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8

File hashes

Hashes for ms_deisotope-0.0.22-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8d9e33bf7c4e8646fdd58c683468a3ced16d41eb36d804258bb0a361a5a7af0a
MD5 30c62b0055eb4d4f74613bcfb5d0c298
BLAKE2b-256 39720f44c72a57e5d7a7357678e08d6a131188f1a05e4806fd40867a8e183d88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.22-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.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ms_deisotope-0.0.22-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ae098fc5eb9d3c26a6dca6bd05bc3c6617906f7d2b28472f6f29838699b91e53
MD5 85f17a9d767866c463b567402e6528aa
BLAKE2b-256 09e76dd621016391781f159baa98e4611ee31999681f1a590f644d2007e4bd58

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