OpenSXRaw
Part of the OpenMassSpec stack for mass spectrometry raw-file access.
Rust and Python reader for SCIEX .wiff/.wiff.scan legacy mass
spectrometry data files, with no SCIEX SDK or software dependency.
Covers the TripleTOF and QTRAP instrument families.
Documentation: sigilweaver.app/opensxraw/docs
Known issues and gaps
These apply to opensxraw 0.5.0 and all earlier releases. Figures come from checks run on the public validation corpus (see CORPUS.md).
- m/z values are not reliable on any instrument family. No part of the m/z axis has been validated against a physical reference. Do not use OpenSXRaw m/z values for identification, accurate-mass work, or m/z-based quantification.
- TripleTOF and ZenoTOF m/z values are wrong. The reader applies one
linear
(slope, intercept)calibration per file. In a sample of 48 TOF files, 33 contain negative m/z values (down to about -16) and 8 proteomics runs never exceed m/z 700. In 6 files checked in detail, peaks do not line up with known peptide fragment ions, common background ions, or 1.003 Da isotope spacing; offsets scatter across +-2000 ppm with no cluster. This affects all 170 TripleTOF 5600/5600+/6600 and ZenoTOF 7600.wifffiles in the corpus. The shape of the error is not yet known, so any recalibration you apply must be checked against known ions in your own data. - QTRAP m/z values are raw detector bins, not m/z. They are integers from 0 to about 179,000 and can repeat within a spectrum. This affects all 27 QTRAP 5500/6500+ files in the corpus.
- MS level is wrong on TripleTOF and ZenoTOF. Every scan is labelled
MS2, including MS1 survey scans, so TOF MS2 spectra also have no
precursor m/z and no link to a parent MS1 scan. Treat
ms_levelas unreliable on these files. QTRAP MS levels are correct. - MRM transitions are not reported. QTRAP MRM spectra do not expose their Q1/Q3 transitions, and no SRM chromatograms are produced. Only a TIC chromatogram is available.
- Scan mode is unknown on every spectrum. No decoded stream says whether
a scan is centroid or profile. The reader declares this once
(
RunMetadata::unstated), so mzML conversion succeeds by default. The mzML has no profile or centroid term on its spectra, each spectrum carries anunknown_scan_modewarning, and the run carries oneunstated_by_sourcewarning, soWriteSummary::has_warningsis true for every file. Centroiding withCentroidedpasses the spectra through unchanged for the same reason. - Collision energy and activation are not decoded.
collision_energiesis empty andactivationisNoneon every precursor (issue #23). Some methods store a collision energy per Experiment in the method tree, but no decoded stream links a scan to its Experiment (issue #7) and the file states no unit, so none is reported. No collision-energy unit check can fire because no energy is reported. .wiff2is not supported. The format is encrypted. The reader currently rejects these files with "Invalid CFB file (wrong magic number)" rather than a message naming.wiff2.- Multi-sample
.wifffiles must be opened withReader::open_sample(Python:opensxraw.open_sample);Reader::openreturns an error. - Not reported or untested: centroid/profile mode (
scan_modeis always unknown); negative polarity (handled in code, but no negative-mode file is in the corpus).
What has been checked and holds: the .wiff container and Idx scan
index, retention times (no backwards steps or read failures in a 54-file,
1.16 million-spectrum sample), instrument model, polarity, acquisition
timestamp, and QTRAP MS levels. On QTRAP DDA files, MS2 precursor m/z is
the value the instrument recorded at acquisition (present on 3,084 of
3,087 sampled MS2 scans); it has not been cross-checked against MS1,
because QTRAP MS1 m/z is in raw bins.
Install
Prefer openmassspec-io
with the sciex feature unless you need this parser standalone
(minimal dependencies, or building your own abstraction) - the umbrella
gives you format auto-detection, mzML conversion, and Arrow streaming
across all wired-in vendors for free:
cargo add openmassspec-io --features sciex
pip install openmassspec[sciex]
Standalone:
Rust:
cargo add opensxraw
Python:
pip install opensxraw
Quickstart
Rust:
use opensxraw::reader::Reader;
use openmassspec_core::SpectrumSource;
let mut reader = Reader::open("sample.wiff")?;
for spectrum in reader.iter_spectra() {
let spectrum = spectrum?;
println!("{}: {} peaks", spectrum.native_id, spectrum.mz.len());
}
Python:
import opensxraw
reader = opensxraw.RawReader("sample.wiff")
spectrum = reader.read_spectrum(0)
print(spectrum.ms_level, spectrum.retention_time_sec, len(spectrum.mz))
Reader::open (and RawReader) expects the paired .wiff.scan file to
sit alongside the .wiff file, with .scan appended to the .wiff
filename.
See the docs site for the full guide, format specification, and API reference.
License
Apache-2.0. See LICENSE.
The format specification was developed by binary analysis of public mass-spectrometry datasets (PRIDE accessions). See CORPUS.md and ATTRIBUTION.md.
Metadata
Release files for opensxraw 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opensxraw-0.5.0.tar.gz | 62.2 kB | With provenance | Details for opensxraw-0.5.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| opensxraw-0.5.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for opensxraw-0.5.0-cp310-abi3-win_amd64.whl |
| opensxraw-0.5.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for opensxraw-0.5.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| opensxraw-0.5.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for opensxraw-0.5.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| opensxraw-0.5.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for opensxraw-0.5.0-cp310-abi3-macosx_11_0_arm64.whl |
| opensxraw-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for opensxraw-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 2.2 MB
Release files / opensxraw-0.5.0.tar.gz
| Download URL | opensxraw-0.5.0.tar.gz |
|---|---|
| Size | 62.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6de405a12236eb329cad7cf56be6a88e47a24d290d5424aefeb454840ed5bb78
|
|
BLAKE2b-256 checksum How to use checksums |
84858fd9be6028fc8c6bb9c3207685a7f9662deb25a1b84050a305d86d75f09f
|
| 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 27, 2026.
Transparency logRelease files / opensxraw-0.5.0-cp310-abi3-win_amd64.whl
| Download URL | opensxraw-0.5.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 318.7 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
970b1a9a664b42ba7de170fe2b38a49e15c445103f1da8bc7b261c7c998675ba
|
|
BLAKE2b-256 checksum How to use checksums |
9d34fd2f057ff715d00654ba61bdcc6a40062f1ebff6b71d969faa47b0b7df21
|
| 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 27, 2026.
Transparency logRelease files / opensxraw-0.5.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | opensxraw-0.5.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 476.3 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7cf6bf7847df5f7e51870f1f86f573781eaa8e03370725002a81edee17432a45
|
|
BLAKE2b-256 checksum How to use checksums |
804df830427dc413c57c5c2efa01bfe02498af7bc008c5f645aeaea406bdf6c5
|
| 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 27, 2026.
Transparency logRelease files / opensxraw-0.5.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | opensxraw-0.5.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 465.3 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
06b55a2627e6605c043df17e7b1da287c8c703963e39c095479cb7f5244a5b05
|
|
BLAKE2b-256 checksum How to use checksums |
93faa730dde3c26e836ec4600ddb6383cf9c8b901105e5ca9ecf8c5a01b6a86b
|
| 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 27, 2026.
Transparency logRelease files / opensxraw-0.5.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | opensxraw-0.5.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 424.6 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4db4a9608109dc41e5248345e926181428c23525f3fa38a0721f1e32872c102b
|
|
BLAKE2b-256 checksum How to use checksums |
1787f9f8bc94a58d2b013b49bfee1cd30bd30f95f68c1fc5caaa60a1d8a86dde
|
| 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 27, 2026.
Transparency logRelease files / opensxraw-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | opensxraw-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 427.9 kB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
bf75cb424086324fdd92f841e61ea723deab75ef720e26156797ccf038356731
|
|
BLAKE2b-256 checksum How to use checksums |
6539b78bb78fb2e9e62d9ea17c10e99eb15b3a05098b23d4a881c28e880aa8d9
|
| 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 27, 2026.
Transparency logSecurity for opensxraw 0.5.0
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 6 files in this release have been uploaded with provenance metadata.
Attestation for opensxraw-0.5.0.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 27, 2026.
Transparency logA 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.