Skip to main content

OpenTFRaw

CI DOI crates.io PyPI docs.rs License: Apache-2.0 Rust MSRV

Part of the OpenMassSpec stack for mass spectrometry raw-file access. Sibling readers: OpenWRaw (Waters), OpenTimsTDF (Bruker).

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentfraw-1.3.2.tar.gz (76.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

opentfraw-1.3.2-cp38-abi3-win_amd64.whl (283.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (436.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

opentfraw-1.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (426.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.3.2-cp38-abi3-macosx_11_0_arm64.whl (390.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.3.2-cp38-abi3-macosx_10_12_x86_64.whl (391.1 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file opentfraw-1.3.2.tar.gz.

File metadata

  • Download URL: opentfraw-1.3.2.tar.gz
  • Upload date:
  • Size: 76.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opentfraw-1.3.2.tar.gz
Algorithm Hash digest
SHA256 28fbfed4768ee3465a2140e25d28f055090f457c7cfb549f8ea65e72e0206554
MD5 c759b60ccf65a9149fcc543c75fb6987
BLAKE2b-256 f848b78ac1a1a7c894105dc20c78e1c4e637fc86ef49cfca0c5d514c45631daa

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.2.tar.gz:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentfraw-1.3.2-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: opentfraw-1.3.2-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 283.1 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opentfraw-1.3.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 aa8add1b49ef971d386df658f5f47a44bc07f077561bdb05e5739d7e31b749e4
MD5 b94fc592a095c12ed57408b504b951d0
BLAKE2b-256 637df58f680f35f0b4a8e683ec90db92fcc2b11a255ea3e1804ce46675cfe50c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.2-cp38-abi3-win_amd64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentfraw-1.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6421d1915325f1ab5e5dc60a0b2121ad31abd7affc1e13a4b73a1c39653f6b87
MD5 7df2dcea42a13a16ce3880ab5ba28c75
BLAKE2b-256 4b6eec9edc92f2a17abe61f7d9cc8c644e996a4876cf78f55c50b1445b44ca78

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentfraw-1.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e72495bd8ecc38a0af9b04d29ae0b84bc9ffaf736f265edb0869c4654978eb80
MD5 12bfba06a1787946db6d5dfe032c6451
BLAKE2b-256 ba32a67c1d286d79cd52edaf70535db8f6760ab1b389260860baad0c3e33da0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentfraw-1.3.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cfb0fcb935bed8f6c3eaeddd66b436d7bd69f468a3a9db539d657c48cc6a075
MD5 cfc2a70ad3711a710d8c679cbae87d56
BLAKE2b-256 a92229cb79be0dd6ebe12d73a8a449010c9f37cfd7fc49a20026c8f8c1eb2be3

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.2-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentfraw-1.3.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bd99e18d041c5bf0365c4c2bef4acdde2d5cfea3be4c66338fdb9a23a354faae
MD5 a24b138f80ca9acd76b24e39699dc4ca
BLAKE2b-256 6301d968c0ab4715ef372745efb83e26c4947adee154616caf8581d247b76c3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.2-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.4.0

6 files

1.3.7

6 files

1.3.6

6 files

1.3.5

6 files

1.3.4

6 files

1.3.3

6 files

This release

1.3.2 This release

6 files

1.3.1

6 files

1.3.0

6 files

1.2.0

6 files

1.1.0

6 files

1.0.6

6 files

1.0.5

6 files

1.0.4

6 files

1.0.3

6 files

1.0.1

6 files

1.0.0

6 files

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