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.4.tar.gz (79.0 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.4-cp38-abi3-win_amd64.whl (286.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.3.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (439.8 kB view details)

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

opentfraw-1.3.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (430.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.3.4-cp38-abi3-macosx_11_0_arm64.whl (394.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.3.4-cp38-abi3-macosx_10_12_x86_64.whl (394.5 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: opentfraw-1.3.4.tar.gz
  • Upload date:
  • Size: 79.0 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.4.tar.gz
Algorithm Hash digest
SHA256 03c19ad015f9a19d2da25a665911ac0622f5219e3e01d4f3fedf9aa29fbf728f
MD5 a4bcfd1d3c5eb1e1cae5552d6d9aecd0
BLAKE2b-256 fe9e1a3ffba9d2699ece13895937e571a996d426453be377f2627dcb8be93c7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.4.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.4-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: opentfraw-1.3.4-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 286.7 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.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 705f5327f5a2511144ec8557aa51a1ae9b8d00094ef0318e11fd498c9c99ff39
MD5 173d846bdb9d373cc9dab14ec86743d4
BLAKE2b-256 5e20be931502644f9b4393bc10c0787f44bd46e0dc37f067625854e3e7d0a467

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.4-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.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 24010d6ab7c10955efdc02c752bd79a9b2b29c4f13d70b964c63d0d7abe24bd6
MD5 5bf88dc7e1ce2efa422276d0bd2c7e09
BLAKE2b-256 5d7a89e88e2cdf5eae075d93e6f205dd8fd4d48dabc86cb1fe09b57eea57710c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.4-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.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ce1bb21094e34fcab873c49b7234ee2ebe812c9a47193f9dccf04dd0aca6a8e
MD5 9ae88edd73f1b28c30c7534edd1ab53c
BLAKE2b-256 92e778bc7a5b57d37e88cca298562437fd13035317b1c1f67567b9e6810b3438

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.4-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.4-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a76be44fcfe77a6730370c5ff01eb32a322424d800936274687aaddcfede7cdd
MD5 0dbdeaa52df4f1a7f3d0c441271edee7
BLAKE2b-256 3be0d96fd0e9a31383716dbea05e11da1ffdf46b5fb48155df882e4284b1cccc

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.4-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.4-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for opentfraw-1.3.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fb8d64b75ba951e1e21d52f0c36faca0642bfe789f28b6d48013e44cdc0b8893
MD5 446747a89ff3121379208e195fff0d69
BLAKE2b-256 8ff9ccec58a1641ab62255d726dd452e54e2e5ab8664c64296c7621de475d507

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.3.4-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

This release

1.3.4 This release

6 files

1.3.3

6 files

1.3.2

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