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.4.0.tar.gz (95.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.4.0-cp38-abi3-win_amd64.whl (326.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (482.3 kB view details)

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

opentfraw-1.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (470.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.4.0-cp38-abi3-macosx_11_0_arm64.whl (430.8 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.4.0-cp38-abi3-macosx_10_12_x86_64.whl (431.8 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for opentfraw-1.4.0.tar.gz
Algorithm Hash digest
SHA256 9dedd825277f986a8ebbdca6970ac0739f9cda50190aaa053ae01375a27e9362
MD5 4d51ceb8dc25c072fc6f4cf8bf927856
BLAKE2b-256 4a8334e7ecce07ef55659cf216aac88cb05b8d566592656c24528325e86582c8

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for opentfraw-1.4.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0ed72bff180baceb4eaf62cbb4de89e84e7865b441975cf298251a5486448c92
MD5 434739ae2cf62519204c65214eee5485
BLAKE2b-256 1efc4c6a380919e24e120f6fb901524c8e615b47204c591f10fcac41b44b0f71

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 516ca9a9fe2045c044fdb76f4faa0d5ef96e6d02dba2b858ec46874380b21bd6
MD5 9c209b3bbc9a2400030565469f8c130d
BLAKE2b-256 15ce047b711f458ea2ab242acbba2fd505a73852caf2bc5c41256d8be4bf260b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bee667418583ee0114b1820226cf1c84b5d1d993adbd238d416c99ca4f2411d7
MD5 d38390ea376fc6a5ce9cfbd6beebbd87
BLAKE2b-256 2db9e05e176c5b53b0e445205f31622b7622cb60141cf2cf60c175d71385aaa4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.4.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d73939a515b1e4c39078312348a3e5ddfde4e674488ce2daaeb867323ad0773
MD5 380acdf3ef8c486e14189178b5ee9b9b
BLAKE2b-256 764d89b0032879e27c8ef8805221789ef95425ca22e4e63a51452e7f9742e851

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.4.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 49959f208ab15e30039c9028c852b4e40a9b9197f8d33d6d755e1aa60a8f5d04
MD5 2c0b870c914ec357d6e1b1a300bdd902
BLAKE2b-256 3d431baa21c319b9e7ec4ae5d92d030b14faf4ab2870c611127f51d069436593

See more details on using hashes here.

Provenance

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

This release

1.4.0 This release

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

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