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

Uploaded Source

Built Distributions

ms_deisotope-0.0.35-cp39-cp39-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.35-cp38-cp38-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

ms_deisotope-0.0.35-cp37-cp37m-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.7m Windows x86-64

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

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

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

Uploaded CPython 3.6m Windows x86-64

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

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

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.35.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.35.tar.gz
Algorithm Hash digest
SHA256 0b11352e64974b4d5ab597ff30f0fb8fc9b7075d47baafe5f043605d804977a6
MD5 569c59f85e9b4bc3dc52ff95a8cc9fe6
BLAKE2b-256 f5036b1b528d2c7d36bd7d626a57d7fefe51aca459c437e1c0fde4b7ff78e931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.35-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.35-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e9baa3ab986f31298535bccfc4d8dc2ccb721a4a9f2495335a6a1231769bb74
MD5 8ee76fa332f3d190945a4a6b97da7c4d
BLAKE2b-256 e33ef73f70917b37fe2b8542c613059a86da0f62cb1eb631de065836b6a51b30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.35-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1c82206d0fd040be77723fe2eeaef5057a47641d1fb31356f82c3685004550aa
MD5 ef7d7051d3d6b107a9cff9eb418a477a
BLAKE2b-256 7d1b6705c5f0ef78da11bb5254e7c2c653f239e03c8d569f5495d9e5699baf6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.35-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.35-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 58d0ae1004d66be175d71e206690a6431ec04a2807f2b312344d9c946dcad791
MD5 d87fd67722a614be016f22879dcecdcd
BLAKE2b-256 13e989d83ab4414b6f45162dd90101129e18bc45a8da99b6569df8472b52e6e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.35-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 15bdbee45211c2c56b0634780122484d92da25fbb28a832ae058b1f9595d759d
MD5 ba9a1c3dd11e923fe48c5ae2bfb1c9c8
BLAKE2b-256 4f32313f7803842662d5729b9535b4b6b433b03a11dba45498925a80eaaa0aeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.35-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 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.35-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 cb7c851f783aed0d453582669f8370ca8d77419bcf82c179b05c54533eeebd46
MD5 e3dd2c30ba5a77ee8b8d4ae7727294dd
BLAKE2b-256 16237b7a0faa1e003fc4dd593a6661082fe92bfbff373cdfc74630983a7d071b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.35-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 21aaab21f49b862c466c5e01b1272b44865e080a27d719efa0316c092cf3531a
MD5 90bafa44c580392801ca267880b21bbf
BLAKE2b-256 aba81c8d73060797b11baf91fca46831cb3770b06cc111c7fd5d1579efa94f35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.35-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.1 importlib_metadata/4.8.3 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.35-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fcae5311ecf4b3832afc8082258d2c6d53e0ff315440e9898ff4e6d59851f75e
MD5 38d1cb5dfdd3aa6395592ea867ccb74f
BLAKE2b-256 b003b59ed4a5e87fbc652add2ccff19064b3489c803b2b303375d07d1e19b555

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.35-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 059ce987d83c977904d374835d1246b75e1a85a633f3773973b1caf5f729f2bb
MD5 19b32ad70f82177af6b4086d809bf71e
BLAKE2b-256 cf1db746e73da0515f2b1b1387aa680147e6fddbb0b387950b4f609429f73c1b

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