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.

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.6.tar.gz (94.1 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.6-cp38-abi3-win_amd64.whl (302.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.3.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (458.0 kB view details)

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

opentfraw-1.3.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (445.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.3.6-cp38-abi3-macosx_11_0_arm64.whl (407.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.3.6-cp38-abi3-macosx_10_12_x86_64.whl (409.0 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: opentfraw-1.3.6.tar.gz
  • Upload date:
  • Size: 94.1 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.6.tar.gz
Algorithm Hash digest
SHA256 c418b3bb372a9e03b93a4431acf6a6cd28ab6532680dc25030244ea61fe6cd9b
MD5 dd653bb679c54e7678d31952fd2626df
BLAKE2b-256 695cc35bc1551760db7a9f49f1c9bbfd87f86aabf3a767175bac2662e3592695

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.3.6-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 302.1 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.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1043ad5240e05c737906182987386281cec20c6dd0fc3edacc944b29702318f9
MD5 985aad0aac1d8e17f3c682af3fcb9b7a
BLAKE2b-256 80a374f9dea4faeca1ff565b0e7dfd1c6bc3dbd91b6278ff2df5fb092293c1ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71632933c210c2605d9ac8fbcd6e9ed817c9265a3e93189c61e8a6c5cdeae2fa
MD5 4373c57d7e148b8e5d8d7fe12cb9e99e
BLAKE2b-256 90d0c42c2bdec67e5053ac5ac5841c3b4da6e275277692e4d0d0665dea309577

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 de09d69d842fc16f3f84981ddda5e33e39cafc0403226fafe010deece7a668c2
MD5 cb7b667739511de3b84d65a5c860c982
BLAKE2b-256 70d7de0eb953f3e9c4d54e96ece140092ca5be9c064e2e34e6c42e15fe2eafa4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57661bb32236325c5e271da9b6804bdaeb4c6a619244577fa58dd7588baa1e99
MD5 454fc278b0ef8355aca4c8f5a93833b2
BLAKE2b-256 eba822e7ed617f8a2c4414124fcc8ff907808fc56c13e8821b1e9eed4f4d54c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 85fb3d2573e9a971c7fbf8390f6887e3e3ebbaa5c6b41bd35c48d25d343d7046
MD5 25e343e4e5311bbc7b06948536d151e2
BLAKE2b-256 bd1e6895fd35a0f7f50a85a95582118835b5ecb53af9c5a01afc03a5248503bc

See more details on using hashes here.

Provenance

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

This release

1.3.6 This release

6 files

1.3.5

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