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 >= 3.0.3

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

Uploaded Source

Built Distributions

ms_deisotope-0.0.55-cp311-cp311-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.11 Windows x86-64

ms_deisotope-0.0.55-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.55-cp311-cp311-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

ms_deisotope-0.0.55-cp310-cp310-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

ms_deisotope-0.0.55-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.55-cp310-cp310-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

ms_deisotope-0.0.55-cp39-cp39-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

ms_deisotope-0.0.55-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.55-cp39-cp39-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

ms_deisotope-0.0.55-cp38-cp38-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.8 Windows x86-64

ms_deisotope-0.0.55-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.55-cp38-cp38-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.55.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for ms_deisotope-0.0.55.tar.gz
Algorithm Hash digest
SHA256 d07bcfa87ee23f131e7a3cb7139342eb588e44925ce5d6fa7b9a1ce70f7afda2
MD5 f422e8ec19655b4827f198b8bb160849
BLAKE2b-256 7d3ed24b6f6b9f7a3b26de303628bf6981c7c53898f5b866238a4223429122fc

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.55-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3e62b7326237077dd37ac89d5b040e6ed7407768a1f67f708cc3984561c10e45
MD5 4940d3a0bb641b4a52c5e36242a6f542
BLAKE2b-256 b67c704aa3dffd39eb860891329e4645152faf47f6230e8f11356b77ccc23992

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.55-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa192d411a0ede83d45dbdeae4dc761b07ca3815f978538c3cfa82d48cac576c
MD5 541b8a0824f24ffd10f828bf9fc5f2ee
BLAKE2b-256 aacc0d7e48b5773c0714a949706058e260a7cbe5b4eee0fe7bc741b2bd421bfd

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.55-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7be28dfade453ae074eeb5366ca885c388352181f44ddcb8ba10935957ad15ae
MD5 1be63c18678f7668e2d8ab2710e04abf
BLAKE2b-256 603fd990ddf1b08d5e2a3861db853d40266af93ecf0373ea300d6573d9937fb3

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0440dfea628c3704efe1d469ae7076e2d8e307e63ad9ee5496f4e5a0bd12d31
MD5 2aee1392cfe2279b7897580bb834cd47
BLAKE2b-256 c1e177bf7f7aa8d4f87c4bfc8f0a54513a0cdd53edbfceb1b997a043752211ce

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 05873e6745c89fa2e8bae9b04e63937826ec9a0d4a13ec53c232c265214e27ab
MD5 e04376e95dcd9b07d388d4d1bcb454f1
BLAKE2b-256 9fe8b779fca7b83f0bada4e4308302f22746f9d1b2efc540b0449ce08190ec3b

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.55-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77e0f9392ae289296ea99a307543eb6556514737426a7134df2b6e1c4aea64e9
MD5 9551d2f42de7bb02d1d98d20b5f09bb2
BLAKE2b-256 bc82dd3bbf7f5a68b261f6ca6dc427b149ab5242cfaf467898380092b421d0c8

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6259ab64674573016850403886b3bfe61a478483a9d7b1898fcdf090f7947602
MD5 ce99b8078045d58b414b31a786684571
BLAKE2b-256 e7f77981306d52d07dce2c71cc1b2385f50de18c953ac2b3bd7f27b073f5788b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 604c1aaa547ec74d4fed610578f892029aa09544cef015d8c1005900d3dc5286
MD5 8215683b95fde465da96894d698526df
BLAKE2b-256 a06ed5e1d072b542c65ce566830c4510bbdc24e3e861ef175609c402573822a0

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.55-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb67db68891194ec5c35a8253705a4c9700df1de4d8bca61a56c63eb14802771
MD5 0283344ff838908d92f3e3abf182a0f3
BLAKE2b-256 7594d468fc813f6d836232c9ea17ca1b25f26ca09767e53a1e28a73e5e98309a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6f127f1f157eb24261e6b622dfc6b01b7351b3a6109bb5aca3ccb4944d7fc889
MD5 9ec81662854a5ea88b02110169e1dcf9
BLAKE2b-256 906eefa503eca83a4c609d1b95d5796a86eebe51ef7fd86fbbdb978e9b17f1de

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19b5ab54de25921ca09fc49c246c488569e4b7e6b5a1f867555482ca37060628
MD5 cb68aafd99f9eae9382093226e585bb4
BLAKE2b-256 cbe12a0192640e832c12601e205f0a582190712a69f67eab2250841bff37d416

See more details on using hashes here.

Provenance

File details

Details for the file ms_deisotope-0.0.55-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.55-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3aa7f00629846052af96e61928640388004ed0b842455718e2b8cb4bbc514518
MD5 3fea68e7b84e9ee768e816a7c236d9a7
BLAKE2b-256 3047a9c567a13f504642ce955214dea981d28efa43069e4f5f2bfeabd1c38cbe

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