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.5.tar.gz (90.5 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.5-cp38-abi3-win_amd64.whl (289.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.3.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (442.4 kB view details)

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

opentfraw-1.3.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (433.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.3.5-cp38-abi3-macosx_11_0_arm64.whl (396.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.3.5-cp38-abi3-macosx_10_12_x86_64.whl (394.4 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for opentfraw-1.3.5.tar.gz
Algorithm Hash digest
SHA256 6d96342d3351f3b280a744f0c7337f0903f11d7d6fc8b8ffc0134fffea6a41a6
MD5 d903b9ca23f6b5269a61e4da5674998b
BLAKE2b-256 1541beb50ad7221a7f3fa5ade2693d9c465f3e6228ffb620a73ced38e05a00fd

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for opentfraw-1.3.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f2a24123e9a06ed8393fd648ef1dacb7471789cee06b20fbd94f229f34439ab1
MD5 b2080c51e8172c0780cfef8ce512a755
BLAKE2b-256 79100b77d6dfe6a1e0e7f62c18b92d095f81e82a986c151f9ad73395c5b415ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64b0875090a434226b1cd47db1acc2dfdaeabaf01abbfb9b4eede838006d822e
MD5 dbc98d321605b400add7c10ab2449c99
BLAKE2b-256 3f100284c778dd1353952f142dbd40812e60abcddbf82708ad19829f188a6ab7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8334ab97bb1f9f3ad12937d6962bb9bee2138d3d0ca2740f50880205c6e4ac68
MD5 3d91d17857defb866effc0bc7efd7a38
BLAKE2b-256 7edee6cb499077c2de1aad4acda6d9e957a235538ced725d17b67b5f9e5842dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57e5c181e50785807025c4a0cd327c2344b85914b91fb28a70812449c5997c84
MD5 fba2695ff8156657887e8c82d3e0aca1
BLAKE2b-256 19ecdf20b797244eb14491fa0583e42e43af8dc61f684939fdb06551028bd304

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c313d4c4fea711b8f7a3cc0605423482a05c1d90174df8c25df23217653d916b
MD5 0d72d0e6e27729a33e920c0008197b15
BLAKE2b-256 d31e8b7e88bf26ceb864a3719f7114ce1c3d797dbd7c532663e0cd3463be697a

See more details on using hashes here.

Provenance

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

This release

1.3.5 This release

6 files

1.3.4

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