Skip to main content

IsoDec

IsoDec assigns charge states and deconvolves isotopically resolved mass spectrometry data. Its native core uses IsoGen for peptide and RNA isotope distributions.

Installation

Install a published wheel:

python -m pip install isodec

IsoDec supports Python 3.10 and newer on 64-bit Windows, Linux, and macOS, including Windows ARM64 and Apple silicon. Native builds are also tested on ARM64 Linux; the Windows ARM64 wheel is tested with Python 3.14. Compatible wheels include the native IsoDec and IsoGen libraries. A source build requires CMake 3.22.1 or newer, a C/C++ compiler, FFTW, and an initialized IsoGen submodule. IsoDec pins IsoGen and the pyisogen package to version 1.1.4:

git clone --recurse-submodules https://github.com/michaelmarty/IsoDec.git
python -m pip install ./IsoDec

Python usage

import numpy as np
from isodec import IsoDecRuntime

spectrum = np.loadtxt("spectrum.txt")
engine = IsoDecRuntime()
peaks = engine.batch_process_spectrum(spectrum, centroided=True)

for peak in peaks:
    print(peak.mz, peak.z, peak.monoiso, peak.matchedintensity)

Mass groups use peak insertion order by default. To evaluate descending matched intensity order, set engine.config.mass_group_order = "matched_intensity" before processing. Intensity order applies within each incoming spectrum. Native grouping handles new collections; appending scans uses the Python incremental merge rules, with the same double-precision group summaries. The ETD example and frozen grouping reference are in tests/ca_etd.dat and tests/ca_etd_unidecfiles/.

TXT, DAT, CSV, and NPZ single-scan spectra are supported without UniDec. Raw vendor files, mzML/mzXML, and I2MS import use UniDec's extensive importer stack:

python -m pip install "isodec[unidec]"

Command line

isodec spectrum.txt --centroided -o assigned_peaks.tsv
python -m isodec --help

Development

git submodule update --init --recursive
python -m pip install -e ".[test]"
python -m pytest

Documentation sources live in docs/ and are built with MkDocs. Release and wheel-building details are in PUBLISHING.md.

Fragment matching

Match deconvolved neutral masses to theoretical protein fragments with a 5 ppm default tolerance:

from isodec import match_fragments

match_fragments(pks, "PEPTIDE", ion_types="by", monoisotopic=True)
print(pks.fragment_match_percent, pks.sequence_coverage)
print(pks.fragment_matches)

Each matched peak receives a sequence_match annotation such as "b6". Pass allow_duplicate_assignments=True to retain every valid annotation as a list instead of selecting the assignment with the smallest ppm error. Pass match_multiple_monoisotopics=False to match only each peak's monoiso mass instead of all masses in monoisos.

Plotting Sequence

To view matches along a wrapped sequence, run python tests/show_fragment_matches.py from the IsoDec directory. The demo uses IsoGen's carbonic anhydrase ETD masses. For an embedded view, call plot_fragment_matches(ax, sequence, pks) from isodec.fragment_view with an existing Matplotlib axis. Modified residues are shown in red. The standalone view is sized for a two-column figure; save the returned Matplotlib figure as SVG or PDF for publication.

License and citation

IsoDec is released under the BSD 3-Clause License. See THIRD_PARTY_NOTICES.md for IsoGen, FFTW, and Intel runtime notices. When using IsoDec, please cite Pavek et al., “A Fast Neural Network for Isotopic Charge State Assignment,” J. Am. Chem. Soc. 2025, 147, 21610–21620. Machine-readable metadata is provided in CITATION.cff.

Changelog

2.0.6

  • Fixed UniDecImporter integration for batch processing mzML and other complex spectrum formats from portable UniDec builds.

2.0.5

  • Updated to IsoGen 1.1.3 for improved fragment matching.
  • Require Python 3.10 or newer.
  • Moved mass grouping and merging into the native core for improved performance and reduced memory usage.
  • Fixed the intensity-weighted average of monoisotopic mass candidates during mass grouping and prevented merges from modifying the first peak's candidates.
  • Fixed isotope-distribution mass-axis fitting to shift toward observed centroids in either direction, preventing accumulated positive mass drift.
  • Use matched centroids when merging neutral-mass groups, so unrelated peaks in a local isotope window do not distort the fitted distribution.

2.0.4

  • Added Windows and Linux ARM64 wheels built and tested on native ARM hardware.

2.0.3

  • Added fragment matching viewer.

2.0.2

  • Added fragmentation matching options.
  • Updated to IsoGen 1.1.1 for ProForma fragment masses and corrected z-ion annotations.

2.0.1

  • Improved native processing performance with optimized AVX matrix operations, linear-time peak detection, faster isotope matching, and reusable work buffers.
  • Moved installed native libraries and executables into isodec/bin; Windows binaries are included with the package.
  • Added processing-time and matched-peak reporting for native spectrum runs.
  • Added automated MSVC-versus-IntelLLVM performance benchmarking.

