OpenTFRaw
Part of the OpenMassSpec stack for mass spectrometry raw-file access.
Rust and Python reader for Thermo Fisher .raw mass spectrometry files,
covering format versions 8 through 66 (LCQ Classic through Orbitrap
Astral and modern TSQ).
Documentation: sigilweaver.app/opentfraw/docs
Install
Prefer openmassspec-io
with the thermo feature/extra 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 thermo
pip install openmassspec[thermo]
Standalone:
Rust:
cargo add opentfraw
Python:
pip install opentfraw
Quickstart
Rust:
use opentfraw::RawFileReader;
let raw = RawFileReader::open_path("sample.raw")?;
let mut file = std::fs::File::open("sample.raw")?;
for scan_num in 1..=raw.num_scans {
let peaks = raw.read_scan_peaks(&mut file, scan_num)?;
println!("scan {scan_num}: {} peaks", peaks.mz.len());
}
Python:
import opentfraw
raw = opentfraw.RawFile("run.raw")
mz, intensity = raw.peaks(3)
print(raw.scan(3)["filter_string"])
raw.to_mzml("run.mzML")
See the docs site for the full guide, format specification, and API reference.
Used by
| Project | Description |
|---|---|
| Mascope by Karsa Oy | Mass spectrometry data analysis platform using OpenTFRaw to ingest Thermo .raw files. |
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.
Release files for opentfraw 1.6.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 | |
|---|---|---|---|
| opentfraw-1.6.0.tar.gz | 103.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| opentfraw-1.6.0-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| opentfraw-1.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| opentfraw-1.6.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| opentfraw-1.6.0-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| opentfraw-1.6.0-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 2.4 MB
Release files / opentfraw-1.6.0.tar.gz
| Download URL | opentfraw-1.6.0.tar.gz |
|---|---|
| Size | 103.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
109deb81836f056801f4796fe23f29cc98bbe19303dcc7a94c6afbb0b99f2eab
|
|
BLAKE2b-256 checksum How to use checksums |
a61e14f9b50cbe6d16456ae99dcbabb76e647cd8331fdac765406ae7520d72d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency logRelease files / opentfraw-1.6.0-cp38-abi3-win_amd64.whl
| Download URL | opentfraw-1.6.0-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 356.6 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4d78b70ad9eb97a2fdf038286edb9f741267c86dc980e7ec452678d445a13167
|
|
BLAKE2b-256 checksum How to use checksums |
cd51ef2673f686ae427fd6ec9e8a4f1040c09c6dbd22f28b59624ddddefc4d8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency logRelease files / opentfraw-1.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | opentfraw-1.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 522.6 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
74861caa155e9e2efde03c3ae7806f4f708076d60c91d3fbd1863b520f89c057
|
|
BLAKE2b-256 checksum How to use checksums |
361cd0fbd4f1c502b9e749a811d80ee450fb6e417160e5bb4701e7a3daf6f57c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency logRelease files / opentfraw-1.6.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | opentfraw-1.6.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 512.8 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c57a2fac0aa8f00497b5e04904968f760bd9d83246fc1eef7bb0928347b81a4c
|
|
BLAKE2b-256 checksum How to use checksums |
8d9e6ad99ef5f6927835d089eb3df1556317e16497eeaace16bca3ff240c65a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency logRelease files / opentfraw-1.6.0-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | opentfraw-1.6.0-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 466.7 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8c780fc0e72a7f5eeb0824c8edb0b0e3962d82c79ffa257dac3dfbe44cc4b2ef
|
|
BLAKE2b-256 checksum How to use checksums |
72959d13248f68426f1fd70b6b5f764d9103c9d7d48b8251c0f7a7c3e86c47db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency logRelease files / opentfraw-1.6.0-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | opentfraw-1.6.0-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 466.4 kB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0f8b6413b8cf8c5147944b999b14df763ad2b15ae1f4f76eae7eca121c0c6b8b
|
|
BLAKE2b-256 checksum How to use checksums |
f8f499bbb3e898848cb4ca7e8098f21e3b023fe4f93e93de13242b79a472e2a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency log