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.60.tar.gz (5.8 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.60-cp312-cp312-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.12Windows x86-64

ms_deisotope-0.0.60-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.60-cp312-cp312-macosx_11_0_arm64.whl (8.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ms_deisotope-0.0.60-cp311-cp311-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.11Windows x86-64

ms_deisotope-0.0.60-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (20.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.60-cp311-cp311-macosx_11_0_arm64.whl (8.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ms_deisotope-0.0.60-cp310-cp310-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.10Windows x86-64

ms_deisotope-0.0.60-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ms_deisotope-0.0.60-cp310-cp310-macosx_11_0_arm64.whl (8.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: ms_deisotope-0.0.60.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for ms_deisotope-0.0.60.tar.gz
Algorithm Hash digest
SHA256 a7141ad90e60e67e843d14c7396e925ea1f97e343248515452ecc40dff79b23c
MD5 f2f68104ebc962681a81dfe296215f98
BLAKE2b-256 bed71e5fdbdbd8b4698486b6e592c873101323988a57400e1726e47bd54e4ed8

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.60-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bae54fe9100a0677761e2c2d9a463661b9352dd8799dcb2918bd9c21a4795b4c
MD5 9bd7645df1556ddd2bd850b7b6e7b3eb
BLAKE2b-256 9a4236d8d9637a4403a2b52237322e3e0566d93c8e9384d8f9a3513c3a8a06b7

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.60-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f171a8b76e0217b46e3ef9b08811c965172d5e21a348128e3ece5adec522d9d1
MD5 ebfb8219051ade89ff0768efb4692eb2
BLAKE2b-256 cde0d154b58af8ac2ad1b12e638fc0db0fac1dce8370df3e4c1364fb3628f586

See more details on using hashes here.

File details

Details for the file ms_deisotope-0.0.60-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ea518852ec9ce0296491d1789fd86b90c6d7910f0f29880f19b9f6d40bbd912
MD5 e022862188a3133902360384d5a659fb
BLAKE2b-256 731c43cacdd83003e9afc65cf1d299f333f03b52d4d22d540a563d7922d46c9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d384c6a7ea8dabb8a3ebf228b758208b49367756076538a3e07edc8cae47718c
MD5 c8050545e1482a10e926219fab6d27ae
BLAKE2b-256 0be606fd032624f4b2c12fc0fab492333a91926fa7a311acfd93b6fc1349272f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 27b9349a09119293dfc82b9b03768c2c6965cb632de3782dff3db81292e3686c
MD5 0cffe1a3bd5668a6ca73886377d72706
BLAKE2b-256 58b0b1afa7f268bccea77f6c1dcec06b612c759028e50bc13ffaba71ce9036b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af794e9b08ae5e25b1d1443d01ba2fbd33b9921e81ecff486dc957aa3a5be330
MD5 edc7d06f66f221961b198fca9520d2bb
BLAKE2b-256 4571ff07fdd389723ff2bf06e8034ed617235c1f33635c63efff12ac26aeb167

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed231c25a43453ea6b0d30c947bd8213b86b7e7345669641a170d8848ea41882
MD5 da02bf51721adca317223a166b186cb6
BLAKE2b-256 4d41b5033eb4a32574ac2717dab47685a705b82ab6e283fd5462307749c52dbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 14a1ca8ec7bbb4208f13a7afb91b12e8f69fe9628dc11ff118ec722b21a4711c
MD5 b5f8eed99ad2ee8b260d5a3075dc7185
BLAKE2b-256 036c27a3a46631226302ce9c9b942415a9a007c3a037de8568e638c5e85c08f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ms_deisotope-0.0.60-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b0d92490b22b5013205307dac5d67ec793bdef8064af8c9ba719ae811774d80
MD5 5e0a076e7eb4e0b6a4acc386d5e3e674
BLAKE2b-256 1e834e94f792d4cbe65bcf92850f0cb4e0f72e650848dd7e372163dd07c45a33

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