2.0.0

  • Split IsoDec from UniDec into the standalone isodec package, with IsoGen as a submodule and an independent version and release cycle.
  • Added experimental charge-state assignment directly from profile-mode data.
  • Added cross-platform tests—including native ARM64 Windows and Linux coverage—documentation, and automated wheel and source distribution publishing.

1.0.0

  • Initial IsoDec release with IsoGen integration for isotopic charge-state assignment and deconvolution of mass spectrometry data, distributed as part of UniDec.

Metadata

Release files for isodec 2.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isodec 2.0.6
File Size Uploaded Provenance Actions
isodec-2.0.6.tar.gz 60.4 MB With provenance Details for isodec-2.0.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for isodec 2.0.6
File Actions
isodec-2.0.6-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for isodec-2.0.6-py3-none-win_arm64.whl
isodec-2.0.6-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for isodec-2.0.6-py3-none-win_amd64.whl
isodec-2.0.6-py3-none-manylinux_2_31_x86_64.whl Python 3 none Linux glibc 2.31+ x86-64 Details for isodec-2.0.6-py3-none-manylinux_2_31_x86_64.whl
isodec-2.0.6-py3-none-manylinux_2_31_aarch64.whl Python 3 none Linux glibc 2.31+ ARM64 Details for isodec-2.0.6-py3-none-manylinux_2_31_aarch64.whl
isodec-2.0.6-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details for isodec-2.0.6-py3-none-macosx_15_0_x86_64.whl
isodec-2.0.6-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for isodec-2.0.6-py3-none-macosx_15_0_arm64.whl

Total release size: 206.4 MB

Release files / isodec-2.0.6.tar.gz

Download URL isodec-2.0.6.tar.gz
Size 60.4 MB
Tags Source
SHA-256 checksum
How to use checksums
6c658f5caae9f3547b6099365a0b77a8d2853bb006b19e9d73935e834aeaf9e1
BLAKE2b-256 checksum
How to use checksums
b9b683eb381606b260dda0a3013a752be05de1ef2b135d7ca321c25f113b4b35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / isodec-2.0.6-py3-none-win_arm64.whl

Download URL isodec-2.0.6-py3-none-win_arm64.whl
Size 22.9 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
b4e4f6d983ddc09b8dc4df0ac5334461b88b7471bb92934e831b04b0ecbf24ff
BLAKE2b-256 checksum
How to use checksums
5e3a0c6ffec18cd0ab38a7793586fe4f20a594a2952d51f4e4bbc309c6e193ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / isodec-2.0.6-py3-none-win_amd64.whl

Download URL isodec-2.0.6-py3-none-win_amd64.whl
Size 23.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9246f262f85e3327ec897677b0bf8fd7ca05ffcce036634af4e5a34e7d7ceb36
BLAKE2b-256 checksum
How to use checksums
19ddd245d68e91f49999f3c17960108f000750545f9237648a2bf16dc95377a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / isodec-2.0.6-py3-none-manylinux_2_31_x86_64.whl

Download URL isodec-2.0.6-py3-none-manylinux_2_31_x86_64.whl
Size 25.2 MB
Tags Linux glibc 2.31+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9aea1b81de0b49f2ea80406ab5e905d1badce7778b0e74d7a452620db07c1920
BLAKE2b-256 checksum
How to use checksums
02354225a280b4ce28426b578ccff11a24209bedf0bc595684993e7d1671a19f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / isodec-2.0.6-py3-none-manylinux_2_31_aarch64.whl

Download URL isodec-2.0.6-py3-none-manylinux_2_31_aarch64.whl
Size 24.6 MB
Tags Linux glibc 2.31+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c3c9be5edd1fa0b15bea932e90d0a42c2fd2bcb5f5872045f2ddf70a02983b77
BLAKE2b-256 checksum
How to use checksums
f9074dd8a72d16545299f9e85f0c5b5e80d5a3e5220ec339ee10d6000eb5af0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / isodec-2.0.6-py3-none-macosx_15_0_x86_64.whl

Download URL isodec-2.0.6-py3-none-macosx_15_0_x86_64.whl
Size 25.4 MB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
7355851841f74f570d6056acc4fbebd013cdb773a47acaea7c22bc6165dc0783
BLAKE2b-256 checksum
How to use checksums
bea78944c8c9da0f44a52f9cdf6910d2b7da291d523e8d41d0f95c7428e27b66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / isodec-2.0.6-py3-none-macosx_15_0_arm64.whl

Download URL isodec-2.0.6-py3-none-macosx_15_0_arm64.whl
Size 24.6 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
616ba9ddb14c872bce0c0a4e3af9c9660b939163e938dc8af0c5a5d10b814ee0
BLAKE2b-256 checksum
How to use checksums
314b4e2d4c2d139f01d56205c3687daeb45d5af914de30f733c29364a7e15d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for isodec 2.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for isodec-2.0.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page